DB is looking a lot better now that she has all her data in order... time to try to dynamicly create view for diffrent lots

This commit is contained in:
Thomas Atkins 2019-02-09 12:03:01 -06:00
parent cbc5194691
commit a5dd9f2daf

View File

@ -22,12 +22,11 @@ class MyHomePage extends StatefulWidget {
class _MyHomePageState extends State<MyHomePage> { class _MyHomePageState extends State<MyHomePage> {
final db = Firestore.instance.collection('lots'); final db = Firestore.instance.collection('lots');
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(title: Text('Lot 1')), appBar: AppBar(title: Text('Lot 1')),
body: _buildBody(context, db), body: _buildBody(context, db.document('Lot1').collection('stalls')),
); );
} }