From cfe17babae00f247180c2ea31677f5a4947ecba6 Mon Sep 17 00:00:00 2001 From: huixiang_app <953969641@qq.com> Date: Fri, 15 Sep 2023 11:10:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=9B=B4=E6=94=B9=EF=BC=8C?= =?UTF-8?q?=E5=90=88=E5=B9=B6map=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mine/mine_view/mine_item.dart | 37 ++++++++++++++++++------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/lib/mine/mine_view/mine_item.dart b/lib/mine/mine_view/mine_item.dart index 67b6e9de..89c369b2 100644 --- a/lib/mine/mine_view/mine_item.dart +++ b/lib/mine/mine_view/mine_item.dart @@ -1,5 +1,8 @@ +import 'package:dio/dio.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_easyloading/flutter_easyloading.dart'; +import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/utils/font_weight.dart'; import 'package:huixiang/view_widget/login_tips_dialog.dart'; @@ -34,9 +37,9 @@ class _MineItem extends State { maskType: EasyLoadingMaskType.black); BusinessApiService businessService = - BusinessApiService(Dio(), context: context); + BusinessApiService(Dio(), context: context); BaseData baseData = - await businessService.annoToken(param).catchError((error) { + await businessService.annoToken(param).catchError((error) { print(error.message); }); if (baseData != null && baseData.isSuccess) { @@ -218,20 +221,22 @@ class _MineItem extends State { ), ///店铺余额 - Expanded(child: InkWell( - onTap: () { - SharedPreferences.getInstance().then((value) { - if (value.getString("token") == null || - value.getString("token") == "") { - LoginTipsDialog().show(context); - return; - } - Navigator.of(context).pushNamed('/router/mine_shop_page'); - }); - }, - child: mineItem( - S.of(context).dianpuchongzhi, - "assets/image/shop_yue.webp", + Expanded( + child: InkWell( + onTap: () { + SharedPreferences.getInstance().then((value) { + if (value.getString("token") == null || + value.getString("token") == "") { + LoginTipsDialog().show(context); + return; + } + Navigator.of(context).pushNamed('/router/mine_shop_page'); + }); + }, + child: mineItem( + S.of(context).dianpuchongzhi, + "assets/image/shop_yue.webp", + ), ), ),