Browse Source

部分修改;

null_safety
w-R 4 years ago
parent
commit
ffeff84a3e
  1. 6
      lib/home/points_mall_page.dart
  2. 2
      lib/main.dart
  3. 6
      lib/mine/coupons_page.dart
  4. 13
      lib/mine/manage_address_page.dart
  5. 6
      lib/mine/mine_card_invalid_page.dart
  6. 3
      pubspec.yaml

6
lib/home/points_mall_page.dart

@ -48,6 +48,12 @@ class _PointsMallPage extends State<PointsMallPage>
S.current.jifendidaogao, S.current.jifendidaogao,
]; ];
@override
void dispose() {
super.dispose();
_refreshController.dispose();
}
@override @override
void initState() { void initState() {
super.initState(); super.initState();

2
lib/main.dart

@ -124,7 +124,7 @@ class MyApp extends StatelessWidget {
textScaleFactor: textScaleFactor > 1.15 ? 1.15 : textScaleFactor, textScaleFactor: textScaleFactor > 1.15 ? 1.15 : textScaleFactor,
// devicePixelRatio: devicePixelRatio * textScaleFactor // devicePixelRatio: devicePixelRatio * textScaleFactor
), ),
child: FlutterSmartDialog(child: widget), child: FlutterSmartDialog(child:widget),
); );
}, },
onGenerateRoute: (settings) { onGenerateRoute: (settings) {

6
lib/mine/coupons_page.dart

@ -28,6 +28,12 @@ class _CouponsPage extends State<CouponsPage> {
ApiService apiService; ApiService apiService;
RefreshController _refreshController; RefreshController _refreshController;
@override
void dispose() {
super.dispose();
_refreshController.dispose();
}
@override @override
void initState() { void initState() {
super.initState(); super.initState();

13
lib/mine/manage_address_page.dart

@ -257,11 +257,14 @@ class _ManageAddressPage extends State<ManageAddressPage> {
), ),
), ),
InkWell( InkWell(
child: Text( child: Padding(
"删除", padding: EdgeInsets.only(top:5,),
style: TextStyle( child: Text(
fontSize: 16, "删除",
color: Colors.black, style: TextStyle(
fontSize: 16,
color: Colors.black,
),
), ),
), ),
onTap: () { onTap: () {

6
lib/mine/mine_card_invalid_page.dart

@ -24,6 +24,12 @@ class _MineCardInvalidPage extends State<MineCardInvalidPage> {
ApiService apiService; ApiService apiService;
@override
void dispose() {
super.dispose();
_refreshController.dispose();
}
@override @override
void initState() { void initState() {
super.initState(); super.initState();

3
pubspec.yaml

@ -41,8 +41,7 @@ dependencies:
permission_handler: ^5.0.1+1 permission_handler: ^5.0.1+1
amap_flutter_map: ^1.0.0 amap_flutter_map: ^1.0.0
amap_flutter_location: ^2.0.0 # Null safety amap_flutter_location: ^2.0.0 # Null safety
share_plus: ^2.1.4 share: ^0.6.1+1
sharesdk_plugin: ^1.3.0
# flutter_baidu_mapapi_search: ^2.0.1 # flutter_baidu_mapapi_search: ^2.0.1
# flutter_baidu_mapapi_map: ^2.0.1 # flutter_baidu_mapapi_map: ^2.0.1

Loading…
Cancel
Save