Added floating action button
This commit is contained in:
parent
dfcfda19b3
commit
2445de13af
1 changed files with 31 additions and 25 deletions
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Reference in a new issue