add safearea
This commit is contained in:
@@ -387,12 +387,15 @@ class _HomeTileGridState extends State<HomeTileGrid> {
|
|||||||
final Size size = MediaQuery.sizeOf(context);
|
final Size size = MediaQuery.sizeOf(context);
|
||||||
final double width = size.width;
|
final double width = size.width;
|
||||||
//final double height = size.height;
|
//final double height = size.height;
|
||||||
return Scaffold(
|
return PopScope(
|
||||||
|
canPop: false,
|
||||||
|
child: Scaffold(
|
||||||
appBar: const MIHAppBar(barTitle: "Mzansi Innovation\nHub"),
|
appBar: const MIHAppBar(barTitle: "Mzansi Innovation\nHub"),
|
||||||
drawer: MIHAppDrawer(
|
drawer: MIHAppDrawer(
|
||||||
signedInUser: widget.signedInUser,
|
signedInUser: widget.signedInUser,
|
||||||
),
|
),
|
||||||
body: Column(
|
body: SafeArea(
|
||||||
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -452,16 +455,19 @@ class _HomeTileGridState extends State<HomeTileGrid> {
|
|||||||
),
|
),
|
||||||
// physics: ,
|
// physics: ,
|
||||||
// shrinkWrap: true,
|
// shrinkWrap: true,
|
||||||
itemCount: searchApp(pbswitch[_selectedIndex], appSearch).length,
|
itemCount:
|
||||||
|
searchApp(pbswitch[_selectedIndex], appSearch).length,
|
||||||
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
|
gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
|
||||||
maxCrossAxisExtent: 200),
|
maxCrossAxisExtent: 200),
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
return searchApp(pbswitch[_selectedIndex], appSearch)[index];
|
return searchApp(
|
||||||
|
pbswitch[_selectedIndex], appSearch)[index];
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
|
||||||
//),
|
//),
|
||||||
// ],
|
// ],
|
||||||
@@ -474,7 +480,8 @@ class _HomeTileGridState extends State<HomeTileGrid> {
|
|||||||
//hoverColor: Colors.lightBlueAccent,
|
//hoverColor: Colors.lightBlueAccent,
|
||||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
iconSize: 35.0,
|
iconSize: 35.0,
|
||||||
activeColor: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
activeColor:
|
||||||
|
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
tabBackgroundColor:
|
tabBackgroundColor:
|
||||||
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
//gap: 20,
|
//gap: 20,
|
||||||
@@ -503,6 +510,7 @@ class _HomeTileGridState extends State<HomeTileGrid> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,8 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
|
|||||||
|
|
||||||
if (getExtType(widget.arguments.path).toLowerCase() == "pdf") {
|
if (getExtType(widget.arguments.path).toLowerCase() == "pdf") {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: Stack(
|
body: SafeArea(
|
||||||
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
width: width,
|
width: width,
|
||||||
@@ -185,7 +186,8 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
setState(() {
|
setState(() {
|
||||||
pdfViewerController.zoomLevel = startZoomLevel + 0.25;
|
pdfViewerController.zoomLevel =
|
||||||
|
startZoomLevel + 0.25;
|
||||||
startZoomLevel = pdfViewerController.zoomLevel;
|
startZoomLevel = pdfViewerController.zoomLevel;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -202,7 +204,8 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (pdfViewerController.zoomLevel > 1) {
|
if (pdfViewerController.zoomLevel > 1) {
|
||||||
setState(() {
|
setState(() {
|
||||||
pdfViewerController.zoomLevel = startZoomLevel - 0.25;
|
pdfViewerController.zoomLevel =
|
||||||
|
startZoomLevel - 0.25;
|
||||||
startZoomLevel = pdfViewerController.zoomLevel;
|
startZoomLevel = pdfViewerController.zoomLevel;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -241,6 +244,7 @@ class _FullScreenFileViewerState extends State<FullScreenFileViewer> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ class _PatientAccessRequestState extends State<PatientAccessRequest> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: const MIHAppBar(barTitle: "Access Reviews"),
|
appBar: const MIHAppBar(barTitle: "Access Reviews"),
|
||||||
//drawer: MIHAppDrawer(signedInUser: widget.signedInUser),
|
//drawer: MIHAppDrawer(signedInUser: widget.signedInUser),
|
||||||
body: viewAccessRequest(screenWidth, screenHeight),
|
body: SafeArea(child: viewAccessRequest(screenWidth, screenHeight)),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -345,7 +345,8 @@ class _AddPatientState extends State<AddPatient> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: const MIHAppBar(barTitle: "Add Patient"),
|
appBar: const MIHAppBar(barTitle: "Add Patient"),
|
||||||
//drawer: MIHAppDrawer(signedInUser: widget.signedInUser),
|
//drawer: MIHAppDrawer(signedInUser: widget.signedInUser),
|
||||||
body: KeyboardListener(
|
body: SafeArea(
|
||||||
|
child: KeyboardListener(
|
||||||
focusNode: _focusNode,
|
focusNode: _focusNode,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
onKeyEvent: (event) async {
|
onKeyEvent: (event) async {
|
||||||
@@ -356,6 +357,7 @@ class _AddPatientState extends State<AddPatient> {
|
|||||||
},
|
},
|
||||||
child: displayForm(),
|
child: displayForm(),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -609,7 +609,8 @@ class _EditPatientState extends State<EditPatient> {
|
|||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: const MIHAppBar(barTitle: "Edit Patient"),
|
appBar: const MIHAppBar(barTitle: "Edit Patient"),
|
||||||
body: KeyboardListener(
|
body: SafeArea(
|
||||||
|
child: KeyboardListener(
|
||||||
focusNode: _focusNode,
|
focusNode: _focusNode,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
onKeyEvent: (event) async {
|
onKeyEvent: (event) async {
|
||||||
@@ -620,6 +621,7 @@ class _EditPatientState extends State<EditPatient> {
|
|||||||
},
|
},
|
||||||
child: displayForm(),
|
child: displayForm(),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,9 +98,11 @@ class _PatientViewState extends State<PatientView> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: const MIHAppBar(barTitle: "Patient Profile"),
|
appBar: const MIHAppBar(barTitle: "Patient Profile"),
|
||||||
//drawer: showDrawer(),
|
//drawer: showDrawer(),
|
||||||
body: SingleChildScrollView(
|
body: SafeArea(
|
||||||
|
child: SingleChildScrollView(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 15.0),
|
padding:
|
||||||
|
const EdgeInsets.symmetric(vertical: 10.0, horizontal: 15.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
@@ -150,6 +152,7 @@ class _PatientViewState extends State<PatientView> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -231,7 +231,8 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: const MIHAppBar(barTitle: "Add Business"),
|
appBar: const MIHAppBar(barTitle: "Add Business"),
|
||||||
//drawer: MIHAppDrawer(signedInUser: widget.signedInUser),
|
//drawer: MIHAppDrawer(signedInUser: widget.signedInUser),
|
||||||
body: KeyboardListener(
|
body: SafeArea(
|
||||||
|
child: KeyboardListener(
|
||||||
focusNode: _focusNode,
|
focusNode: _focusNode,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
onKeyEvent: (event) async {
|
onKeyEvent: (event) async {
|
||||||
@@ -311,7 +312,8 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 15.0),
|
const SizedBox(height: 15.0),
|
||||||
Divider(
|
Divider(
|
||||||
color: MzanziInnovationHub.of(context)?.theme.secondaryColor(),
|
color:
|
||||||
|
MzanziInnovationHub.of(context)?.theme.secondaryColor(),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 15.0),
|
const SizedBox(height: 15.0),
|
||||||
const Text(
|
const Text(
|
||||||
@@ -392,6 +394,7 @@ class _ProfileBusinessAddState extends State<ProfileBusinessAdd> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -314,7 +314,8 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: const MIHAppBar(barTitle: "Business Profile"),
|
appBar: const MIHAppBar(barTitle: "Business Profile"),
|
||||||
//drawer: MIHAppDrawer(signedInUser: widget.arguments.signedInUser),
|
//drawer: MIHAppDrawer(signedInUser: widget.arguments.signedInUser),
|
||||||
body: KeyboardListener(
|
body: SafeArea(
|
||||||
|
child: KeyboardListener(
|
||||||
focusNode: _focusNode,
|
focusNode: _focusNode,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
onKeyEvent: (event) async {
|
onKeyEvent: (event) async {
|
||||||
@@ -397,8 +398,9 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 15.0),
|
const SizedBox(height: 15.0),
|
||||||
Divider(
|
Divider(
|
||||||
color:
|
color: MzanziInnovationHub.of(context)
|
||||||
MzanziInnovationHub.of(context)?.theme.secondaryColor(),
|
?.theme
|
||||||
|
.secondaryColor(),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -469,12 +471,13 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
|
|||||||
width: 500.0,
|
width: 500.0,
|
||||||
height: 50.0,
|
height: 50.0,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Add",
|
buttonText: "Update",
|
||||||
buttonColor: MzanziInnovationHub.of(context)!
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
.theme
|
.theme
|
||||||
.secondaryColor(),
|
.secondaryColor(),
|
||||||
textColor:
|
textColor: MzanziInnovationHub.of(context)!
|
||||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
.theme
|
||||||
|
.primaryColor(),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
//print(business_id);
|
//print(business_id);
|
||||||
submitForm(business_id);
|
submitForm(business_id);
|
||||||
@@ -487,6 +490,7 @@ class _ProfileBusinessUpdateState extends State<ProfileBusinessUpdate> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,7 +169,8 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: const MIHAppBar(barTitle: "Update Profile"),
|
appBar: const MIHAppBar(barTitle: "Update Profile"),
|
||||||
//drawer: MIHAppDrawer(signedInUser: widget.signedInUser),
|
//drawer: MIHAppDrawer(signedInUser: widget.signedInUser),
|
||||||
body: Padding(
|
body: SafeArea(
|
||||||
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(15.0),
|
padding: const EdgeInsets.all(15.0),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: KeyboardListener(
|
child: KeyboardListener(
|
||||||
@@ -242,8 +243,9 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
|
|||||||
height: 50.0,
|
height: 50.0,
|
||||||
child: MIHButton(
|
child: MIHButton(
|
||||||
buttonText: "Update",
|
buttonText: "Update",
|
||||||
buttonColor:
|
buttonColor: MzanziInnovationHub.of(context)!
|
||||||
MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
.theme
|
||||||
|
.secondaryColor(),
|
||||||
textColor:
|
textColor:
|
||||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -256,6 +258,7 @@ class _ProfileUserUpdateState extends State<ProfileUserUpdate> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user