added padding
This commit is contained in:
@@ -433,12 +433,12 @@ class _PatientManagerState extends State<PatientManager> {
|
|||||||
Widget showSelection(int index, double screenWidth, double screenHeight) {
|
Widget showSelection(int index, double screenWidth, double screenHeight) {
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: 660,
|
//width: 660,
|
||||||
child: patientQueue(screenWidth, screenHeight),
|
child: patientQueue(screenWidth, screenHeight),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: 660,
|
//width: 660,
|
||||||
child: patientSearch(screenWidth, screenHeight),
|
child: patientSearch(screenWidth, screenHeight),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -489,43 +489,43 @@ class _PatientManagerState extends State<PatientManager> {
|
|||||||
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
body: Padding(
|
body: Column(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 15.0),
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
child: Column(
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
children: [
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
Row(
|
||||||
children: [
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
Row(
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
children: [
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
IconButton(
|
||||||
children: [
|
onPressed: () {
|
||||||
IconButton(
|
setState(() {
|
||||||
onPressed: () {
|
_selectedIndex = 0;
|
||||||
setState(() {
|
});
|
||||||
_selectedIndex = 0;
|
},
|
||||||
});
|
icon: const Icon(
|
||||||
},
|
Icons.people,
|
||||||
icon: const Icon(
|
size: 35,
|
||||||
Icons.people,
|
|
||||||
size: 35,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
IconButton(
|
),
|
||||||
onPressed: () {
|
IconButton(
|
||||||
setState(() {
|
onPressed: () {
|
||||||
_selectedIndex = 1;
|
setState(() {
|
||||||
});
|
_selectedIndex = 1;
|
||||||
},
|
});
|
||||||
icon: const Icon(
|
},
|
||||||
Icons.search,
|
icon: const Icon(
|
||||||
size: 35,
|
Icons.search,
|
||||||
),
|
size: 35,
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
showSelection(_selectedIndex, screenWidth, screenHeight),
|
),
|
||||||
],
|
Padding(
|
||||||
),
|
padding: EdgeInsets.symmetric(horizontal: 15),
|
||||||
|
child: showSelection(_selectedIndex, screenWidth, screenHeight),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user