|
|
|
import 'dart:io';
|
|
|
|
import 'dart:ui';
|
|
|
|
|
|
|
|
import 'package:cached_network_image/cached_network_image.dart';
|
|
|
|
import 'package:dio/dio.dart';
|
|
...
|
...
|
@@ -21,8 +22,10 @@ import 'package:one_key/utils/event_bus.dart'; |
|
|
|
import 'package:one_key/utils/upload_image_util.dart';
|
|
|
|
import 'package:one_key/utils/utils.dart';
|
|
|
|
import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
import 'package:one_key/widgets/max_word_textinput_formater.dart';
|
|
|
|
import 'package:one_key/widgets/round_button.dart';
|
|
|
|
import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
import 'package:one_key/widgets/text_input_field_widget.dart';
|
|
|
|
import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
import 'package:image_picker/image_picker.dart';
|
|
|
|
import 'package:permission_handler/permission_handler.dart';
|
|
...
|
...
|
@@ -47,6 +50,8 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { |
|
|
|
FocusNode _timeFocusNode = FocusNode();
|
|
|
|
FocusNode _addressFocusNode = FocusNode();
|
|
|
|
FocusNode _introductionFocusNode = FocusNode();
|
|
|
|
TextEditingController _phoneController2 = TextEditingController();
|
|
|
|
FocusNode _phoneFocusNode2 = FocusNode();
|
|
|
|
|
|
|
|
Map<String, dynamic> mapAddress;
|
|
|
|
|
|
...
|
...
|
@@ -54,6 +59,11 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { |
|
|
|
UploadImageProvider _uploadImageProvider;
|
|
|
|
StoreBaseIndoProvider _baseIndoProvider;
|
|
|
|
|
|
|
|
int _countName = 0;
|
|
|
|
final int maxWordLengthName = 15;
|
|
|
|
|
|
|
|
int _countAddress = 0;
|
|
|
|
final int maxWordLengthAddress = 30;
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
...
|
...
|
@@ -62,11 +72,12 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { |
|
|
|
'lat': '',
|
|
|
|
'lng': '',
|
|
|
|
};
|
|
|
|
Utils.changeStatusColor(color: MyColours.color_F8F9FD);
|
|
|
|
_scrollController = ScrollController();
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
_uploadImageProvider.mentou.process = 0.01;
|
|
|
|
_uploadImageProvider.mentou.qiniuUrl = '';
|
|
|
|
_uploadImageProvider.imgSizeMenTou = 64;
|
|
|
|
|
|
|
|
// _uploadImageProvider.mentou.file = null;
|
|
|
|
_getQiniuInfo();
|
|
|
|
_getStoreBaseinfo();
|
|
...
|
...
|
@@ -85,6 +96,8 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { |
|
|
|
_introductionController.text = itemModel.data.sellerdesc;
|
|
|
|
_uploadImageProvider.mentou.qiniuUrl = itemModel.data.sellerImage;
|
|
|
|
// _uploadImageProvider.notifyListeners();
|
|
|
|
_countName = _nameController.text.trim().length;
|
|
|
|
_countAddress = _addressController.text.trim().length;
|
|
|
|
mapAddress = {
|
|
|
|
"address": itemModel.data.mapAddress,
|
|
|
|
'lat': itemModel.data.lat,
|
|
...
|
...
|
@@ -271,7 +284,6 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { |
|
|
|
}
|
|
|
|
});
|
|
|
|
if (pickedFile != null) {
|
|
|
|
_uploadImageProvider.imgSizeMenTou = 64;
|
|
|
|
_uploadImageProvider.mentou.qiniuUrl = null;
|
|
|
|
_uploadImageProvider.mentou.file = File(pickedFile.path);
|
|
|
|
_uploadImageProvider.mentou.path = pickedFile.path;
|
|
...
|
...
|
@@ -439,6 +451,33 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { |
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
Widget _buildCompute(int count, int max) {
|
|
|
|
return RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_BFC4D4),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: count.toString(),
|
|
|
|
style: TextStyle(color: MyColours.color_BFC4D4)),
|
|
|
|
TextSpan(text: "/${max.toString()}"),
|
|
|
|
]));
|
|
|
|
}
|
|
|
|
|
|
|
|
void chageCount(int count) {
|
|
|
|
setState(() {
|
|
|
|
_countName = count;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void chageCountAddress(int count) {
|
|
|
|
setState(() {
|
|
|
|
_countAddress = count;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
_uploadImageProvider =
|
|
...
|
...
|
@@ -446,9 +485,10 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { |
|
|
|
_baseIndoProvider =
|
|
|
|
Provider.of<StoreBaseIndoProvider>(context, listen: true);
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: MyColours.color_fefefe,
|
|
|
|
backgroundColor: MyColours.color_F8F9FD,
|
|
|
|
appBar: SystemAppBar(
|
|
|
|
'店铺信息',
|
|
|
|
bgColor: MyColours.color_F8F9FD,
|
|
|
|
onTap: () {
|
|
|
|
EventBus().emit('changeStatusColor');
|
|
|
|
Navigator.of(context).pop();
|
|
...
|
...
|
@@ -463,123 +503,1038 @@ class _StoreBaseInfoPageState extends State<StoreBaseInfoPage> { |
|
|
|
onTap: () {
|
|
|
|
FocusScope.of(context).requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
},
|
|
|
|
child: Column(children: [
|
|
|
|
Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _scrollController,
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
child: Container(
|
|
|
|
color: MyColours.color_F8F9FD,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(24)),
|
|
|
|
child: Column(children: [
|
|
|
|
Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _scrollController,
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
VEmptyView(60),
|
|
|
|
Text(
|
|
|
|
'门头照片',
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
child: _textfield('店铺名称', '请填写店铺名称',
|
|
|
|
_nameController, _nameFocusNode)),
|
|
|
|
VEmptyView(10),
|
|
|
|
_imageWidget('门头照片', _uploadImageProvider.mentou,
|
|
|
|
_uploadImageProvider.imgSizeMenTou, 64),
|
|
|
|
VEmptyView(30),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(108 * 2),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
VEmptyView(34),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
double process;
|
|
|
|
String qiniuUrl;
|
|
|
|
List<String> tempList = [];
|
|
|
|
|
|
|
|
process =
|
|
|
|
_uploadImageProvider.mentou.process;
|
|
|
|
qiniuUrl =
|
|
|
|
_uploadImageProvider.mentou.qiniuUrl;
|
|
|
|
|
|
|
|
if (qiniuUrl != null && qiniuUrl != '') {
|
|
|
|
tempList.add(qiniuUrl);
|
|
|
|
|
|
|
|
///没有上传完成的不可以点击
|
|
|
|
_showPhotoView(context, 0, tempList);
|
|
|
|
} else {
|
|
|
|
Utils.getPickPermission(context, () {
|
|
|
|
_getFromPictureOrCamera(
|
|
|
|
'门头照片',
|
|
|
|
_uploadImageProvider.mentou,
|
|
|
|
ImageSource.gallery);
|
|
|
|
},
|
|
|
|
Platform.isAndroid
|
|
|
|
? Permission.storage
|
|
|
|
: Permission.photos);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Center(
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil().setWidth(76 * 2),
|
|
|
|
height: ScreenUtil().setWidth(76 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
boxShadow: [
|
|
|
|
// BoxShadow(
|
|
|
|
// color: Color.fromRGBO(0, 0, 0, 0.4),
|
|
|
|
// offset: Offset(0, ScreenUtil().setWidth(8)),
|
|
|
|
// spreadRadius: ScreenUtil().setWidth(2),
|
|
|
|
// blurRadius: ScreenUtil().setWidth(34))
|
|
|
|
BoxShadow(
|
|
|
|
color: Color.fromRGBO(
|
|
|
|
0, 0, 0, 0.25),
|
|
|
|
offset: Offset(0,
|
|
|
|
ScreenUtil().setWidth(6)),
|
|
|
|
blurRadius:
|
|
|
|
ScreenUtil().setWidth(18),
|
|
|
|
spreadRadius:
|
|
|
|
ScreenUtil().setWidth(2))
|
|
|
|
],
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(44)),
|
|
|
|
),
|
|
|
|
child: Stack(
|
|
|
|
clipBehavior: Clip.none,
|
|
|
|
children: [
|
|
|
|
ClipRRect(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(44)),
|
|
|
|
child: _uploadImageProvider
|
|
|
|
.mentou.file ==
|
|
|
|
null
|
|
|
|
? _uploadImageProvider
|
|
|
|
.mentou
|
|
|
|
.qiniuUrl !=
|
|
|
|
null &&
|
|
|
|
_uploadImageProvider
|
|
|
|
.mentou
|
|
|
|
.qiniuUrl !=
|
|
|
|
''
|
|
|
|
? Image.network(
|
|
|
|
_uploadImageProvider
|
|
|
|
.mentou
|
|
|
|
.qiniuUrl,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
76 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
76 * 2),
|
|
|
|
)
|
|
|
|
: Container(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
76 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
76 * 2),
|
|
|
|
padding: EdgeInsets
|
|
|
|
.all(ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
32)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
44)),
|
|
|
|
color: MyColours
|
|
|
|
.color_DBDBDB),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'store_no_image'),
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
44 * 2),
|
|
|
|
height:
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
44 *
|
|
|
|
2),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: Image.file(
|
|
|
|
_uploadImageProvider
|
|
|
|
.mentou.file,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(76 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(76 * 2),
|
|
|
|
)),
|
|
|
|
(_uploadImageProvider.mentou.file !=
|
|
|
|
null) &&
|
|
|
|
_uploadImageProvider
|
|
|
|
.mentou.process !=
|
|
|
|
1 &&
|
|
|
|
_uploadImageProvider
|
|
|
|
.mentou.process !=
|
|
|
|
0.01
|
|
|
|
? Container(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(76 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(76 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
44)),
|
|
|
|
color: Color.fromRGBO(
|
|
|
|
0, 0, 0, 0.6)),
|
|
|
|
child: Center(
|
|
|
|
child: Text('上传中',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_999999)),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: Container(),
|
|
|
|
Positioned(
|
|
|
|
bottom:
|
|
|
|
ScreenUtil().setWidth(-6),
|
|
|
|
right:
|
|
|
|
ScreenUtil().setWidth(-6),
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
Utils.getPickPermission(
|
|
|
|
context, () {
|
|
|
|
_getFromPictureOrCamera(
|
|
|
|
'门头照片',
|
|
|
|
_uploadImageProvider
|
|
|
|
.mentou,
|
|
|
|
ImageSource.gallery);
|
|
|
|
},
|
|
|
|
Platform.isAndroid
|
|
|
|
? Permission.storage
|
|
|
|
: Permission
|
|
|
|
.photos);
|
|
|
|
},
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'store_upload'),
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(28 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(28 * 2),
|
|
|
|
),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: _textfield('店铺电话', '请填写店铺电话',
|
|
|
|
_phoneController, _phoneFocusNode)),
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(108 * 2),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
VEmptyView(76),
|
|
|
|
RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: '店铺名称',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151)),
|
|
|
|
TextSpan(
|
|
|
|
text: '*',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_E34D59)),
|
|
|
|
])),
|
|
|
|
VEmptyView(24),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(24)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(26))),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: TextInputFieldWidget(
|
|
|
|
textInputFormatters: [
|
|
|
|
// FilteringTextInputFormatter.allow(
|
|
|
|
// RegExp(r"[a-z\s_-]+")),
|
|
|
|
MaxWordTextInputFormater(
|
|
|
|
maxWords: 15,
|
|
|
|
currentLength: chageCount)
|
|
|
|
],
|
|
|
|
hasFocusColor: MyColours.color_515151,
|
|
|
|
hitColor: MyColours.color_BFC4D4,
|
|
|
|
hintText: "请输入店铺名称",
|
|
|
|
maxLines: 1,
|
|
|
|
lineHeight: 1,
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
textEditingController:
|
|
|
|
_nameController,
|
|
|
|
focusNode: _nameFocusNode,
|
|
|
|
)),
|
|
|
|
_buildCompute(
|
|
|
|
_countName, maxWordLengthName),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(106),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(32)),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: '店铺电话',
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_515151)),
|
|
|
|
TextSpan(
|
|
|
|
text: '*',
|
|
|
|
style: TextStyle(
|
|
|
|
color:
|
|
|
|
MyColours.color_E34D59)),
|
|
|
|
])),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
right: ScreenUtil().setWidth(26)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('stoore_add'),
|
|
|
|
width: ScreenUtil().setWidth(44)))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
child: _textfield(
|
|
|
|
'营业时间',
|
|
|
|
'请填写营业时间,如09:00-23:00',
|
|
|
|
_timeController,
|
|
|
|
_timeFocusNode)),
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(108 * 2),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
vertical: ScreenUtil().setWidth(40),
|
|
|
|
VEmptyView(44),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(26)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Text('电话1:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_999999)),
|
|
|
|
HEmptyView(32),
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setWidth(60),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal:
|
|
|
|
ScreenUtil().setWidth(24)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(26))),
|
|
|
|
child: TextField(
|
|
|
|
controller: _phoneController,
|
|
|
|
maxLines: 1,
|
|
|
|
// inputFormatters: [
|
|
|
|
// LengthLimitingTextInputFormatter(
|
|
|
|
// 15),
|
|
|
|
// // WhitelistingTextInputFormatter.digitsOnly
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// //光标颜色
|
|
|
|
// cursorColor:
|
|
|
|
// widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
//输入文本的样式
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
focusNode: _phoneFocusNode,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
hintText: '请输入区号+固定电话或11位手机号',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_BFC4D4,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(24),
|
|
|
|
),
|
|
|
|
enabledBorder:
|
|
|
|
new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
focusedBorder:
|
|
|
|
new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onChanged: (value) {
|
|
|
|
// if (editingController == _nameController) {
|
|
|
|
// _nameController.text = value;
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
},
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
HEmptyView(20),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('store_jian'),
|
|
|
|
width: ScreenUtil().setWidth(44))
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(32),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(26)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Text('电话2:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_999999)),
|
|
|
|
HEmptyView(32),
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setWidth(60),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal:
|
|
|
|
ScreenUtil().setWidth(24)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(26))),
|
|
|
|
child: TextField(
|
|
|
|
controller: _phoneController2,
|
|
|
|
maxLines: 1,
|
|
|
|
// inputFormatters: [
|
|
|
|
// LengthLimitingTextInputFormatter(
|
|
|
|
// 15),
|
|
|
|
// // WhitelistingTextInputFormatter.digitsOnly
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// //光标颜色
|
|
|
|
// cursorColor:
|
|
|
|
// widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
//输入文本的样式
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
focusNode: _phoneFocusNode2,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
hintText: '请输入区号+固定电话或11位手机号',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_BFC4D4,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(24),
|
|
|
|
),
|
|
|
|
enabledBorder:
|
|
|
|
new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
focusedBorder:
|
|
|
|
new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onChanged: (value) {
|
|
|
|
// if (editingController == _nameController) {
|
|
|
|
// _nameController.text = value;
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
},
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
HEmptyView(20),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('store_jian'),
|
|
|
|
width: ScreenUtil().setWidth(44))
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(112),
|
|
|
|
RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: '营业时间',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151)),
|
|
|
|
TextSpan(
|
|
|
|
text: '*',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_E34D59)),
|
|
|
|
])),
|
|
|
|
VEmptyView(44),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(24)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(26))),
|
|
|
|
child: TextField(
|
|
|
|
controller: _timeController,
|
|
|
|
maxLines: 1,
|
|
|
|
// inputFormatters: [
|
|
|
|
// LengthLimitingTextInputFormatter(
|
|
|
|
// 15),
|
|
|
|
// // WhitelistingTextInputFormatter.digitsOnly
|
|
|
|
// ],
|
|
|
|
|
|
|
|
// //光标颜色
|
|
|
|
// cursorColor:
|
|
|
|
// widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
//输入文本的样式
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
focusNode: _timeFocusNode,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
hintText: '如:9:00-21:00',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_BFC4D4,
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
),
|
|
|
|
enabledBorder: new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
focusedBorder: new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onChanged: (value) {
|
|
|
|
// if (editingController == _nameController) {
|
|
|
|
// _nameController.text = value;
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context).requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
},
|
|
|
|
keyboardType: TextInputType.text,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: _select('地图地址', mapAddress['address'])),
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(108 * 2),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
VEmptyView(104),
|
|
|
|
RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: '店铺地址',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151)),
|
|
|
|
TextSpan(
|
|
|
|
text: '*',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_E34D59)),
|
|
|
|
])),
|
|
|
|
VEmptyView(44),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(24),
|
|
|
|
),
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setWidth(48 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
border: Border.all(
|
|
|
|
width: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_438E93)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'选择地图定位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
HEmptyView(30),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('store_address'),
|
|
|
|
width: ScreenUtil().setWidth(44)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
VEmptyView(40),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(24),
|
|
|
|
),
|
|
|
|
child: Row(children: [
|
|
|
|
Text('详细地址:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_999999)),
|
|
|
|
HEmptyView(32),
|
|
|
|
Expanded(
|
|
|
|
child: TextInputFieldWidget(
|
|
|
|
textInputFormatters: [
|
|
|
|
// FilteringTextInputFormatter.allow(
|
|
|
|
// RegExp(r"[a-z\s_-]+")),
|
|
|
|
MaxWordTextInputFormater(
|
|
|
|
maxWords: 15,
|
|
|
|
currentLength: chageCountAddress)
|
|
|
|
],
|
|
|
|
hasFocusColor: MyColours.color_515151,
|
|
|
|
hitColor: MyColours.color_BFC4D4,
|
|
|
|
hintText: "输入店铺详细地址",
|
|
|
|
maxLines: 1,
|
|
|
|
lineHeight: 1,
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
textEditingController:
|
|
|
|
_addressController,
|
|
|
|
focusNode: _addressFocusNode,
|
|
|
|
)),
|
|
|
|
_buildCompute(
|
|
|
|
_countAddress, maxWordLengthAddress)
|
|
|
|
])),
|
|
|
|
VEmptyView(120),
|
|
|
|
Text('可预订时段',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151)),
|
|
|
|
VEmptyView(34),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(24),
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text('早市:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color: MyColours
|
|
|
|
.color_999999)),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'store_swich_on'),
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(38 * 2)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(34),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(34 * 2),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(10)),
|
|
|
|
border: Border.all(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(2),
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(24)),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: '选择开始时间',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
TextSpan(
|
|
|
|
text: '*',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_E34D59)),
|
|
|
|
])),
|
|
|
|
)),
|
|
|
|
HEmptyView(52),
|
|
|
|
Text('至',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(24),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
HEmptyView(52),
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(34 * 2),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(10)),
|
|
|
|
border: Border.all(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(2),
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(24)),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: '选择结束时间',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
TextSpan(
|
|
|
|
text: '*',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_E34D59)),
|
|
|
|
])),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(32),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text('午市:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color: MyColours
|
|
|
|
.color_999999)),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'store_swich_on'),
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(38 * 2)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(34),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(34 * 2),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(10)),
|
|
|
|
border: Border.all(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(2),
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(24)),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: '选择开始时间',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
TextSpan(
|
|
|
|
text: '*',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_E34D59)),
|
|
|
|
])),
|
|
|
|
)),
|
|
|
|
HEmptyView(52),
|
|
|
|
Text('至',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(24),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
HEmptyView(52),
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(34 * 2),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(10)),
|
|
|
|
border: Border.all(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(2),
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(24)),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: '选择结束时间',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
TextSpan(
|
|
|
|
text: '*',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_E34D59)),
|
|
|
|
])),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(32),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text('晚市:',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color: MyColours
|
|
|
|
.color_999999)),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'store_swich_on'),
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(38 * 2)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(34),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(34 * 2),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(10)),
|
|
|
|
border: Border.all(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(2),
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(24)),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: '选择开始时间',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
TextSpan(
|
|
|
|
text: '*',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_E34D59)),
|
|
|
|
])),
|
|
|
|
)),
|
|
|
|
HEmptyView(52),
|
|
|
|
Text('至',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(24),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151)),
|
|
|
|
HEmptyView(52),
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(34 * 2),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(10)),
|
|
|
|
border: Border.all(
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(2),
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
child: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(24)),
|
|
|
|
children: [
|
|
|
|
// const TextSpan(text: '('),
|
|
|
|
TextSpan(
|
|
|
|
text: '选择结束时间',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_438E93)),
|
|
|
|
TextSpan(
|
|
|
|
text: '*',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_E34D59)),
|
|
|
|
])),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(96),
|
|
|
|
Text('接单时间',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151)),
|
|
|
|
VEmptyView(32),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
),
|
|
|
|
child: _textfield('店铺名称', '请填写店铺名称',
|
|
|
|
_nameController, _nameFocusNode)),
|
|
|
|
VEmptyView(10),
|
|
|
|
_imageWidget('门头照片',
|
|
|
|
_uploadImageProvider.mentou, 76, 64),
|
|
|
|
VEmptyView(30),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(108 * 2),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
),
|
|
|
|
child: _textfield('详细地址', '请填写店铺详细地址',
|
|
|
|
_addressController, _addressFocusNode)),
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(108 * 2),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
VEmptyView(10),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
),
|
|
|
|
child: _textfield('店铺电话', '请填写店铺电话',
|
|
|
|
_phoneController, _phoneFocusNode)),
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(108 * 2),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
),
|
|
|
|
child: _textfield(
|
|
|
|
'店铺简介',
|
|
|
|
'请填写店铺简介',
|
|
|
|
_introductionController,
|
|
|
|
_introductionFocusNode)),
|
|
|
|
VEmptyView(10),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.fromLTRB(ScreenUtil().setWidth(40), 0,
|
|
|
|
ScreenUtil().setWidth(40), ScreenUtil().setWidth(40)),
|
|
|
|
child: RoundButton(
|
|
|
|
onPressed: () {
|
|
|
|
//接口
|
|
|
|
_setSellerInfoById();
|
|
|
|
},
|
|
|
|
text: '保存',
|
|
|
|
fontSize: 34,
|
|
|
|
isBold: false,
|
|
|
|
height: ScreenUtil().setWidth(80),
|
|
|
|
width: double.infinity,
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
))
|
|
|
|
]))));
|
|
|
|
VEmptyView(10),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
),
|
|
|
|
child: _textfield(
|
|
|
|
'营业时间',
|
|
|
|
'请填写营业时间,如09:00-23:00',
|
|
|
|
_timeController,
|
|
|
|
_timeFocusNode)),
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(108 * 2),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
vertical: ScreenUtil().setWidth(40),
|
|
|
|
),
|
|
|
|
child:
|
|
|
|
_select('地图地址', mapAddress['address'])),
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(108 * 2),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
),
|
|
|
|
child: _textfield('详细地址', '请填写店铺详细地址',
|
|
|
|
_addressController, _addressFocusNode)),
|
|
|
|
VEmptyView(10),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_efefef,
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(108 * 2),
|
|
|
|
right: ScreenUtil().setWidth(40)),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
),
|
|
|
|
child: _textfield(
|
|
|
|
'店铺简介',
|
|
|
|
'请填写店铺简介',
|
|
|
|
_introductionController,
|
|
|
|
_introductionFocusNode)),
|
|
|
|
VEmptyView(10),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
VEmptyView(20),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.fromLTRB(
|
|
|
|
ScreenUtil().setWidth(40),
|
|
|
|
0,
|
|
|
|
ScreenUtil().setWidth(40),
|
|
|
|
ScreenUtil().setWidth(40)),
|
|
|
|
child: RoundButton(
|
|
|
|
onPressed: () {
|
|
|
|
//接口
|
|
|
|
_setSellerInfoById();
|
|
|
|
},
|
|
|
|
text: '保存',
|
|
|
|
fontSize: 34,
|
|
|
|
isBold: false,
|
|
|
|
height: ScreenUtil().setWidth(80),
|
|
|
|
width: double.infinity,
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
))
|
|
|
|
])))));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|