Use Wrap in Favor Of Row in KeepOrDeleteKey-Widget

This commit is contained in:
lemoer 2025-07-05 23:54:18 +02:00
parent 1cff53640e
commit 91f3088745

View File

@ -229,7 +229,7 @@ class _MyHomePageState extends State<MyHomePage> {
padding: EdgeInsets.all(20), padding: EdgeInsets.all(20),
child: TextButton( child: TextButton(
onPressed: () => authentikApiState.start(key), onPressed: () => authentikApiState.start(key),
child: Text("Manage Keys Registered To Server"), child: Text("Manage Keys Registered To Lock"),
), ),
), ),
], ],
@ -671,8 +671,9 @@ class KeepOrDeleteKey extends StatelessWidget {
Widget titleWidget = Text(title, style: TextStyle(fontSize: 25)); Widget titleWidget = Text(title, style: TextStyle(fontSize: 25));
if (isOurKey) { if (isOurKey) {
titleWidget = Row( titleWidget = Wrap(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, spacing: 8.0, // horizontaler Abstand zwischen den Elementen
runSpacing: 4.0, // vertikaler Abstand zwischen den Zeilen
children: [ children: [
titleWidget, titleWidget,
Container( Container(
@ -701,8 +702,9 @@ class KeepOrDeleteKey extends StatelessWidget {
), ),
Padding( Padding(
padding: EdgeInsets.fromLTRB(20, 0, 20, 20), padding: EdgeInsets.fromLTRB(20, 0, 20, 20),
child: Row( child: Wrap(
mainAxisAlignment: MainAxisAlignment.spaceAround, spacing: 8.0, // horizontaler Abstand zwischen den Elementen
runSpacing: 4.0, // vertikaler Abstand zwischen den Zeilen
children: [ children: [
TextButton( TextButton(
onPressed: () { onPressed: () {