![](/img/trans.png)
[英]Flutter animated SliverAppBar with Animated Positioned Image
我正在嘗試用我的 appBar 復制這個appBar : 我知道我可以使用SliverAppBar並簡單地為textSize設置動畫。 但是我將如何實現圖像的邏輯呢? 它向右移動並略微收縮。 這就是我對text的看法: 知道我該如何解決這個問題嗎? ...
[英]Flutter animated SliverAppBar with Animated Positioned Image
我正在嘗試用我的 appBar 復制這個appBar : 我知道我可以使用SliverAppBar並簡單地為textSize設置動畫。 但是我將如何實現圖像的邏輯呢? 它向右移動並略微收縮。 這就是我對text的看法: 知道我該如何解決這個問題嗎? ...
[英]Want to set the primarySwatch as white in flutter
如何將應用欄中的“primarySwatch”更改為白色 - Flutter? 這就是我所擁有的: , 我想將 blueGrey(標記為紅色的部分)更改為白色。 在嘗試將其更改為 到 en 錯誤顯示為“無法將參數類型‘Color’分配給參數類型‘MaterialColor?’。” 我想這樣得到它 ...
[英]Flutter ScrollController - how to disable scroll in certain area?
是否可以在可滾動小部件的某些區域禁用滾動? 假設我想在 ListView/CustomScrollView 中間的方形區域內禁用滾動,這可能嗎? 我在想這可能需要我在某些觸摸 hitTest 或某些類似概念中通過 true 或 false,但我不確定從哪里開始。 有任何想法嗎? ...
[英]SliverAppBar have an image as a background, circle avatar and title
我正在嘗試實現與此類似的東西,我有背景、圓形頭像和標題,當向上滾動時頭像消失但標題仍然存在。 我能做的是應用背景圖像,並保留條形標題,但我不知道如何在 FlexibleSpaceBar 之外設置標題,也不知道如何在背景上設置 CircleAvatar 50%。 這上面產生的東西接近我所追求的只是不 ...
[英]how to change appbar color when button tap from other screen in flutter
我在HomeScreen中使用BottomNavigationBar和AppBar ,其中我使用兩個屏幕A 和 B ,現在我想在從 B 屏幕點擊 TextButton 時更改 AppBar 背景顏色有誰知道如何實現這一目標? ...
[英]How to change the alignment of the title of the SliverAppBar?
擴展應用欄時如何更改SliverAppBar中標題的SliverAppBar ? 我想在應用欄展開時將標題的 alignment 置於底部左側,並在應用欄折疊時將其更改為居中。 我試過LayoutBuilder ,但我不知道如何檢查應用欄是否展開。 ...
[英]SliverList is not showing in FLutter
我正在使用包裝在 CustomScrollView 中的 SliverAppBar 和 SliverLsit。 我正在嘗試使用 sliver 列表構建一個小部件,但沒有渲染,我的屏幕完全顯示為空白。 目標是在屏幕中間有一個搜索欄,而另一個中間將被 List View Builder(在 Future ...
[英]How can I customize SliverAppBar Flutter?
大家好,我鎖定創建應用程序欄就像這樣使用SliverAppBar()小部件像這樣: 我試着用SliverAppBar()來實現,但是 output 是這樣的: 這是代碼: 那么當SliverAppBar()像第一個視頻一樣滾動時,我該如何反轉呢? 第二個問題是如何在滾動時刪除All notes ...
[英]NestedScrollView with tabBar and bottomNavigationBar is not working
我正在嘗試在 nestedScrollView 中使用 tabBarView 和 bottomNavigationBar。 結果是多個 tabBarviews 和多個 bottomNavigationBars。 請看 我的 tabBar class 是: 我試圖將底部導航欄放入不同的 class,但 ...
[英]Sliver appbar not stretching flutter
我很困惑為什么當我到達頂部列表時我的 sliverappbar 不拉伸和縮放。 我關注 flutter 視頻 https://youtu.be/mSc7qFzxHDw 我嘗試了以下代碼 ...
[英]Few pixels beetween sliverApp bar and the rest of my page
我在一個 flutter 應用程序上工作來學習,但是在我的銀色 AppBar 標題和我頁面的 rest 之間的連接處,我的像素很少。 我嘗試將保證金設為負數。 你知道如何刪除它嗎? 這是我的代碼: ...
[英]How to make one part of body scrollable and other as fixed when using SliverAppBar
我正在嘗試在 flutter 中創建一個 UI,其中我正在使用 SliverAppBar(我提到這一點是因為我需要使用 CustomScrollView 或 NestedScrollView),現在在正文中,我要讓前兩個元素在到達時不滾動屏幕頂部,而底部列表。 使用 CustomScrollView ...
[英]Do not want rounded corners in the AppBar when the Sliver App Bar is collapsed
我正在嘗試實現一個布局,其中 Sliver App Bar 在展開時具有圓底角,但在折疊時我不想要那些圓角。 實際行為: 在此處輸入圖像描述 預期行為: 這是我的 SliverAppBar 代碼: ...
[英]flutter 2 SliverPersistentHeader - avoid overlap during scroll
這是我的代碼:import 'package:all_in_one/cooking/pages/recipe/header/search_bar_header.dart'; import 'package:all_in_one/cooking/pages/recipe/header/welcome_ ...
[英]what is the difference between SliverAppBar - SliverPersistentHeader in Flutter?
SliverAppBar 和 SliverPersistentHeader 的主要區別是什么? 就其使用目的而言,最不同的是什么? ...
[英]How to put a Card widget inside a SliverAppBar?
我是 Flutter 的初學者。我正在嘗試制作這樣的小部件。 不幸的是,我仍然在努力實施它們。 我試過在容器中使用帶有一些 alignment 的靈活空格鍵。 但它並沒有像我想要的那樣 go 。 有什么辦法可以將該卡放在 SliverAppBar 上嗎? 這是我的代碼。 Header.dart ...
[英]Not able to use Google fonts in Flutter sliverappbar
我在我的應用程序中使用 Google Fonts。 我已經在我的應用程序中成功地做到了這一點,但由於某種原因我無法在 SliverAppBar 中使用它。 我得到的錯誤是: The constructor being called isn't a const constructor. 我試圖更改字 ...
[英]How to minimize SliverList by clicking button in SliverAppbar flutter
如何通過單擊 SliverAppBar 中的按鈕自動最小化 Sliver 列表我在 SliverAppbar 中有最小化按鈕,在 SliverList 中有多個 ListTiles。 我想通過單擊此最小化按鈕以動畫方式最小化所有列表項 這是主要代碼 class 包含最小化按鈕的 SliverApp ...
[英]Flutter: How to add BackdropFilter to SliverAppBar
我想將BackdropFilter()添加到SliverAppbar() 。 我希望它看起來像 iOS App Library App Bar: https://cln.sh/eP8wfY 。 Header 條子不會在 NestedScrollView 中的列表上浮動,但僅限於 header,我 ...