简体   繁体   English

有什么办法可以在 flutter 中实现下拉应用栏?

[英]Is there any way I can implement pull down appbar in flutter?

Can anyone suggest to me how can I build a pull-down appbar.谁能向我建议如何构建下拉应用栏。 I searched the whole net but can't find any idea regarding this.我搜索了整个网络,但找不到任何关于此的想法。 It would be great if anyone could guide or suggest to me to build the appbar.如果有人可以指导或建议我构建应用程序栏,那就太好了。

Edit:- Many developers are saying to use SliverAppBar.编辑:-许多开发人员都说要使用 SliverAppBar。 SliverAppBar basically collapses the app bar when we scroll up the listview or any other widget, whereas I want an app bar that pulls down ie when we tap the app bar and scroll it down only the app bar grows on top of the body.当我们向上滚动列表视图或任何其他小部件时,SliverAppBar 基本上会折叠应用程序栏,而我想要一个下拉的应用程序栏,即当我们点击应用程序栏并向下滚动时,只有应用程序栏会在主体顶部生长。 So basically when we navigate to the home screen the app bar should look like the second referred image ie it must be closed.所以基本上当我们导航到主屏幕时,应用栏应该看起来像第二个引用的图像,即它必须关闭。 But we can pull down that appbar to view the hidden contents of the appbar.但是我们可以下拉那个appbar,查看appbar隐藏的内容。 I am attaching an image for reference.我附上一张图片以供参考。 在此处输入图像描述

I Think what you mean what pull down App is an Appbar that expands try.我想你的意思是什么pull down App是一个扩展try的Appbar。

the silver Appbar https://youtu.be/mSc7qFzxHDw银色 Appbar https://youtu.be/mSc7qFzxHDw

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有什么办法可以在短时间内剪辑应用栏? - is there any way to clip an appbar in flutter? 有什么方法可以在 flutter 中实现向下钻取? - Is there any way to implement drill down in flutter? 我可以使用flutter_webview_plugin在appBar中实现菜单吗? - Can i to implement a menu in the appBar using flutter_webview_plugin? 如何在没有任何插件的情况下在 flutter 的 AppBar 中创建带有箭头标记的弹出窗口? - How can I create a popup with arrow mark in AppBar in flutter without any plugin? 有没有一种方法可以将应用程序栏摆到底部? - Is there a way to place the appbar at the bottom in flutter? 如何在 flutter 中实现此 appbar 设计,其中我将 Navigation 插入 appbar 而不是 bottomNavigationBar - How can I achieve this appbar design in flutter in which I insert Navigation inside appbar rather than bottomNavigationBar 我如何在颤动的 appBar 中的图标之间导航? - how can i navigate between icons in the appBar on flutter? 如何在 Flutter 的 AppBar 中包含可点击的文本 - How can I have clickable text in the AppBar in Flutter 如何在 Flutter 中的 appbar 之外添加 endDrawer? - How can I add endDrawer outside of appbar in Flutter? 如何删除 Flutter 中 Android 的 AppBar 上方的阴影? - How can I remove shadow above AppBar for Android in Flutter?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM