From f8612b9bc394899288bde8c315b1fc3a3ea50e52 Mon Sep 17 00:00:00 2001 From: Leandro Date: Mon, 20 May 2024 13:07:17 +0200 Subject: [PATCH] Switch to extended floating action button --- lib/screens/wool.dart | 5 +++-- lib/widgets/modal_wrapper.dart | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/screens/wool.dart b/lib/screens/wool.dart index 53195a5..b0a6ad2 100644 --- a/lib/screens/wool.dart +++ b/lib/screens/wool.dart @@ -22,7 +22,8 @@ class WoolScreen extends StatelessWidget { } else { // Hier können Sie den Inhalt basierend auf den geladenen Daten anzeigen return Scaffold( - floatingActionButton: FloatingActionButton( + floatingActionButton: FloatingActionButton.extended( + label: Text("Hinzufügen"), onPressed: () { showModalBottomSheet( isScrollControlled: true, @@ -33,7 +34,7 @@ class WoolScreen extends StatelessWidget { }, ); }, - child: Icon(Icons.add), + icon: Icon(Icons.add), ), body: Column( children: [ diff --git a/lib/widgets/modal_wrapper.dart b/lib/widgets/modal_wrapper.dart index 6cbcc56..170ff7a 100644 --- a/lib/widgets/modal_wrapper.dart +++ b/lib/widgets/modal_wrapper.dart @@ -14,7 +14,7 @@ class ModalWrapper extends StatelessWidget { child: Wrap( children: [ SizedBox( - width: 500, + width: 750, height: MediaQuery.of(context).size.height - 100, child: Padding( padding: EdgeInsets.symmetric(horizontal: 25, vertical: 10),