mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-16 18:16:21 +00:00
36 lines
853 B
Dart
36 lines
853 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:syncrow_app/features/shared_widgets/default_button.dart';
|
|
|
|
class UserAgreementDialog extends StatelessWidget {
|
|
const UserAgreementDialog({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return AlertDialog(
|
|
elevation: 40,
|
|
title: const Text('User Agreement'),
|
|
content:
|
|
const Text('By using this app you agree to the terms and conditions'),
|
|
actions: [
|
|
DefaultButton(
|
|
child: const Text(
|
|
'Login',
|
|
),
|
|
onPressed: () {
|
|
Navigator.of(context).pop();
|
|
},
|
|
),
|
|
DefaultButton(
|
|
onPressed: () => Navigator.of(context).pop(),
|
|
isSecondary: true,
|
|
child: const Text(
|
|
'Cancel',
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|