diff --git a/lib/pages/express_packages/express_package_card.dart b/lib/pages/express_packages/express_package_card.dart index 51c18784..702f4f36 100644 --- a/lib/pages/express_packages/express_package_card.dart +++ b/lib/pages/express_packages/express_package_card.dart @@ -97,26 +97,6 @@ class _ExpressPackageCardState extends State { ], ), ], - 40.w.heightBox, - Row( - children: [ - Spacer(), - MaterialButton( - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(74.w)), - padding: EdgeInsets.symmetric(vertical: 8.w, horizontal: 24.w), - height: 50.w, - color: kPrimaryColor, - elevation: 0, - focusElevation: 0, - hoverElevation: 0, - disabledElevation: 0, - highlightElevation: 0, - onPressed: () {}, - child: '确认领取'.text.size(24.sp).bold.color(ktextPrimary).make(), - ) - ], - ), ], ), ); diff --git a/lib/ui/market/category/category_sub_view.dart b/lib/ui/market/category/category_sub_view.dart index ef5ef975..ef3b0e81 100644 --- a/lib/ui/market/category/category_sub_view.dart +++ b/lib/ui/market/category/category_sub_view.dart @@ -14,10 +14,12 @@ class CategorySubView extends StatefulWidget { _CategorySubViewState createState() => _CategorySubViewState(); } -class _CategorySubViewState extends State { +class _CategorySubViewState extends State + with AutomaticKeepAliveClientMixin { List _models = []; @override Widget build(BuildContext context) { + super.build(context); return EasyRefresh( header: MaterialHeader(), firstRefresh: true, @@ -41,4 +43,7 @@ class _CategorySubViewState extends State { ), ); } + + @override + bool get wantKeepAlive => true; }