【问题标题】:SliverAppBar and Tab bar overlap while scrolling in NestedScrollView在 NestedScrollView 中滚动时 SliverAppBar 和 Tab 栏重叠
【发布时间】:2022-10-15 02:36:45
【问题描述】:

在 NestedScrollView 中滚动时,SliverAppBar 和 Tab bar 重叠,如下图所示:

【问题讨论】:

  • 您能否包含将重现相同问题的示例代码-sn-p?

标签: flutter dart flutter-layout


【解决方案1】:

SingleChildScrollView() 包裹 body 小部件或 tabBarView

   SingleChildScrollView(
child: theBodyWidgetWhereItOverflows()
)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-12-14
    • 2019-02-20
    • 1970-01-01
    • 2021-01-25
    • 2016-04-04
    • 1970-01-01
    • 1970-01-01
    • 2018-12-30
    相关资源
    最近更新 更多