flutter - 如何在 Flutter 中制作 Facebook 邮箱?
问题描述
我想在 Flutter 中制作一个这样的 Facebook 邮箱。按下时,它将转到另一个页面。我怎样才能做到?
解决方案
用边框更新
GestureDetector(
onTap: () {
print("Nav to page");
},
child: Container(
height: 50,
width: 300,
alignment: Alignment.centerLeft,
padding: EdgeInsets.only(left: 12),
decoration: BoxDecoration(
color: Colors.black,
borderRadius: BorderRadius.circular(34),
border: Border.all(
color: Colors.grey,
width: 1.5,
),
),
child: Text(
"what's on your mind ?",
style: TextStyle(
color: Colors.white,
),
),
),
),
推荐阅读
- javascript - javaScript:对象的类和使用函数之间的区别?
- html - 在响应模式下图像不完整
- android - 拍摄一些照片后,Android camerax 停止工作
- html - Flex 页眉/内容/页脚在 IE 中导致不需要的滚动条,但在其他浏览器中不会
- python - Python,ValueError:没有足够的值来解包(预期 2,得到 1)
- java - 如何让 Miglayout 单元格垂直向下跨越所有行
- download - 将文本文件从网站直接下载到 Azure Data Lake Storage Gen1
- r - 如何在 R 的 GET 请求中包含 JSON 查询字符串?
- php - Laravel 数据未发送到数据库
- javascript - Javascript Foreach 循环遍历多个选择器元素