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:
Mariano Uvalle 2019-03-28 00:47:05 -06:00
parent f59f491022
commit 3e5e58016e

View file

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