diff --git a/lib/home/points_mall_page.dart b/lib/home/points_mall_page.dart index 2c196d75..c31eb079 100644 --- a/lib/home/points_mall_page.dart +++ b/lib/home/points_mall_page.dart @@ -48,6 +48,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 25c2c3c6..69c6715a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -124,7 +124,7 @@ class MyApp extends StatelessWidget { textScaleFactor: textScaleFactor > 1.15 ? 1.15 : textScaleFactor, // devicePixelRatio: devicePixelRatio * 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 dcf9815b..13de9c0d 100644 --- a/lib/mine/coupons_page.dart +++ b/lib/mine/coupons_page.dart @@ -28,6 +28,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 018f7454..0d4f0749 100644 --- a/lib/mine/manage_address_page.dart +++ b/lib/mine/manage_address_page.dart @@ -257,11 +257,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 dc2c677d..6a86f23b 100644 --- a/lib/mine/mine_card_invalid_page.dart +++ b/lib/mine/mine_card_invalid_page.dart @@ -24,6 +24,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 81f21a01..2752f728 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -41,8 +41,7 @@ dependencies: permission_handler: ^5.0.1+1 amap_flutter_map: ^1.0.0 amap_flutter_location: ^2.0.0 # Null safety - share_plus: ^2.1.4 - sharesdk_plugin: ^1.3.0 + share: ^0.6.1+1 # flutter_baidu_mapapi_search: ^2.0.1 # flutter_baidu_mapapi_map: ^2.0.1