行和列的颤振布局

昌都·拉奥托莱

我对颤振是陌生的,我想将颤振布局创建为图像,请帮助。提前致谢。

这样的布局

穆罕默德·阿瑟夫

试试这个:

Row(
          mainAxisSize: MainAxisSize.min,
          children: [
            Container(
              width: 150,
              child: Column(
                mainAxisSize: MainAxisSize.min,
                children: [
                  SizedBox(height: 40),
                  Text("UserName"),
                  SizedBox(height: 20),
                  Text("Password"),
                  RaisedButton(
                    color: Colors.grey,
                    onPressed: () {},
                    child: Text("OK"),
                  ),
                ],
              ),
            ),
            Column(
              mainAxisSize: MainAxisSize.min,
              children: [
                Container(
                  width: 200,
                  child: TextFormField(),
                ),
                Container(
                  width: 200,
                  child: TextFormField(),
                ),
                RaisedButton(
                  color: Colors.grey,
                  onPressed: () {},
                  child: Text("Cancel"),
                ),
              ],
            ),
          ],
        ),

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章