remove screensize stuff

This commit is contained in:
2024-08-23 16:15:30 +02:00
parent 1efab78791
commit 714e6ef349

View File

@@ -328,20 +328,10 @@ class _HomeTileGridState extends State<HomeTileGrid> {
@override @override
Widget build(BuildContext context) { 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<Business?> snapshot) {
// if (snapshot.connectionState == ConnectionState.done &&
// pbswitch.isNotEmpty) {
return Scaffold( return Scaffold(
appBar: const MIHAppBar(barTitle: "Mzansi Innovation Hub"), appBar: const MIHAppBar(barTitle: "Mzansi Innovation Hub"),
drawer: MIHAppDrawer( drawer: MIHAppDrawer(
signedInUser: widget.signedInUser, signedInUser: widget.signedInUser,
//logo: MzanziInnovationHub.of(context)!.theme.logoImage(), //logo,
), ),
body: Column( body: Column(
children: [ children: [
@@ -349,7 +339,6 @@ class _HomeTileGridState extends State<HomeTileGrid> {
children: [ children: [
IconButton( IconButton(
onPressed: () { onPressed: () {
//print(businessUserSwitch);
if (!businessUserSwitch) { if (!businessUserSwitch) {
setState(() { setState(() {
businessUserSwitch = true; businessUserSwitch = true;
@@ -378,10 +367,11 @@ class _HomeTileGridState extends State<HomeTileGrid> {
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(), color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
), ),
), ),
const SizedBox(
height: 20,
),
Expanded( Expanded(
child: GridView.builder( child: GridView.builder(
padding: EdgeInsets.fromLTRB(width / 6, height / 35, width / 6,
0), //EdgeInsets.symmetric(horizontal: width / 6),
itemCount: pbswitch[_selectedIndex].length, itemCount: pbswitch[_selectedIndex].length,
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent( gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
maxCrossAxisExtent: 200), maxCrossAxisExtent: 200),