Added floating action button to add new task or picture and added a fixed height container to the children in list view to make it visible even with the fab
This commit is contained in:
parent
f59f491022
commit
3e5e58016e
1 changed files with 8 additions and 1 deletions
|
|
@ -39,6 +39,12 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||||
|
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
floatingActionButton: FloatingActionButton(
|
||||||
|
child: Icon(FontAwesomeIcons.plus),
|
||||||
|
backgroundColor: Color(0xFF707070),
|
||||||
|
onPressed: () {},
|
||||||
|
),
|
||||||
|
floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
|
||||||
appBar: HomeAppBar(
|
appBar: HomeAppBar(
|
||||||
avatarUrl: avatarUrl,
|
avatarUrl: avatarUrl,
|
||||||
subtitle: 'Hello $userDisplayName!',
|
subtitle: 'Hello $userDisplayName!',
|
||||||
|
|
@ -81,7 +87,8 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||||
),
|
),
|
||||||
padding: EdgeInsets.only(bottom: 12),
|
padding: EdgeInsets.only(bottom: 12),
|
||||||
))
|
))
|
||||||
.toList(),
|
.toList()
|
||||||
|
..add(Container(height: 70)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue