Added floating action button

This commit is contained in:
Leandro 2024-05-19 21:07:56 +02:00
parent dfcfda19b3
commit 2445de13af

View file

@ -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,
),
),
),
],
],
),
);
}
},