Modify Patiant screen List style

merge-requests/98/head
Amjad Amireh 6 years ago
parent 49f8da4a05
commit cc2c0f9a1e

@ -317,7 +317,7 @@ class _PatientsScreenState extends State<PatientsScreen> {
child: Center(
child: Padding(
padding: const EdgeInsets.fromLTRB(
0, 250, 0, 0),
0, 0, 0, 0),//250
child:
DrAppCircularProgressIndeicator(),
)),
@ -367,13 +367,17 @@ class _PatientsScreenState extends State<PatientsScreen> {
// mainAxisAlignment: MainAxisAlignment.center,
children: responseModelList
.map((PatiantInformtion item) {
return InkWell(
return Container(
decoration: myBoxDecoration(),
child: InkWell(
child: CardWithBgWidgetNew(
//CardWithBgWidget(
widget: Column(
children: <Widget>[
Row(
Container(
// decoration: myBoxDecoration(),
child: Row(
children: <Widget>[
Column(
mainAxisAlignment:
@ -524,9 +528,11 @@ class _PatientsScreenState extends State<PatientsScreen> {
),
],
),
// Divider(color: Colors.grey)
],
),
Divider(color: Colors.grey)
),
// Divider(color: Colors.grey)
],
),
),
@ -537,12 +543,16 @@ class _PatientsScreenState extends State<PatientsScreen> {
"patient": item
});
},
),
);
}).toList(),
),
),
],
),
)
],
),
@ -633,4 +643,19 @@ class _PatientsScreenState extends State<PatientsScreen> {
),
);
}
myBoxDecoration() {
return BoxDecoration(
border: Border(
bottom: BorderSide( // <--- top side
color: Colors.grey,
width: 1.0,
),
),
);
}
}

@ -36,6 +36,7 @@ class CardWithBgWidgetNew extends StatelessWidget {
children: [
Center(
child: Container(
// padding:EdgeInsets.fromLTRB(0, 10,0, 10), //EdgeInsets.all(10.0),//10
// margin: EdgeInsets.only(left: 10),
child: Padding(
@ -48,4 +49,6 @@ class CardWithBgWidgetNew extends StatelessWidget {
),
);
}
}

Loading…
Cancel
Save