|
...
|
...
|
@@ -6,6 +6,7 @@ import 'package:one_key/res/colors.dart'; |
|
|
|
import 'package:one_key/widgets/MyDivider.dart';
|
|
|
|
import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
import 'package:permission_handler/permission_handler.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
...
|
...
|
@@ -167,8 +168,10 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> { |
|
|
|
height: 1.5,
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours.color_000000))),
|
|
|
|
VEmptyView(40),
|
|
|
|
_textFeildWidget(nameC, '店铺名称:', '点击输入店铺名称'),
|
|
|
|
_divider(),
|
|
|
|
VEmptyView(20),
|
|
|
|
_addressWidget('店铺地址:', storeAddress, () {
|
|
|
|
//
|
|
|
|
Utils.getPickPermission(context, () async {
|
|
...
|
...
|
@@ -184,21 +187,54 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> { |
|
|
|
}
|
|
|
|
}, Permission.location);
|
|
|
|
}),
|
|
|
|
_divider(),
|
|
|
|
VEmptyView(20),
|
|
|
|
_textFeildWidget(phoneC, '联系电话:', '点击输入您的电话号码'),
|
|
|
|
_divider(),
|
|
|
|
VEmptyView(20),
|
|
|
|
_textFeildWidget(personC, '联系人:', '点击输入您的姓名'),
|
|
|
|
_divider(),
|
|
|
|
VEmptyView(20),
|
|
|
|
_addressWidget('城市选择:', cityString, () async {
|
|
|
|
Result result = await CityPickers.showCityPicker(
|
|
|
|
context: context,
|
|
|
|
);
|
|
|
|
context: context,
|
|
|
|
borderRadius: r(8),
|
|
|
|
cancelWidget: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(20), vertical: w(20)),
|
|
|
|
child: Text(
|
|
|
|
'取消',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
confirmWidget: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(20), vertical: w(20)),
|
|
|
|
child: Text(
|
|
|
|
'确定',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
theme: ThemeData(
|
|
|
|
textTheme: TextTheme(
|
|
|
|
bodyText1: TextStyle(
|
|
|
|
fontSize: font(11),
|
|
|
|
// fontWeight: FontWeight.w200,
|
|
|
|
),
|
|
|
|
)));
|
|
|
|
print(result);
|
|
|
|
proCode = result.provinceId;
|
|
|
|
cityCode = result.cityId;
|
|
|
|
disCode = result.areaId;
|
|
|
|
cityString =
|
|
|
|
result.provinceName + result.cityName + result.areaName;
|
|
|
|
setState(() {});
|
|
|
|
if (result != null) {
|
|
|
|
proCode = result.provinceId;
|
|
|
|
cityCode = result.cityId;
|
|
|
|
disCode = result.areaId;
|
|
|
|
cityString =
|
|
|
|
result.provinceName + result.cityName + result.areaName;
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
_divider(),
|
|
|
|
],
|
...
|
...
|
|