我需要帮助在 Flutter 中对齐两个并排的 TextFormField,而不是一个在另一个上面
我尝试过使用填充,但它不起作用。
new TextFormField(
autovalidate: true,
keyboardType: TextInputType.numberWithOptions(),
controller: today,
//Reminder to write an if statement calling the controller
//The validator receives the text that the user has entered.
decoration: new InputDecoration(
fillColor: Colors.white,
border: new OutlineInputBorder(
borderRadius: new BorderRadius.circular(5.0),
borderSide: new BorderSide()
),
labelText: 'Today', //Label is used so that the text can either float or remain in place
labelStyle: TextStyle(
fontFamily: 'Lato',
fontWeight: FontWeight.normal,
fontSize: 14.0,
color: Colors.grey,
),
),
inputFormatters: [WhitelistingTextInputFormatter.digitsOnly],
),
SizedBox(height: 15.0), …Run Code Online (Sandbox Code Playgroud) 如何在单击按钮以显示在下一页上时在颤动中生成随机的六 (6) 位数字?
Container(
width: MediaQuery.of(context).size.width * 3.5/4,
height: MediaQuery.of(context).size.height * 0.35/4,
child: RaisedButton(
color: Colors.indigoAccent,
textColor: cc.WHITE,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),
),
onPressed: () {
push(context, Invite());
},
child: new Text(
'GENERATE CODE',
style: new TextStyle(
fontSize: 14.0,
fontWeight: FontWeight.w700,
color: Colors.white,
),
),
//text: 'GENERATE CODE',
),
),
Run Code Online (Sandbox Code Playgroud)