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(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Padding(
padding: EdgeInsets.all(20),
child: Card(
child: ValueListenableBuilder<String?>(
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: <Widget>[
Padding(
padding: EdgeInsets.all(20),
child: Card(
child: Padding(
padding: EdgeInsets.all(20),
child: ValueListenableBuilder<String?>(
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',