Make Logs scrollable

This commit is contained in:
lemoer 2025-07-19 11:16:28 +02:00
parent b0021f82ac
commit 99abd7a571

View File

@ -429,30 +429,36 @@ class _MyHomePageState extends State<MyHomePage> {
); );
final bodyComponentLogs = Center( final bodyComponentLogs = Center(
child: Column( child: SingleChildScrollView(
mainAxisAlignment: MainAxisAlignment.center, child: Column(
children: <Widget>[ mainAxisAlignment: MainAxisAlignment.center,
Padding( children: <Widget>[
padding: EdgeInsets.all(20), Padding(
child: Card( padding: EdgeInsets.all(20),
child: ValueListenableBuilder<String?>( child: Card(
valueListenable: widget.errorNotifier, child: Padding(
builder: (context, error, child) { padding: EdgeInsets.all(20),
if (error != null) { child: ValueListenableBuilder<String?>(
return Text( valueListenable: widget.errorNotifier,
"Error: $error", builder: (context, error, child) {
style: TextStyle(color: Colors.red, fontSize: 15), if (error != null) {
); return Text(
} "Error: $error",
return Text("No exceptions captured yet."); style: TextStyle(color: Colors.red, fontSize: 15),
}, );
}
return Text("No exceptions captured yet.");
},
),
),
), ),
), ),
), ],
], ),
), ),
); );
final actionButtonLogs = FloatingActionButton(
final actionButtonInfo = FloatingActionButton( final actionButtonInfo = FloatingActionButton(
onPressed: () => obtainKeyPair(regenerate: true), onPressed: () => obtainKeyPair(regenerate: true),
tooltip: 'Regenerate Key', tooltip: 'Regenerate Key',