family files changes

merge-update-with-lab-changes
Sultan Khan 6 years ago
parent adbdd2dd0d
commit da6f238c89

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

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

Loading…
Cancel
Save