family files changes

merge-requests/34/merge
Sultan Khan 5 years ago
parent adbdd2dd0d
commit da6f238c89

@ -136,6 +136,7 @@ class _AppDrawerState extends State<AppDrawer> {
textColor: Colors.red,
iconColor: Colors.red,
bottomLine: false,
sideArrow: true,
),
onTap: () {
Navigator.of(context).pushNamed(
@ -177,34 +178,37 @@ class _AppDrawerState extends State<AppDrawer> {
children: snapshot.data
.getAllSharedRecordsByStatusList
.map<Widget>((result) {
return Padding(
padding:
EdgeInsets.only(
bottom: 5),
child: Row(
crossAxisAlignment:
CrossAxisAlignment
.start,
children: <Widget>[
Expanded(
child: Icon(Icons
.person),
),
Expanded(
flex: 7,
child: Column(
crossAxisAlignment:
CrossAxisAlignment
return result.status == 3
? Padding(
padding: EdgeInsets
.only(
bottom:
5),
child: Row(
crossAxisAlignment:
CrossAxisAlignment
.start,
children: <
Widget>[
Expanded(
child: Icon(
Icons
.person),
),
Expanded(
flex: 7,
child: Column(
crossAxisAlignment: CrossAxisAlignment
.start,
children: <
Widget>[
Text(result
.patientName),
Text('File No:' +
result.iD.toString()),
])),
],
));
children: <
Widget>[
Text(result.patientName),
Text('File No:' +
result.iD.toString()),
])),
],
))
: SizedBox();
}).toList()));
}
},

@ -12,11 +12,13 @@ class DrawerItem extends StatefulWidget {
final Color textColor;
final Color iconColor;
final bool bottomLine;
final bool sideArrow;
DrawerItem(this.title, this.icon,
{this.textColor = Colors.black,
this.iconColor = Colors.black87,
this.subTitle = '',
this.bottomLine = true});
this.bottomLine = true,
this.sideArrow = false});
@override
_DrawerItemState createState() => _DrawerItemState();
@ -66,6 +68,12 @@ class _DrawerItemState extends State<DrawerItem> {
)
: SizedBox(),
])),
widget.sideArrow == true
? Expanded(
flex: 1,
child:
Icon(Icons.keyboard_arrow_right, color: Colors.red))
: Expanded(flex: 1, child: SizedBox())
],
),
));

Loading…
Cancel
Save