|
|
|
|
@ -120,43 +120,54 @@ class _ChildPageState extends State<ChildVaccinePage> with SingleTickerProviderS
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
await model.deleteBabyOrders(newChild: deleteBaby);
|
|
|
|
|
Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
Icon(
|
|
|
|
|
Icons.arrow_forward,
|
|
|
|
|
size: 18,
|
|
|
|
|
),
|
|
|
|
|
mHeight(12),
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
await model.deleteBabyOrders(newChild: deleteBaby);
|
|
|
|
|
|
|
|
|
|
deleteBaby.babyID = model.babyInformationModelList[index].babyID;
|
|
|
|
|
deleteBaby.babyID = model.babyInformationModelList[index].babyID;
|
|
|
|
|
|
|
|
|
|
await model.deleteBabyOrders(newChild: deleteBaby);
|
|
|
|
|
if (model.isDeleted) {
|
|
|
|
|
AppToast.showSuccessToast(message: TranslationBase.of(context).recordDeleted);
|
|
|
|
|
Navigator.pop(context, model.isDeleted);
|
|
|
|
|
} else {
|
|
|
|
|
//TODO handling error
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
decoration: containerRadius(Colors.grey.withOpacity(0.2), 2000),
|
|
|
|
|
padding: EdgeInsets.only(left: 12, right: 12, top: 8, bottom: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/new-design/garbage.png',
|
|
|
|
|
width: 16,
|
|
|
|
|
color: selectedColor,
|
|
|
|
|
),
|
|
|
|
|
mWidth(8),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).deleteView,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 11,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
letterSpacing: -0.33,
|
|
|
|
|
color: selectedColor,
|
|
|
|
|
),
|
|
|
|
|
await model.deleteBabyOrders(newChild: deleteBaby);
|
|
|
|
|
if (model.isDeleted) {
|
|
|
|
|
AppToast.showSuccessToast(message: TranslationBase.of(context).recordDeleted);
|
|
|
|
|
Navigator.pop(context, model.isDeleted);
|
|
|
|
|
} else {
|
|
|
|
|
//TODO handling error
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
decoration: containerRadius(Colors.grey.withOpacity(0.2), 2000),
|
|
|
|
|
padding: EdgeInsets.only(left: 12, right: 12, top: 8, bottom: 8),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/new-design/garbage.png',
|
|
|
|
|
width: 16,
|
|
|
|
|
color: selectedColor,
|
|
|
|
|
),
|
|
|
|
|
mWidth(8),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).deleteView,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 11,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
letterSpacing: -0.33,
|
|
|
|
|
color: selectedColor,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|