Commit 35239094e7eda4d95057a9bd751c594ada44dd97

Authored by wdn127929
1 parent dd796622

首图形象展示UI ok

@@ -224,8 +224,10 @@ class _FirstImagePageState extends State<FirstImagePage> { @@ -224,8 +224,10 @@ class _FirstImagePageState extends State<FirstImagePage> {
224 height: w(39), 224 height: w(39),
225 child: TextField( 225 child: TextField(
226 maxLines: 1, 226 maxLines: 1,
227 - controller: titleC,  
228 - focusNode: titleNode, 227 + controller: sloganC,
  228 + focusNode: sloganNode,
  229 + cursorColor: MyColours.color_F8F9FD,
  230 +
229 // autofocus: true, 231 // autofocus: true,
230 232
231 style: TextStyle( 233 style: TextStyle(
@@ -250,7 +252,7 @@ class _FirstImagePageState extends State<FirstImagePage> { @@ -250,7 +252,7 @@ class _FirstImagePageState extends State<FirstImagePage> {
250 OutlineInputBorder(borderSide: BorderSide.none), 252 OutlineInputBorder(borderSide: BorderSide.none),
251 contentPadding: EdgeInsets.zero, 253 contentPadding: EdgeInsets.zero,
252 ), 254 ),
253 - keyboardType: TextInputType.number, 255 + keyboardType: TextInputType.text,
254 textInputAction: TextInputAction.done, 256 textInputAction: TextInputAction.done,
255 257
256 onChanged: (value) { 258 onChanged: (value) {
@@ -278,6 +280,7 @@ class _FirstImagePageState extends State<FirstImagePage> { @@ -278,6 +280,7 @@ class _FirstImagePageState extends State<FirstImagePage> {
278 controller: titleC, 280 controller: titleC,
279 focusNode: titleNode, 281 focusNode: titleNode,
280 // autofocus: true, 282 // autofocus: true,
  283 + cursorColor: MyColours.color_F8F9FD,
281 284
282 style: TextStyle( 285 style: TextStyle(
283 fontSize: font(20), 286 fontSize: font(20),
@@ -301,7 +304,7 @@ class _FirstImagePageState extends State<FirstImagePage> { @@ -301,7 +304,7 @@ class _FirstImagePageState extends State<FirstImagePage> {
301 OutlineInputBorder(borderSide: BorderSide.none), 304 OutlineInputBorder(borderSide: BorderSide.none),
302 contentPadding: EdgeInsets.zero, 305 contentPadding: EdgeInsets.zero,
303 ), 306 ),
304 - keyboardType: TextInputType.number, 307 + keyboardType: TextInputType.text,
305 textInputAction: TextInputAction.done, 308 textInputAction: TextInputAction.done,
306 309
307 onChanged: (value) { 310 onChanged: (value) {
@@ -324,33 +327,56 @@ class _FirstImagePageState extends State<FirstImagePage> { @@ -324,33 +327,56 @@ class _FirstImagePageState extends State<FirstImagePage> {
324 ), 327 ),
325 InkWell( 328 InkWell(
326 onTap: () {}, 329 onTap: () {},
327 - child: Container(  
328 - color: MyColours.color_d9d9d9,  
329 - width: double.infinity,  
330 - height: w(210),  
331 - child: Column(  
332 - children: [  
333 - VEmptyView(80),  
334 - Image.asset(  
335 - Utils.getImgPath('add_img'),  
336 - width: w(63), 330 + child: true
  331 + ? InkWell(
  332 + onTap: () {
  333 + print('object');
  334 + },
  335 + child: Stack(
  336 + alignment: Alignment.bottomCenter,
  337 + children: [
  338 + Image.network(
  339 + 'https://www.ssfiction.com/wp-content/uploads/2020/08/20200805_5f2b1669e9a24.jpg',
  340 + fit: BoxFit.cover,
  341 + ),
  342 + Container(
  343 + height: w(25),
  344 + alignment: Alignment.center,
  345 + child: Text(
  346 + '点击图片可以更换',
  347 + style: TextStyle(
  348 + color: MyColours.color_F8F9FD,
  349 + fontSize: font(14),
  350 + fontWeight: FontWeight.bold),
  351 + )),
  352 + ]))
  353 + : Container(
  354 + color: MyColours.color_d9d9d9,
  355 + width: double.infinity,
  356 + height: w(210),
  357 + child: Column(
  358 + children: [
  359 + VEmptyView(80),
  360 + Image.asset(
  361 + Utils.getImgPath('add_img'),
  362 + width: w(63),
  363 + ),
  364 + VEmptyView(28),
  365 + Container(
  366 + width: w(139),
  367 + height: w(60),
  368 + child: Text(
  369 + '点击上传照片\n为了更好的效果\n建议上传16:9照片',
  370 + textAlign: TextAlign.center,
  371 + style: TextStyle(
  372 + height: 1.4,
  373 + color: MyColours.color_ffffff,
  374 + fontSize: font(14),
  375 + fontWeight: FontWeight.bold),
  376 + ))
  377 + ],
  378 + ),
337 ), 379 ),
338 - VEmptyView(28),  
339 - Container(  
340 - width: w(139),  
341 - height: w(60),  
342 - child: Text(  
343 - '点击上传照片\n为了更好的效果\n建议上传16:9照片',  
344 - textAlign: TextAlign.center,  
345 - style: TextStyle(  
346 - height: 1.4,  
347 - color: MyColours.color_ffffff,  
348 - fontSize: font(14),  
349 - fontWeight: FontWeight.bold),  
350 - ))  
351 - ],  
352 - ),  
353 - ),  
354 ) 380 )
355 ], 381 ],
356 ), 382 ),