From f42e398c80b46ea64f8825544fe7bfeedb91d4b9 Mon Sep 17 00:00:00 2001
From: OleksandrSobol <dr.alexander.sobol@gmail.com>
Date: Fri, 9 Oct 2020 09:20:42 +0300
Subject: [PATCH] CAKE-114 | removed disclaimer alert

---
 .../screens/disclaimer/disclaimer_page.dart   | 21 ++-----------------
 1 file changed, 2 insertions(+), 19 deletions(-)

diff --git a/lib/src/screens/disclaimer/disclaimer_page.dart b/lib/src/screens/disclaimer/disclaimer_page.dart
index 5ef14f012..935de9612 100644
--- a/lib/src/screens/disclaimer/disclaimer_page.dart
+++ b/lib/src/screens/disclaimer/disclaimer_page.dart
@@ -20,9 +20,8 @@ class DisclaimerPage extends BasePage {
   String get title => 'Terms of Use';
 
   @override
-  Widget leading(BuildContext context) {
-    return isReadOnly ? super.leading(context) : null;
-  }
+  Widget leading(BuildContext context) =>
+      isReadOnly ? super.leading(context) : null;
 
   @override
   Widget body(BuildContext context) => DisclaimerPageBody(isReadOnly: isReadOnly);
@@ -55,26 +54,10 @@ class DisclaimerBodyState extends State<DisclaimerPageBody> {
     setState(() {});
   }
 
-  Future<void> _showAlertDialog(BuildContext context) async {
-    await showPopUp<void>(
-        context: context,
-        builder: (BuildContext context) {
-          return AlertWithOneAction(
-              alertTitle: 'Terms and conditions',
-              alertContent: 'By using this app, you agree to the Terms of Agreement set forth to below',
-              buttonText: S.of(context).ok,
-              buttonAction: () => Navigator.of(context).pop()
-          );
-        });
-  }
-
-  void _afterLayout(Duration _) => _showAlertDialog(context);
-
   @override
   void initState() {
     super.initState();
     getFileLines();
-    if (!widget.isReadOnly) WidgetsBinding.instance.addPostFrameCallback(_afterLayout);
   }
 
   @override