update Mzansi Profile & Access reviews with layout builder

This commit is contained in:
2024-09-17 13:21:37 +02:00
parent b641e07b0c
commit b037d75473
6 changed files with 335 additions and 238 deletions

View File

@@ -19,6 +19,13 @@ class MIHLayoutBuilder extends StatefulWidget {
}
class _MIHLayoutBuilderState extends State<MIHLayoutBuilder> {
List<Widget> getList() {
List<Widget> temp = [];
temp.add(widget.header);
temp.add(widget.body);
return temp;
}
@override
void dispose() {
super.dispose();
@@ -40,7 +47,10 @@ class _MIHLayoutBuilderState extends State<MIHLayoutBuilder> {
children: [
widget.actionButton,
Column(
children: [widget.header, Expanded(child: widget.body)],
children: [
widget.header,
Expanded(child: widget.body),
],
),
],
),

View File

@@ -297,6 +297,7 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
});
checkScreenSize();
return ListView.separated(
shrinkWrap: true,
separatorBuilder: (BuildContext context, index) {
return Divider(
color: MzanziInnovationHub.of(context)!.theme.secondaryColor(),