Commit 00f4af6b18e14b27f1dcf587f86c81df7a7ef133

Authored by wdn127929
1 parent 0b4687d1

退出登录按钮点击范围扩大

@@ -61,7 +61,7 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore> @@ -61,7 +61,7 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore>
61 void dispose() { 61 void dispose() {
62 super.dispose(); 62 super.dispose();
63 WidgetsBinding.instance.removeObserver(this); //销毁观察者 63 WidgetsBinding.instance.removeObserver(this); //销毁观察者
64 - EventBus().emit('refresh_store_list'); 64 + EventBus().off('refresh_store_list');
65 } 65 }
66 66
67 @override 67 @override
@@ -106,8 +106,8 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore> @@ -106,8 +106,8 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore>
106 106
107 ///获取是否有店 107 ///获取是否有店
108 _checkSellerAcc({showLoading = false}) async { 108 _checkSellerAcc({showLoading = false}) async {
109 - CreateStoreModel createStoreModel =  
110 - Provider.of<CreateStoreModel>(context, listen: false); 109 + // CreateStoreModel createStoreModel =
  110 + // Provider.of<CreateStoreModel>(context, listen: false);
111 Map<String, String> params = { 111 Map<String, String> params = {
112 // "phone": createStoreModel.storeInfo.phone, 112 // "phone": createStoreModel.storeInfo.phone,
113 // "phone": '', 113 // "phone": '',
@@ -276,7 +276,7 @@ class UserModel with ChangeNotifier { @@ -276,7 +276,7 @@ class UserModel with ChangeNotifier {
276 VEmptyView(66), 276 VEmptyView(66),
277 MyDivider(double.infinity, ScreenUtil().setWidth(1)), 277 MyDivider(double.infinity, ScreenUtil().setWidth(1)),
278 Container( 278 Container(
279 - height: ScreenUtil().setWidth(94), 279 + // height: ScreenUtil().setWidth(94),
280 child: Row( 280 child: Row(
281 children: <Widget>[ 281 children: <Widget>[
282 Expanded( 282 Expanded(
@@ -284,13 +284,16 @@ class UserModel with ChangeNotifier { @@ -284,13 +284,16 @@ class UserModel with ChangeNotifier {
284 onTap: () { 284 onTap: () {
285 Navigator.of(context).pop(); 285 Navigator.of(context).pop();
286 }, 286 },
287 - child: Text(  
288 - "取消",  
289 - style: TextStyle(  
290 - fontSize: ScreenUtil().setSp(34),  
291 - color: MyColours.color_777777),  
292 - textAlign: TextAlign.center,  
293 - ), 287 + child: Container(
  288 + height: ScreenUtil().setWidth(94),
  289 + alignment: Alignment.center,
  290 + child: Text(
  291 + "取消",
  292 + style: TextStyle(
  293 + fontSize: ScreenUtil().setSp(34),
  294 + color: MyColours.color_777777),
  295 + textAlign: TextAlign.center,
  296 + )),
294 ), 297 ),
295 ), 298 ),
296 MyDivider( 299 MyDivider(
@@ -304,12 +307,16 @@ class UserModel with ChangeNotifier { @@ -304,12 +307,16 @@ class UserModel with ChangeNotifier {
304 "account": user.account 307 "account": user.account
305 }); 308 });
306 }, 309 },
307 - child: Text(  
308 - "确定",  
309 - style: TextStyle(  
310 - fontSize: ScreenUtil().setSp(34),  
311 - color: MyColours.color_2bb5b7),  
312 - textAlign: TextAlign.center, 310 + child: Container(
  311 + height: ScreenUtil().setWidth(94),
  312 + alignment: Alignment.center,
  313 + child: Text(
  314 + "确定",
  315 + style: TextStyle(
  316 + fontSize: ScreenUtil().setSp(34),
  317 + color: MyColours.color_2bb5b7),
  318 + textAlign: TextAlign.center,
  319 + ),
313 ), 320 ),
314 ), 321 ),
315 ) 322 )