From 714e6ef349c85da4fccb9171c85dcb6cc12136b6 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Fri, 23 Aug 2024 16:15:30 +0200 Subject: [PATCH] remove screensize stuff --- .../lib/components/homeTileGrid.dart | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/Frontend/patient_manager/lib/components/homeTileGrid.dart b/Frontend/patient_manager/lib/components/homeTileGrid.dart index ddbdaef6..570a2a95 100644 --- a/Frontend/patient_manager/lib/components/homeTileGrid.dart +++ b/Frontend/patient_manager/lib/components/homeTileGrid.dart @@ -328,20 +328,10 @@ class _HomeTileGridState extends State { @override Widget build(BuildContext context) { - var size = MediaQuery.of(context).size; - double width = size.width; - double height = size.height; - - // return FutureBuilder( - // future: getBusinessDetails(), - // builder: (BuildContext context, AsyncSnapshot snapshot) { - // if (snapshot.connectionState == ConnectionState.done && - // pbswitch.isNotEmpty) { return Scaffold( appBar: const MIHAppBar(barTitle: "Mzansi Innovation Hub"), drawer: MIHAppDrawer( signedInUser: widget.signedInUser, - //logo: MzanziInnovationHub.of(context)!.theme.logoImage(), //logo, ), body: Column( children: [ @@ -349,7 +339,6 @@ class _HomeTileGridState extends State { children: [ IconButton( onPressed: () { - //print(businessUserSwitch); if (!businessUserSwitch) { setState(() { businessUserSwitch = true; @@ -378,10 +367,11 @@ class _HomeTileGridState extends State { color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), ), ), + const SizedBox( + height: 20, + ), Expanded( child: GridView.builder( - padding: EdgeInsets.fromLTRB(width / 6, height / 35, width / 6, - 0), //EdgeInsets.symmetric(horizontal: width / 6), itemCount: pbswitch[_selectedIndex].length, gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent( maxCrossAxisExtent: 200),