简体   繁体   中英

How can i toggle the sliver appbar to activate or deactivate itself and act as a normal appbar?

我的应用程序中有2个选项卡,当我在第二个选项卡上但在第一个选项卡上保持灵活时,我是否可以切换条子appbar以像普通appbar一样工作?

Without the sample code not much help could be provided. At the very least a GitHub link to the repo.

However based on your question you could look into state management. whereby there is conditional rendering of widget. The page will render a normal app bar in one state and the other state render the flexible app bar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM