Expanded(
child: Container(
margin: EdgeInsets.fromLTRB(10, 5, 10, 5),
padding: EdgeInsets.only(left: 5),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(4)),
width: double.infinity,
child: TextField(
controller: shoCodeTextField,
toolbarOptions: ToolbarOptions(),
maxLines: 1,
decoration: InputDecoration(
fillColor: Colors.red,
hintText: "请输入门店号",
hintStyle: TextStyle(
fontSize: 12 ,
height: 1.8,
textBaseline: TextBaseline.alphabetic, //用于提示文字对齐
),
contentPadding: EdgeInsets.all(0),
border: OutlineInputBorder(
borderSide: BorderSide.none
)
),
style: TextStyle(
fontSize: 12 ,
textBaseline: TextBaseline.alphabetic, //用于提示文字对齐
),
),
),
),
child: CupertinoTextField(
controller: telephoneController,
keyboardType: TextInputType.number,
textInputAction: TextInputAction.done,
style: TextStyle(
fontSize: 12,
height: 1.2,
textBaseline: TextBaseline.alphabetic,
),
),