【问题标题】:Flutter hide navigation bar through check listFlutter 通过检查列表隐藏导航栏
【发布时间】:2022-09-23 18:41:04
【问题描述】:

我真的很陌生,但是否可以通过复选框以编程方式隐藏(appbar)导航栏?

  • 分享你的代码 sn-p

标签: flutter dart flutter-layout flutter-test dart-pub


【解决方案1】:

使用 bool 变量说 showAppBar 并像这样使用

Scaffold(
      appBar:showAppBar? AppBar():null,
)

【讨论】:

    猜你喜欢
    • 2019-07-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多