From 99abd7a571c91618f244c64955e82603229496d1 Mon Sep 17 00:00:00 2001 From: lemoer Date: Sat, 19 Jul 2025 11:16:28 +0200 Subject: [PATCH] Make Logs scrollable --- lib/main.dart | 44 +++++++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index f6c435a..a6556b2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -429,30 +429,36 @@ class _MyHomePageState extends State { ); final bodyComponentLogs = Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Padding( - padding: EdgeInsets.all(20), - child: Card( - child: ValueListenableBuilder( - valueListenable: widget.errorNotifier, - builder: (context, error, child) { - if (error != null) { - return Text( - "Error: $error", - style: TextStyle(color: Colors.red, fontSize: 15), - ); - } - return Text("No exceptions captured yet."); - }, + child: SingleChildScrollView( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Padding( + padding: EdgeInsets.all(20), + child: Card( + child: Padding( + padding: EdgeInsets.all(20), + child: ValueListenableBuilder( + valueListenable: widget.errorNotifier, + builder: (context, error, child) { + if (error != null) { + return Text( + "Error: $error", + style: TextStyle(color: Colors.red, fontSize: 15), + ); + } + return Text("No exceptions captured yet."); + }, + ), + ), ), ), - ), - ], + ], + ), ), ); + final actionButtonLogs = FloatingActionButton( final actionButtonInfo = FloatingActionButton( onPressed: () => obtainKeyPair(regenerate: true), tooltip: 'Regenerate Key',