CAKE-114 | removed disclaimer alert

OleksandrSobol committed Oct 9, 2020 at 09:20 UTC f42e398c80b46ea64f8825544fe7bfeedb91d4b9
1 file changed +2 -19
lib/src/screens/disclaimer/disclaimer_page.dart
+2 -19
@@ -20,9 +20,8 @@ class DisclaimerPage extends BasePage {
20 String get title => 'Terms of Use';
21
22 @override
23 - Widget leading(BuildContext context) {
24 - return isReadOnly ? super.leading(context) : null;
25 - }
23 + Widget leading(BuildContext context) =>
24 + isReadOnly ? super.leading(context) : null;
25
26 @override
27 Widget body(BuildContext context) => DisclaimerPageBody(isReadOnly: isReadOnly);
@@ -55,26 +54,10 @@ class DisclaimerBodyState extends State<DisclaimerPageBody> {
54 setState(() {});
55 }
56
58 - Future<void> _showAlertDialog(BuildContext context) async {
59 - await showPopUp<void>(
60 - context: context,
61 - builder: (BuildContext context) {
62 - return AlertWithOneAction(
63 - alertTitle: 'Terms and conditions',
64 - alertContent: 'By using this app, you agree to the Terms of Agreement set forth to below',
65 - buttonText: S.of(context).ok,
66 - buttonAction: () => Navigator.of(context).pop()
67 - );
68 - });
69 - }
70 -
71 - void _afterLayout(Duration _) => _showAlertDialog(context);
72 -
57 @override
58 void initState() {
59 super.initState();
60 getFileLines();
77 - if (!widget.isReadOnly) WidgetsBinding.instance.addPostFrameCallback(_afterLayout);
61 }
62
63 @override