Created home bloc boilerplate

This commit is contained in:
Mariano Uvalle 2019-03-13 20:52:11 -06:00
parent a253207376
commit 4d6fb3d04e
3 changed files with 31 additions and 4 deletions

View file

@ -1,5 +1,3 @@
import 'dart:async';
import 'package:flutter/material.dart';
import '../models/task_model.dart';
@ -30,8 +28,12 @@ class HomeScreen extends StatelessWidget {
}
return ListView(
padding: EdgeInsets.zero,
children:
snap.data.map((task) => TaskListTile(task: task)).toList(),
children: snap.data
.map((task) => Container(
child: TaskListTile(task: task),
padding: EdgeInsets.only(bottom: 12),
))
.toList(),
);
},
),