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: Center(
child: Padding( child: Padding(
padding: const EdgeInsets.fromLTRB( padding: const EdgeInsets.fromLTRB(
0, 250, 0, 0), 0, 0, 0, 0),//250
child: child:
DrAppCircularProgressIndeicator(), DrAppCircularProgressIndeicator(),
)), )),
@ -367,13 +367,17 @@ class _PatientsScreenState extends State<PatientsScreen> {
// mainAxisAlignment: MainAxisAlignment.center, // mainAxisAlignment: MainAxisAlignment.center,
children: responseModelList children: responseModelList
.map((PatiantInformtion item) { .map((PatiantInformtion item) {
return InkWell( return Container(
decoration: myBoxDecoration(),
child: InkWell(
child: CardWithBgWidgetNew( child: CardWithBgWidgetNew(
//CardWithBgWidget( //CardWithBgWidget(
widget: Column( widget: Column(
children: <Widget>[ children: <Widget>[
Row( Container(
// decoration: myBoxDecoration(),
child: Row(
children: <Widget>[ children: <Widget>[
Column( Column(
mainAxisAlignment: 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 "patient": item
}); });
}, },
),
); );
}).toList(), }).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: [ children: [
Center( Center(
child: Container( child: Container(
// padding:EdgeInsets.fromLTRB(0, 10,0, 10), //EdgeInsets.all(10.0),//10 // padding:EdgeInsets.fromLTRB(0, 10,0, 10), //EdgeInsets.all(10.0),//10
// margin: EdgeInsets.only(left: 10), // margin: EdgeInsets.only(left: 10),
child: Padding( child: Padding(
@ -48,4 +49,6 @@ class CardWithBgWidgetNew extends StatelessWidget {
), ),
); );
} }
} }

Loading…
Cancel
Save