Showing
1 changed file
with
44 additions
and
8 deletions
| @@ -6,6 +6,7 @@ import 'package:one_key/res/colors.dart'; | @@ -6,6 +6,7 @@ import 'package:one_key/res/colors.dart'; | ||
| 6 | import 'package:one_key/widgets/MyDivider.dart'; | 6 | import 'package:one_key/widgets/MyDivider.dart'; |
| 7 | import 'package:one_key/widgets/h_empty_view.dart'; | 7 | import 'package:one_key/widgets/h_empty_view.dart'; |
| 8 | import 'package:one_key/widgets/system_app_bar.dart'; | 8 | import 'package:one_key/widgets/system_app_bar.dart'; |
| 9 | +import 'package:one_key/widgets/v_empty_view.dart'; | ||
| 9 | import 'package:permission_handler/permission_handler.dart'; | 10 | import 'package:permission_handler/permission_handler.dart'; |
| 10 | import 'package:provider/provider.dart'; | 11 | import 'package:provider/provider.dart'; |
| 11 | 12 | ||
| @@ -167,8 +168,10 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> { | @@ -167,8 +168,10 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> { | ||
| 167 | height: 1.5, | 168 | height: 1.5, |
| 168 | fontSize: font(16), | 169 | fontSize: font(16), |
| 169 | color: MyColours.color_000000))), | 170 | color: MyColours.color_000000))), |
| 171 | + VEmptyView(40), | ||
| 170 | _textFeildWidget(nameC, '店铺名称:', '点击输入店铺名称'), | 172 | _textFeildWidget(nameC, '店铺名称:', '点击输入店铺名称'), |
| 171 | _divider(), | 173 | _divider(), |
| 174 | + VEmptyView(20), | ||
| 172 | _addressWidget('店铺地址:', storeAddress, () { | 175 | _addressWidget('店铺地址:', storeAddress, () { |
| 173 | // | 176 | // |
| 174 | Utils.getPickPermission(context, () async { | 177 | Utils.getPickPermission(context, () async { |
| @@ -184,21 +187,54 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> { | @@ -184,21 +187,54 @@ class _CollectStoreInfoPageState extends State<CollectStoreInfoPage> { | ||
| 184 | } | 187 | } |
| 185 | }, Permission.location); | 188 | }, Permission.location); |
| 186 | }), | 189 | }), |
| 190 | + _divider(), | ||
| 191 | + VEmptyView(20), | ||
| 187 | _textFeildWidget(phoneC, '联系电话:', '点击输入您的电话号码'), | 192 | _textFeildWidget(phoneC, '联系电话:', '点击输入您的电话号码'), |
| 188 | _divider(), | 193 | _divider(), |
| 194 | + VEmptyView(20), | ||
| 189 | _textFeildWidget(personC, '联系人:', '点击输入您的姓名'), | 195 | _textFeildWidget(personC, '联系人:', '点击输入您的姓名'), |
| 190 | _divider(), | 196 | _divider(), |
| 197 | + VEmptyView(20), | ||
| 191 | _addressWidget('城市选择:', cityString, () async { | 198 | _addressWidget('城市选择:', cityString, () async { |
| 192 | Result result = await CityPickers.showCityPicker( | 199 | Result result = await CityPickers.showCityPicker( |
| 193 | - context: context, | ||
| 194 | - ); | 200 | + context: context, |
| 201 | + borderRadius: r(8), | ||
| 202 | + cancelWidget: Container( | ||
| 203 | + padding: EdgeInsets.symmetric( | ||
| 204 | + horizontal: w(20), vertical: w(20)), | ||
| 205 | + child: Text( | ||
| 206 | + '取消', | ||
| 207 | + style: TextStyle( | ||
| 208 | + color: MyColours.color_515151, | ||
| 209 | + fontSize: ScreenUtil().setSp(32)), | ||
| 210 | + ), | ||
| 211 | + ), | ||
| 212 | + confirmWidget: Container( | ||
| 213 | + padding: EdgeInsets.symmetric( | ||
| 214 | + horizontal: w(20), vertical: w(20)), | ||
| 215 | + child: Text( | ||
| 216 | + '确定', | ||
| 217 | + style: TextStyle( | ||
| 218 | + color: MyColours.color_438E93, | ||
| 219 | + fontSize: ScreenUtil().setSp(32)), | ||
| 220 | + ), | ||
| 221 | + ), | ||
| 222 | + theme: ThemeData( | ||
| 223 | + textTheme: TextTheme( | ||
| 224 | + bodyText1: TextStyle( | ||
| 225 | + fontSize: font(11), | ||
| 226 | + // fontWeight: FontWeight.w200, | ||
| 227 | + ), | ||
| 228 | + ))); | ||
| 195 | print(result); | 229 | print(result); |
| 196 | - proCode = result.provinceId; | ||
| 197 | - cityCode = result.cityId; | ||
| 198 | - disCode = result.areaId; | ||
| 199 | - cityString = | ||
| 200 | - result.provinceName + result.cityName + result.areaName; | ||
| 201 | - setState(() {}); | 230 | + if (result != null) { |
| 231 | + proCode = result.provinceId; | ||
| 232 | + cityCode = result.cityId; | ||
| 233 | + disCode = result.areaId; | ||
| 234 | + cityString = | ||
| 235 | + result.provinceName + result.cityName + result.areaName; | ||
| 236 | + setState(() {}); | ||
| 237 | + } | ||
| 202 | }), | 238 | }), |
| 203 | _divider(), | 239 | _divider(), |
| 204 | ], | 240 | ], |
-
Please register or login to post a comment