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 {
|
} 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 Column(
|
return Scaffold(
|
||||||
children: [
|
floatingActionButton: FloatingActionButton(
|
||||||
Expanded(
|
onPressed: () {},
|
||||||
child: ListView.builder(
|
child: Icon(Icons.add),
|
||||||
itemBuilder: (BuildContext context, int index) {
|
),
|
||||||
return Padding(
|
body: Column(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 10),
|
children: [
|
||||||
child: Column(
|
Expanded(
|
||||||
children: [
|
child: ListView.builder(
|
||||||
Woolcard(
|
itemBuilder: (BuildContext context, int index) {
|
||||||
index,
|
return Padding(
|
||||||
snapshot.data[index].manufacture,
|
padding: const EdgeInsets.symmetric(horizontal: 10),
|
||||||
snapshot.data[index].title,
|
child: Column(
|
||||||
snapshot.data[index].color,
|
children: [
|
||||||
),
|
Woolcard(
|
||||||
const SizedBox(
|
index,
|
||||||
height: 15,
|
snapshot.data[index].manufacture,
|
||||||
)
|
snapshot.data[index].title,
|
||||||
],
|
snapshot.data[index].color,
|
||||||
),
|
),
|
||||||
);
|
const SizedBox(
|
||||||
},
|
height: 15,
|
||||||
itemCount: snapshot.data.length,
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
itemCount: snapshot.data.length,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Reference in a new issue