Commit e41de518ebdc527d098270ca79fcf5b7fde7f148

Authored by wdn127929
1 parent fe05e5a6

city_picker

... ... @@ -26,6 +26,7 @@ import 'package:one_key/widgets/system_app_bar.dart';
import 'package:one_key/widgets/v_empty_view.dart';
import 'package:provider/provider.dart';
import 'package:tpns_flutter_plugin/tpns_flutter_plugin.dart';
import 'package:city_pickers/city_pickers.dart';
class IfNeedCreateStore extends StatefulWidget {
final List<CheckSellerAccSunModel> data;
... ... @@ -191,34 +192,39 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore>
_baseIndoProvider = Provider.of<BaseIndoProvider>(context, listen: true);
return Scaffold(
backgroundColor: Colors.white,
appBar: SystemAppBar(
'选择店铺',
// leftTitle: '上一步',
appBar: SystemAppBar('选择店铺',
// leftTitle: '上一步',
rightImgName: 'add_check_store.png', onTapRight: () async {
Result result2 = await CityPickers.showCityPicker(
context: context,
);
print(result2);
}
// rightImgName: 'add_check_store.png', onTapRight: () {
// if (otherLoginProvider.pageState != PageState.Success) {
// // if (!App.sp.containsKey('openid') ||
// // App.sp.get("openid") == null ||
// // App.sp.get("openid") == '') {
// //跳转小程序
// Utils.goMiniProgramCreatePage(context);
// // } else {
// // //跳转至新建店铺流程
// // NavigatorUtil.goEnterStoreNamePage(context);
// // }
// } else {
// // if (!App.sp.containsKey('openid') ||
// // App.sp.get("openid") == null ||
// // App.sp.get("openid") == '') {
// // //跳转小程序
// // Utils.goMiniProgramCreatePage(context);
// // } else {
// //跳转至新建店铺流程
// NavigatorUtil.goEnterStoreNamePage(context);
// // }
// }
// }
),
// rightImgName: 'add_check_store.png', onTapRight: () {
// if (otherLoginProvider.pageState != PageState.Success) {
// // if (!App.sp.containsKey('openid') ||
// // App.sp.get("openid") == null ||
// // App.sp.get("openid") == '') {
// //跳转小程序
// Utils.goMiniProgramCreatePage(context);
// // } else {
// // //跳转至新建店铺流程
// // NavigatorUtil.goEnterStoreNamePage(context);
// // }
// } else {
// // if (!App.sp.containsKey('openid') ||
// // App.sp.get("openid") == null ||
// // App.sp.get("openid") == '') {
// // //跳转小程序
// // Utils.goMiniProgramCreatePage(context);
// // } else {
// //跳转至新建店铺流程
// NavigatorUtil.goEnterStoreNamePage(context);
// // }
// }
// }
),
body: Container(
// margin: EdgeInsets.only(bottom: ScreenUtil().setWidth(40)),
padding:
... ...
... ... @@ -239,6 +239,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.5"
city_pickers:
dependency: "direct main"
description:
name: city_pickers
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.3"
clock:
dependency: transitive
description:
... ...
... ... @@ -214,6 +214,8 @@ dependencies:
#视频播放
fijkplayer: ^0.11.0
city_pickers: ^1.1.3
... ...