From 387d712b6722942a4ed8356842f4c0a61f3a085e Mon Sep 17 00:00:00 2001 From: Sahil Yeole Date: Tue, 10 Oct 2023 20:58:58 +0530 Subject: [PATCH] make scam alert text scrollable Signed-off-by: Sahil Yeole --- flutter/lib/mobile/pages/server_page.dart | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/flutter/lib/mobile/pages/server_page.dart b/flutter/lib/mobile/pages/server_page.dart index e31312905..972386667 100644 --- a/flutter/lib/mobile/pages/server_page.dart +++ b/flutter/lib/mobile/pages/server_page.dart @@ -328,13 +328,20 @@ class _ScamWarningDialogState extends State { ), ), SizedBox(height: 18), - Text( - translate("scam_text1")+"\n\n" - +translate("scam_text2")+"\n", - style: TextStyle( - color: Colors.white, - fontWeight: FontWeight.bold, - fontSize: 16.0, + SizedBox( + height: 250, + child: Scrollbar( + child: SingleChildScrollView( + child: Text( + translate("scam_text1")+"\n\n" + +translate("scam_text2")+"\n", + style: TextStyle( + color: Colors.white, + fontWeight: FontWeight.bold, + fontSize: 16.0, + ), + ), + ), ), ), Row(