Switch to extended floating action button

This commit is contained in:
Leandro 2024-05-20 13:07:17 +02:00
parent dcd05b53b4
commit f8612b9bc3
2 changed files with 4 additions and 3 deletions

View file

@ -22,7 +22,8 @@ class WoolScreen extends StatelessWidget {
} else { } else {
// Hier können Sie den Inhalt basierend auf den geladenen Daten anzeigen // Hier können Sie den Inhalt basierend auf den geladenen Daten anzeigen
return Scaffold( return Scaffold(
floatingActionButton: FloatingActionButton( floatingActionButton: FloatingActionButton.extended(
label: Text("Hinzufügen"),
onPressed: () { onPressed: () {
showModalBottomSheet( showModalBottomSheet(
isScrollControlled: true, isScrollControlled: true,
@ -33,7 +34,7 @@ class WoolScreen extends StatelessWidget {
}, },
); );
}, },
child: Icon(Icons.add), icon: Icon(Icons.add),
), ),
body: Column( body: Column(
children: [ children: [

View file

@ -14,7 +14,7 @@ class ModalWrapper extends StatelessWidget {
child: Wrap( child: Wrap(
children: [ children: [
SizedBox( SizedBox(
width: 500, width: 750,
height: MediaQuery.of(context).size.height - 100, height: MediaQuery.of(context).size.height - 100,
child: Padding( child: Padding(
padding: EdgeInsets.symmetric(horizontal: 25, vertical: 10), padding: EdgeInsets.symmetric(horizontal: 25, vertical: 10),