diff --git a/lib/screens/wool.dart b/lib/screens/wool.dart index d5ed1a4..2b5719e 100644 --- a/lib/screens/wool.dart +++ b/lib/screens/wool.dart @@ -20,32 +20,38 @@ class WoolScreen extends StatelessWidget { ); } else { // Hier können Sie den Inhalt basierend auf den geladenen Daten anzeigen - return Column( - children: [ - Expanded( - child: ListView.builder( - itemBuilder: (BuildContext context, int index) { - return Padding( - padding: const EdgeInsets.symmetric(horizontal: 10), - child: Column( - children: [ - Woolcard( - index, - snapshot.data[index].manufacture, - snapshot.data[index].title, - snapshot.data[index].color, - ), - const SizedBox( - height: 15, - ) - ], - ), - ); - }, - itemCount: snapshot.data.length, + return Scaffold( + floatingActionButton: FloatingActionButton( + onPressed: () {}, + child: Icon(Icons.add), + ), + body: Column( + children: [ + Expanded( + child: ListView.builder( + itemBuilder: (BuildContext context, int index) { + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 10), + child: Column( + children: [ + Woolcard( + index, + snapshot.data[index].manufacture, + snapshot.data[index].title, + snapshot.data[index].color, + ), + const SizedBox( + height: 15, + ) + ], + ), + ); + }, + itemCount: snapshot.data.length, + ), ), - ), - ], + ], + ), ); } },