【发布时间】:2021-04-02 08:17:46
【问题描述】:
我想在屏幕底部添加一个按钮。当我按下它时,它会输入一个新的文本部分enter image description here
【问题讨论】:
-
嗨!究竟是什么问题?您尝试了哪个代码?请更具体一点。
-
先生,我想在底部添加文本,因为我已经添加了示例图像。
标签: flutter
我想在屏幕底部添加一个按钮。当我按下它时,它会输入一个新的文本部分enter image description here
【问题讨论】:
标签: flutter
对于屏幕底部的按钮,您可以使用脚手架中的浮动操作按钮。 https://api.flutter.dev/flutter/material/FloatingActionButton-class.html
对于导航,您可以使用 MaterialPage Route Find the Link to Navigators here.
【讨论】:
您可以使用凸起的按钮或任何文本小部件,这是一个示例
InkWell( child: Text("Entry Price",
style: TextStyle( color: Colors.white,
fontSize: 14.0.sp)),
onTap: () { showCupertinoModalPopup
( context: context, builder:
(context) => Infofavor());
================================================ ==
【讨论】: