扩大物品出户card点击区域

添加包裹代收提醒代收成功提示
hmxc
张萌 4 years ago
parent 45baef9cb5
commit 0b13cfdf5c

@ -29,9 +29,17 @@ class _ToDoOutDoorCardState extends State<ToDoOutDoorCard> {
Widget build(BuildContext context) {
TextStyle _textStyle =
TextStyle(color: AppStyle.minorTextColor, fontSize: 28.sp);
return Container(
return GestureDetector(
onTap: () async {
await Get.to(ItemsOutdoorDetailsPage(id: widget.model.id));
if (widget.callRefresh != null) {
widget.callRefresh();
}
},
child: Container(
color: Color(0xFFFFFFFF),
margin: widget.homeDisplay ? EdgeInsets.zero : EdgeInsets.only(top: 16.w),
margin:
widget.homeDisplay ? EdgeInsets.zero : EdgeInsets.only(top: 16.w),
padding: EdgeInsets.only(left: 24.w, right: 24.w),
child: Column(
children: [
@ -223,7 +231,10 @@ class _ToDoOutDoorCardState extends State<ToDoOutDoorCard> {
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [AppStyle.primaryColor, AppStyle.minorColor])),
colors: [
AppStyle.primaryColor,
AppStyle.minorColor
])),
child: Text(
'查看详情',
style: AppStyle().primaryStyle,
@ -233,6 +244,7 @@ class _ToDoOutDoorCardState extends State<ToDoOutDoorCard> {
),
],
),
),
);
}
}

@ -132,6 +132,8 @@ class _PackageManageCardState extends State<PackageManageCard> {
params: {"packageCollectionId": packageCollectionId});
if (!baseModel.status) {
BotToast.showText(text: baseModel.message);
} else {
BotToast.showText(text: '已成功提醒领取');
}
}

@ -28,7 +28,14 @@ class _ItemsOutdoorCardState extends State<ItemsOutdoorCard> {
Widget build(BuildContext context) {
TextStyle _textStyle =
TextStyle(color: AppStyle.minorTextColor, fontSize: 28.sp);
return Container(
return GestureDetector(
onTap: () async {
await Get.to(ItemsOutdoorDetailsPage(id: widget.model.id));
if (widget.callRefresh != null) {
widget.callRefresh();
}
},
child: Container(
color: Color(0xFFFFFFFF),
margin: EdgeInsets.only(top: 16.w),
padding: EdgeInsets.only(left: 24.w, right: 24.w),
@ -214,7 +221,10 @@ class _ItemsOutdoorCardState extends State<ItemsOutdoorCard> {
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [AppStyle.primaryColor, AppStyle.minorColor])),
colors: [
AppStyle.primaryColor,
AppStyle.minorColor
])),
child: Text(
'查看详情',
style: AppStyle().primaryStyle,
@ -224,6 +234,7 @@ class _ItemsOutdoorCardState extends State<ItemsOutdoorCard> {
),
],
),
),
);
}
}

Loading…
Cancel
Save