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,
];
@override
void dispose() {
super.dispose();
_refreshController.dispose();
}
@override
void initState() {
super.initState();

2
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) {

6
lib/mine/coupons_page.dart

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

13
lib/mine/manage_address_page.dart

@ -257,11 +257,14 @@ class _ManageAddressPage extends State<ManageAddressPage> {
),
),
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: () {

6
lib/mine/mine_card_invalid_page.dart

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

3
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

Loading…
Cancel
Save