|
|
|
@ -157,6 +157,10 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
height: 1,
|
|
|
|
height: 1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
mHeight(20.0),
|
|
|
|
|
|
|
|
(user != null && projectProvider.isLogin)
|
|
|
|
|
|
|
|
? Image.network("https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=${user.patientID.toString()}", fit: BoxFit.fill, height: 73.5, width: 73.5)
|
|
|
|
|
|
|
|
: Container(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -222,7 +226,7 @@ class _AppDrawerState extends State<AppDrawer> {
|
|
|
|
builder: (BuildContext context, AsyncSnapshot<GetAllSharedRecordsByStatusResponse> snapshot) {
|
|
|
|
builder: (BuildContext context, AsyncSnapshot<GetAllSharedRecordsByStatusResponse> snapshot) {
|
|
|
|
switch (snapshot.connectionState) {
|
|
|
|
switch (snapshot.connectionState) {
|
|
|
|
case ConnectionState.waiting:
|
|
|
|
case ConnectionState.waiting:
|
|
|
|
return Padding(padding: EdgeInsets.all(10), child:CircularProgressIndicator());
|
|
|
|
return Padding(padding: EdgeInsets.all(10), child: CircularProgressIndicator());
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
if (snapshot.hasError)
|
|
|
|
if (snapshot.hasError)
|
|
|
|
return Padding(padding: EdgeInsets.all(10), child: Text(snapshot.error));
|
|
|
|
return Padding(padding: EdgeInsets.all(10), child: Text(snapshot.error));
|
|
|
|
|