Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

make scam alert text scrollable

Sahil Yeole387d712b6722
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<ScamWarningDialog> {
),
),
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(