jjzjj

textField

全部标签

android-studio - Flutter - 如何更改 TextField 边框颜色?

我已经尝试了所有方法来尝试更改文本字段的边框颜色,但它似乎被忽略了。我试过sideBorder(甚至宽度也被忽略)、hintStyle、仅将特定主题应用于此小部件,它们似乎都被忽略了。child:newTheme(data:ThemeData(primaryColor:Colors.white,accentColor:Colors.white,hintColor:Colors.white//ThisisIgnored,inputDecorationTheme:InputDecorationTheme(border:OutlineInputBorder(borderSide:Border

android-studio - Flutter - 如何更改 TextField 边框颜色?

我已经尝试了所有方法来尝试更改文本字段的边框颜色,但它似乎被忽略了。我试过sideBorder(甚至宽度也被忽略)、hintStyle、仅将特定主题应用于此小部件,它们似乎都被忽略了。child:newTheme(data:ThemeData(primaryColor:Colors.white,accentColor:Colors.white,hintColor:Colors.white//ThisisIgnored,inputDecorationTheme:InputDecorationTheme(border:OutlineInputBorder(borderSide:Border

Flutter TextField 填充和边框颜色不会变为灰色

我正在尝试根据设计设置TextField的样式,但是当我尝试设置填充和边框颜色时,它们并没有改变:child:Container(height:30,child:Padding(padding:constEdgeInsets.only(left:8.0,right:8.0),child:TextField(onChanged:runSearch,textAlign:TextAlign.start,decoration:InputDecoration(contentPadding:EdgeInsets.symmetric(horizontal:0),prefixIcon:Icon(Ico

Flutter TextField 填充和边框颜色不会变为灰色

我正在尝试根据设计设置TextField的样式,但是当我尝试设置填充和边框颜色时,它们并没有改变:child:Container(height:30,child:Padding(padding:constEdgeInsets.only(left:8.0,right:8.0),child:TextField(onChanged:runSearch,textAlign:TextAlign.start,decoration:InputDecoration(contentPadding:EdgeInsets.symmetric(horizontal:0),prefixIcon:Icon(Ico

flutter - 从外部源向 TextField 添加文本

我在文本字段中添加了语音识别,它可以工作,但我无法设法将文本添加到文本字段中,有没有办法做到这一点。文本框看起来像这样:Widget_buildDescriptionTextField(productBloc){returnStreamBuilder(stream:productBloc.messageStream,builder:(context,snapshot){returnTextField(maxLines:3,controller:_controllerMessage,onChanged:productBloc.messageSink,decoration:InputDec

flutter - 从外部源向 TextField 添加文本

我在文本字段中添加了语音识别,它可以工作,但我无法设法将文本添加到文本字段中,有没有办法做到这一点。文本框看起来像这样:Widget_buildDescriptionTextField(productBloc){returnStreamBuilder(stream:productBloc.messageStream,builder:(context,snapshot){returnTextField(maxLines:3,controller:_controllerMessage,onChanged:productBloc.messageSink,decoration:InputDec

flutter - 如何对齐 TextFields 例如列中的文本()?

我正在尝试绘制一个对话框/弹出窗口,当用户点击谷歌地图中的标记时会显示该对话框/弹出窗口。问题是文本字段在对话框中没有对齐。您可以在下面的图片中看到它:所以,我想知道如何对齐文本,以便每个新文本都从垂直的一行开始。这是我的代码:child:Material(color:Colors.transparent,child:ScaleTransition(scale:scaleAnimation,child:Container(decoration:ShapeDecoration(color:Colors.blueGrey[900],shape:RoundedRectangleBorder(

flutter - 如何对齐 TextFields 例如列中的文本()?

我正在尝试绘制一个对话框/弹出窗口,当用户点击谷歌地图中的标记时会显示该对话框/弹出窗口。问题是文本字段在对话框中没有对齐。您可以在下面的图片中看到它:所以,我想知道如何对齐文本,以便每个新文本都从垂直的一行开始。这是我的代码:child:Material(color:Colors.transparent,child:ScaleTransition(scale:scaleAnimation,child:Container(decoration:ShapeDecoration(color:Colors.blueGrey[900],shape:RoundedRectangleBorder(

flutter - flutter如何让textfield动态显示多行?

我要实现的效果是初始文本域显示一行,当内容超过一行时,文本域显示两行。问题是文本字段的基线会向下移动,导致它被下面的小部件遮挡。我希望基线保持连续。代码:returnScaffold(appBar:AppBar(),body:Column(children:[ConstrainedBox(constraints:BoxConstraints(maxHeight:60.0),child:TextField(maxLines:null,maxLengthEnforced:false,keyboardType:TextInputType.multiline,),),Container(hei

flutter - flutter如何让textfield动态显示多行?

我要实现的效果是初始文本域显示一行,当内容超过一行时,文本域显示两行。问题是文本字段的基线会向下移动,导致它被下面的小部件遮挡。我希望基线保持连续。代码:returnScaffold(appBar:AppBar(),body:Column(children:[ConstrainedBox(constraints:BoxConstraints(maxHeight:60.0),child:TextField(maxLines:null,maxLengthEnforced:false,keyboardType:TextInputType.multiline,),),Container(hei