[英]My AppBar is behind my Image on the screen or I can not see it, any suggestion to display my AppBar and buttomNavigator on top and translucent?
[英]How to keep AppBar at the top of the screen
有沒有辦法防止appBar
保持固定在屏幕頂部? 我希望appBar
在屏幕頂部是靜態的,並且能夠將其滾動到視圖之外。
例如,如果有一個長列表,當向下滾動列表時,您不會看到appBar
始終位於屏幕頂部。
return new Scaffold(
appBar: new AppBar(..)
)
您可以在 CustomScrollView 中使用SliverAppBar 。 SliverAppBar小部件中固定了一個參數,您可以使用它來實現所需的輸出。
快樂飄飄!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.