diff --git a/lib/home/points_mall_page.dart b/lib/home/points_mall_page.dart index 465b7de3..77fcdf83 100644 --- a/lib/home/points_mall_page.dart +++ b/lib/home/points_mall_page.dart @@ -47,6 +47,12 @@ class _PointsMallPage extends State S.current.jifendidaogao, ]; + @override + void dispose() { + super.dispose(); + _refreshController.dispose(); + } + @override void initState() { super.initState(); diff --git a/lib/main.dart b/lib/main.dart index ad7aaa36..e93c69a0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -147,7 +147,7 @@ class MyApp extends StatelessWidget { data: MediaQuery.of(context).copyWith( textScaleFactor: textScaleFactor > 1.15 ? 1.15 : textScaleFactor, ), - child: FlutterSmartDialog(child: widget), + child: FlutterSmartDialog(child:widget), ); }, onGenerateRoute: (settings) { diff --git a/lib/mine/coupons_page.dart b/lib/mine/coupons_page.dart index a912b91f..02a2fd4b 100644 --- a/lib/mine/coupons_page.dart +++ b/lib/mine/coupons_page.dart @@ -27,6 +27,12 @@ class _CouponsPage extends State { ApiService apiService; RefreshController _refreshController; + @override + void dispose() { + super.dispose(); + _refreshController.dispose(); + } + @override void initState() { super.initState(); diff --git a/lib/mine/manage_address_page.dart b/lib/mine/manage_address_page.dart index 90ec2e31..493c95c1 100644 --- a/lib/mine/manage_address_page.dart +++ b/lib/mine/manage_address_page.dart @@ -256,11 +256,14 @@ class _ManageAddressPage extends State { ), ), InkWell( - child: Text( - "删除", - style: TextStyle( - fontSize: 16, - color: Colors.black, + child: Padding( + padding: EdgeInsets.only(top:5,), + child: Text( + "删除", + style: TextStyle( + fontSize: 16, + color: Colors.black, + ), ), ), onTap: () { diff --git a/lib/mine/mine_card_invalid_page.dart b/lib/mine/mine_card_invalid_page.dart index 585b67b6..a2236a56 100644 --- a/lib/mine/mine_card_invalid_page.dart +++ b/lib/mine/mine_card_invalid_page.dart @@ -23,6 +23,12 @@ class _MineCardInvalidPage extends State { ApiService apiService; + @override + void dispose() { + super.dispose(); + _refreshController.dispose(); + } + @override void initState() { super.initState(); diff --git a/pubspec.yaml b/pubspec.yaml index 5cad8c56..aaa48823 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -93,7 +93,6 @@ dependencies: package_info: ^2.0.2 sharesdk_plugin: ^1.3.0 -# jshare_flutter_plugin: ^2.1.2 dev_dependencies: flutter_test: