Browse Source

修改

null_safety
哈哈哈 3 years ago
parent
commit
8dd285a0f8
  1. 2
      lib/address/address_map_page.dart
  2. 2
      lib/home/home_page.dart
  3. 4
      lib/integral/integral_page.dart
  4. 2
      lib/login/login_page.dart
  5. 2
      lib/mine/mine_page.dart
  6. 2
      lib/order/store_selector_page.dart
  7. 2
      lib/union/union_page.dart

2
lib/address/address_map_page.dart

@ -199,7 +199,7 @@ class _AddressMapPage extends State<AddressMapPage> {
if (await Permission.location.isPermanentlyDenied) { if (await Permission.location.isPermanentlyDenied) {
requestDialog(); requestDialog();
} else if (await Permission.location.isGranted) { } else if (await Permission.location.isGranted) {
SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1));
aMapFlutterLocation.startLocation(); aMapFlutterLocation.startLocation();
Future.delayed(Duration(seconds: 6), () { Future.delayed(Duration(seconds: 6), () {
SmartDialog.dismiss(); SmartDialog.dismiss();

2
lib/home/home_page.dart

@ -83,7 +83,7 @@ class _HomePage extends State<HomePage> with AutomaticKeepAliveClientMixin {
Founder founder; Founder founder;
queryHome() async { queryHome() async {
SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1));
BaseData baseData = await apiService.queryBanner({ BaseData baseData = await apiService.queryBanner({
"model": {"type": "HOME_PAGE"}, "model": {"type": "HOME_PAGE"},
}).catchError((onError) { }).catchError((onError) {

4
lib/integral/integral_page.dart

@ -43,7 +43,7 @@ class _IntegralPage extends State<IntegralPage> {
token: value.getString("token"), token: value.getString("token"),
showLoading: false); showLoading: false);
userinfo = UserInfo.fromJson(jsonDecode(value.getString("user"))); userinfo = UserInfo.fromJson(jsonDecode(value.getString("user")));
SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1));
querySignInfo(); querySignInfo();
}); });
} }
@ -511,6 +511,8 @@ class _IntegralPage extends State<IntegralPage> {
SmartDialog.show( SmartDialog.show(
widget: SignInWidget("${signInfo.signInList.length + 1}", widget: SignInWidget("${signInfo.signInList.length + 1}",
"${signInfo.rewardList[signInfo.signInList.length]}")); "${signInfo.rewardList[signInfo.signInList.length]}"));
} else {
SmartDialog.dismiss();
} }
} }

2
lib/login/login_page.dart

@ -274,7 +274,7 @@ class _MyLoginPageState extends State<LoginPage> with TickerProviderStateMixin {
"capcha": code, "capcha": code,
"mobile": mobile, "mobile": mobile,
}; };
SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1));
BaseData value = await client.memberLogin(param).catchError((error) { BaseData value = await client.memberLogin(param).catchError((error) {
print(error); print(error);
SmartDialog.showToast("$error", alignment: Alignment.center); SmartDialog.showToast("$error", alignment: Alignment.center);

2
lib/mine/mine_page.dart

@ -99,7 +99,7 @@ class _MinePage extends State<MinePage> with AutomaticKeepAliveClientMixin {
List<Rank> ranks = []; List<Rank> ranks = [];
queryUserInfo() async { queryUserInfo() async {
SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1));
BaseData rankData = await apiService.rankList(); BaseData rankData = await apiService.rankList();
if (rankData != null && rankData.isSuccess) { if (rankData != null && rankData.isSuccess) {
ranks.clear(); ranks.clear();

2
lib/order/store_selector_page.dart

@ -119,7 +119,7 @@ class _StoreSelectorPage extends State<StoreSelectorPage> {
if (await Permission.location.isPermanentlyDenied) { if (await Permission.location.isPermanentlyDenied) {
requestDialog(); requestDialog();
} else if (await Permission.location.isGranted) { } else if (await Permission.location.isGranted) {
SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1));
aMapFlutterLocation.startLocation(); aMapFlutterLocation.startLocation();
Future.delayed(Duration(seconds: 6), () { Future.delayed(Duration(seconds: 6), () {
SmartDialog.dismiss(); SmartDialog.dismiss();

2
lib/union/union_page.dart

@ -365,7 +365,7 @@ class _UnionPage extends State<UnionPage>
requestDialog(); requestDialog();
refreshController.refreshCompleted(); refreshController.refreshCompleted();
} else if (await Permission.location.isGranted) { } else if (await Permission.location.isGranted) {
SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai); SmartDialog.showLoading(msg: S.of(context).zhengzaijiazai, animationDurationTemp: Duration(seconds: 1));
aMapFlutterLocation.startLocation(); aMapFlutterLocation.startLocation();
Future.delayed(Duration(seconds: 6), () { Future.delayed(Duration(seconds: 6), () {
SmartDialog.dismiss(); SmartDialog.dismiss();

Loading…
Cancel
Save