|
|
|
@ -361,7 +361,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
child: ExpansionTile(
|
|
|
|
child: ExpansionTile(
|
|
|
|
title: Text(
|
|
|
|
title: Text(
|
|
|
|
TranslationBase.of(context).userViewRequest,
|
|
|
|
TranslationBase.of(context).userViewRequest,
|
|
|
|
style: TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold),
|
|
|
|
style: TextStyle(fontSize: 16.0, fontWeight: FontWeight.bold, color: Colors.black),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
FutureBuilder(
|
|
|
|
FutureBuilder(
|
|
|
|
@ -374,19 +374,26 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
if (snapshot.hasError)
|
|
|
|
if (snapshot.hasError)
|
|
|
|
return Padding(padding: EdgeInsets.all(10), child: Text(TranslationBase.of(context).noDataAvailable));
|
|
|
|
return Padding(padding: EdgeInsets.all(10), child: Text(TranslationBase.of(context).noDataAvailable));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return Column(
|
|
|
|
return Container(
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(15),
|
|
|
|
|
|
|
|
child: Card(
|
|
|
|
|
|
|
|
elevation: 3,
|
|
|
|
|
|
|
|
shape: cardRadius(8),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Column(children: [
|
|
|
|
Column(children: [
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: 10, right: 10),
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
child: Row(children: [
|
|
|
|
child: Row(children: [
|
|
|
|
Expanded(flex: 3, child: AppText(TranslationBase.of(context).name)),
|
|
|
|
Expanded(flex: 3, child: AppText(TranslationBase.of(context).name, fontWeight: FontWeight.w600)),
|
|
|
|
Expanded(flex: 1, child: AppText(TranslationBase.of(context).allow)),
|
|
|
|
Expanded(flex: 1, child: AppText(TranslationBase.of(context).allow, fontWeight: FontWeight.w600)),
|
|
|
|
Expanded(flex: 1, child: AppText(TranslationBase.of(context).reject)),
|
|
|
|
Expanded(flex: 1, child: AppText(TranslationBase.of(context).reject, fontWeight: FontWeight.w600)),
|
|
|
|
])),
|
|
|
|
])),
|
|
|
|
|
|
|
|
Divider(color: Colors.black, height: 1),
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
|
children: familyFileProvider.allSharedRecordsByStatusResponse.getAllSharedRecordsByStatusList.map<Widget>((result) {
|
|
|
|
children: familyFileProvider.allSharedRecordsByStatusResponse.getAllSharedRecordsByStatusList.map<Widget>((result) {
|
|
|
|
return Card(
|
|
|
|
return Container(
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
Expanded(flex: 3, child: Text(result.patientName)),
|
|
|
|
Expanded(flex: 3, child: Text(result.patientName)),
|
|
|
|
@ -417,7 +424,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
}).toList())
|
|
|
|
}).toList())
|
|
|
|
])
|
|
|
|
])
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -427,7 +434,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
child: ExpansionTile(
|
|
|
|
child: ExpansionTile(
|
|
|
|
title: Text(
|
|
|
|
title: Text(
|
|
|
|
TranslationBase.of(context).sentRequest,
|
|
|
|
TranslationBase.of(context).sentRequest,
|
|
|
|
style: TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold),
|
|
|
|
style: TextStyle(fontSize: 16.0, fontWeight: FontWeight.bold, color: Colors.black),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
FutureBuilder(
|
|
|
|
FutureBuilder(
|
|
|
|
@ -441,11 +448,21 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
return Padding(padding: EdgeInsets.all(10), child: Text(TranslationBase.of(context).noDataAvailable));
|
|
|
|
return Padding(padding: EdgeInsets.all(10), child: Text(TranslationBase.of(context).noDataAvailable));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(15),
|
|
|
|
height: SizeConfig.screenHeight * .3,
|
|
|
|
height: SizeConfig.screenHeight * .3,
|
|
|
|
|
|
|
|
child: Card(
|
|
|
|
|
|
|
|
elevation: 3,
|
|
|
|
|
|
|
|
shape: cardRadius(8),
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Padding(padding: EdgeInsets.only(left: 10, right: 10), child: Row(children: [Expanded(flex: 3, child: AppText(TranslationBase.of(context).theName))])),
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
|
|
|
child: Row(children: [
|
|
|
|
|
|
|
|
Expanded(flex: 3, child: AppText(TranslationBase.of(context).theName, fontWeight: FontWeight.w600)),
|
|
|
|
|
|
|
|
Expanded(flex: 2, child: AppText(TranslationBase.of(context).status, fontWeight: FontWeight.w600))
|
|
|
|
|
|
|
|
])),
|
|
|
|
|
|
|
|
Divider(color: Colors.black, height: 1),
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
|
children: snapshot.data.getAllSharedRecordsByStatusList.map<Widget>((result) {
|
|
|
|
children: snapshot.data.getAllSharedRecordsByStatusList.map<Widget>((result) {
|
|
|
|
return Padding(
|
|
|
|
return Padding(
|
|
|
|
@ -464,7 +481,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
}).toList(),
|
|
|
|
}).toList(),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
)));
|
|
|
|
))));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -473,7 +490,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
child: ExpansionTile(
|
|
|
|
child: ExpansionTile(
|
|
|
|
title: Text(
|
|
|
|
title: Text(
|
|
|
|
TranslationBase.of(context).userView,
|
|
|
|
TranslationBase.of(context).userView,
|
|
|
|
style: TextStyle(fontSize: 18.0, fontWeight: FontWeight.bold),
|
|
|
|
style: TextStyle(fontSize: 16.0, fontWeight: FontWeight.bold, color: Colors.black),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
children: <Widget>[
|
|
|
|
children: <Widget>[
|
|
|
|
FutureBuilder(
|
|
|
|
FutureBuilder(
|
|
|
|
@ -486,15 +503,21 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
if (snapshot.hasError)
|
|
|
|
if (snapshot.hasError)
|
|
|
|
return Padding(padding: EdgeInsets.all(10), child: Text(TranslationBase.of(context).noDataAvailable));
|
|
|
|
return Padding(padding: EdgeInsets.all(10), child: Text(TranslationBase.of(context).noDataAvailable));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return Column(
|
|
|
|
return Container(
|
|
|
|
|
|
|
|
padding: EdgeInsets.all(15),
|
|
|
|
|
|
|
|
child: Card(
|
|
|
|
|
|
|
|
elevation: 3,
|
|
|
|
|
|
|
|
shape: cardRadius(8),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Column(children: [
|
|
|
|
Column(children: [
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: 10, right: 10),
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
child: Row(children: [
|
|
|
|
child: Row(children: [
|
|
|
|
Expanded(flex: 3, child: AppText(TranslationBase.of(context).name)),
|
|
|
|
Expanded(flex: 3, child: AppText(TranslationBase.of(context).name)),
|
|
|
|
Expanded(flex: 1, child: AppText(TranslationBase.of(context).delete)),
|
|
|
|
Expanded(flex: 1, child: AppText(TranslationBase.of(context).delete)),
|
|
|
|
])),
|
|
|
|
])),
|
|
|
|
|
|
|
|
Divider(color: Colors.black),
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
|
children: familyFileProvider.allSharedRecordsByStatusResponse.getAllSharedRecordsByStatusList.map<Widget>((result) {
|
|
|
|
children: familyFileProvider.allSharedRecordsByStatusResponse.getAllSharedRecordsByStatusList.map<Widget>((result) {
|
|
|
|
return Padding(
|
|
|
|
return Padding(
|
|
|
|
@ -518,7 +541,7 @@ class _MyFamily extends State<MyFamily> with TickerProviderStateMixin {
|
|
|
|
}).toList())
|
|
|
|
}).toList())
|
|
|
|
])
|
|
|
|
])
|
|
|
|
],
|
|
|
|
],
|
|
|
|
);
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|