From 8359e7ba61da95393c2d02a78dd640421966972e Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Mon, 1 Nov 2021 19:57:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20edit=20tile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/list_tile/as_edit_tile.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/list_tile/as_edit_tile.dart b/lib/list_tile/as_edit_tile.dart index 3330367..7450ffd 100644 --- a/lib/list_tile/as_edit_tile.dart +++ b/lib/list_tile/as_edit_tile.dart @@ -1,5 +1,6 @@ import 'package:ansu_ui/extension/num_extension.dart'; import 'package:ansu_ui/styles/as_colors.dart'; +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -33,7 +34,7 @@ class ASEditTile extends StatelessWidget { this.suffix, this.obscureText, this.obscuringCharacter, - this.enableEdit=true, + this.enableEdit = true, }) : super(key: key); @override @@ -74,10 +75,11 @@ class ASEditTile extends StatelessWidget { fontWeight: FontWeight.bold, ), decoration: InputDecoration( + suffix: 10.wb, border: InputBorder.none, isDense: true, contentPadding: EdgeInsets.zero, - hintText: hintText, + hintText: '$hintText', hintStyle: hintTextStyle ?? TextStyle( color: kTextSubColor, @@ -86,7 +88,6 @@ class ASEditTile extends StatelessWidget { ), ), ), - 10.wb, Offstage( offstage: suffix == null, child: suffix,