add safe area to notifications
This commit is contained in:
@@ -194,52 +194,55 @@ class _MIHNotificationDrawerState extends State<MIHNotificationDrawer> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Drawer(
|
return SafeArea(
|
||||||
//backgroundColor: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
child: Drawer(
|
||||||
child: SingleChildScrollView(
|
//backgroundColor: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
child: Column(
|
child: SingleChildScrollView(
|
||||||
mainAxisSize: MainAxisSize.max,
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
Container(
|
children: [
|
||||||
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
Container(
|
||||||
child: Row(
|
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
Padding(
|
children: [
|
||||||
padding: const EdgeInsets.all(5.0),
|
Padding(
|
||||||
child: Text(
|
padding: const EdgeInsets.all(5.0),
|
||||||
"Notifications",
|
child: Text(
|
||||||
style: TextStyle(
|
"Notifications",
|
||||||
color:
|
style: TextStyle(
|
||||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
color: MzanziInnovationHub.of(context)!
|
||||||
fontWeight: FontWeight.bold,
|
.theme
|
||||||
fontSize: 20,
|
.primaryColor(),
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 20,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
displayNotification(),
|
||||||
displayNotification(),
|
// ListView.separated(
|
||||||
// ListView.separated(
|
// shrinkWrap: true,
|
||||||
// shrinkWrap: true,
|
// physics: const NeverScrollableScrollPhysics(),
|
||||||
// physics: const NeverScrollableScrollPhysics(),
|
// separatorBuilder: (BuildContext context, index) {
|
||||||
// separatorBuilder: (BuildContext context, index) {
|
// return Divider(
|
||||||
// return Divider(
|
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
||||||
// color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),
|
// );
|
||||||
// );
|
// },
|
||||||
// },
|
// itemCount: widget.notifications.length,
|
||||||
// itemCount: widget.notifications.length,
|
// itemBuilder: (context, index) {
|
||||||
// itemBuilder: (context, index) {
|
// //final patient = widget.patients[index].id_no.contains(widget.searchString);
|
||||||
// //final patient = widget.patients[index].id_no.contains(widget.searchString);
|
// //print(index);
|
||||||
// //print(index);
|
// return displayNotifications(index);
|
||||||
// return displayNotifications(index);
|
// },
|
||||||
// },
|
// ),
|
||||||
// ),
|
],
|
||||||
],
|
),
|
||||||
),
|
)),
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user