This commit is contained in:
@@ -15,18 +15,21 @@ class HomePage extends StatelessWidget {
|
||||
GlobalModel gm = Provider.of<GlobalModel>(context);
|
||||
return SafeArea(
|
||||
child: Scaffold(
|
||||
appBar: AppBar(title: Text("PROject Dashboard")),
|
||||
appBar: AppBar(title: Text("/ PROject Dashboard")),
|
||||
drawer: ProdDrawer(),
|
||||
floatingActionButton: ProjFAB(),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: gm.lenPrj > 0
|
||||
child: !gm.importedData
|
||||
? Container()
|
||||
: gm.lenPrj > 0
|
||||
? LayoutBuilder(
|
||||
builder: (context, constraints) {
|
||||
int cols = (constraints.maxWidth / 200).floor();
|
||||
int cols = (constraints.maxWidth / 300).floor();
|
||||
return GridView.builder(
|
||||
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount: cols,
|
||||
childAspectRatio: 2,
|
||||
crossAxisSpacing: 10,
|
||||
mainAxisSpacing: 10,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user