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 {
// 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: [