【问题标题】:How to add a button on bottom to enter a new page?如何在底部添加按钮以进入新页面?
【发布时间】:2021-04-02 08:17:46
【问题描述】:

我想在屏幕底部添加一个按钮。当我按下它时,它会输入一个新的文本部分enter image description here

【问题讨论】:

  • 嗨!究竟是什么问题?您尝试了哪个代码?请更具体一点。
  • 先生,我想在底部添加文本,因为我已经添加了示例图像。

标签: flutter


【解决方案1】:

对于屏幕底部的按钮,您可以使用脚手架中的浮动操作按钮。 https://api.flutter.dev/flutter/material/FloatingActionButton-class.html

对于导航,您可以使用 MaterialPage Route Find the Link to Navigators here.

【讨论】:

    【解决方案2】:

    您可以使用凸起的按钮或任何文本小部件,这是一个示例

        InkWell( child: Text("Entry Price",
     style: TextStyle( color: Colors.white,
     fontSize: 14.0.sp)),
     onTap: () { showCupertinoModalPopup
     ( context: context, builder:
     (context) => Infofavor());
    

    ================================================ ==

    【讨论】:

      猜你喜欢
      • 2021-07-18
      • 2021-11-11
      • 2011-04-03
      • 2015-05-11
      • 1970-01-01
      • 2018-10-31
      • 2013-09-12
      • 2013-11-18
      • 2016-12-22
      相关资源
      最近更新 更多