作者:碧落无双2502879687 | 来源:互联网 | 2022-12-07 09:37
考虑这个图像.你可以看到它有一个appbar,appbar有Tabbed按钮.我试图为appbar设置动画,使其隐藏在scrollup上,只留下Tab Buttons显示并滚动显示appbar apears.请帮帮我.对不起英语不好而不是美国人我也不是英语
1> Marcin Szałe..:
如果我理解正确,下面的代码应该在TabBar保持可见时使应用栏隐藏在滚动状态:
new Scaffold(
body: new NestedScrollView(
controller: _scrollViewController,
headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
return [
new SliverAppBar(
title: new Text(widget.title),
pinned: true,
floating: true,
forceElevated: innerBoxIsScrolled,
bottom: new TabBar(
tabs: [
new Tab(text: "STATISTICS"),
new Tab(text: "HISTORY"),
],
controller: _tabController,
),
),
];
},
body: new TabBarView(
children: [
new StatisticsPage(),
new HistoryPage(),
],
controller: _tabController,
),
),
);
来自这篇文章的例子.
我先使用“ adb shell screenrecord”,然后再使用“ adb pull”,然后使用https://ezgif.com/video-to-gif在线将mp4转换为gif