Files
syncrow-app/lib/features/splash/view/widgets/user_agreement_dialog.dart
2024-02-17 16:27:27 +03:00

32 lines
796 B
Dart

import 'package:flutter/material.dart';
import 'package:syncrow_app/features/shared_widgets/default_text_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: [
DefaultTextButton(
text: 'I Agree',
onPressed: () {
Navigator.of(context).pop();
},
),
DefaultTextButton(
text: 'I Disagree',
onPressed: () => Navigator.of(context).pop(),
isSecondary: true,
),
],
);
}
}