cost 201 ms
Flutter 帶有動畫定位圖像的動畫 SliverAppBar

[英]Flutter animated SliverAppBar with Animated Positioned Image

我正在嘗試用我的 appBar 復制這個appBar : 我知道我可以使用SliverAppBar並簡單地為textSize設置動畫。 但是我將如何實現圖像的邏輯呢? 它向右移動並略微收縮。 這就是我對text的看法: 知道我該如何解決這個問題嗎? ...

想要在 flutter 中將 primarySwatch 設置為白色

[英]Want to set the primarySwatch as white in flutter

如何將應用欄中的“primarySwatch”更改為白色 - Flutter? 這就是我所擁有的: , 我想將 blueGrey(標記為紅色的部分)更改為白色。 在嘗試將其更改為 到 en 錯誤顯示為“無法將參數類型‘Color’分配給參數類型‘MaterialColor?’。” 我想這樣得到它 ...

Flutter ScrollController - 如何禁用特定區域的滾動?

[英]Flutter ScrollController - how to disable scroll in certain area?

是否可以在可滾動小部件的某些區域禁用滾動? 假設我想在 ListView/CustomScrollView 中間的方形區域內禁用滾動,這可能嗎? 我在想這可能需要我在某些觸摸 hitTest 或某些類似概念中通過 true 或 false,但我不確定從哪里開始。 有任何想法嗎? ...

SliverAppBar 有一張圖片作為背景,圓形頭像和標題

[英]SliverAppBar have an image as a background, circle avatar and title

我正在嘗試實現與此類似的東西,我有背景、圓形頭像和標題,當向上滾動時頭像消失但標題仍然存在。 我能做的是應用背景圖像,並保留條形標題,但我不知道如何在 FlexibleSpaceBar 之外設置標題,也不知道如何在背景上設置 CircleAvatar 50%。 這上面產生的東西接近我所追求的只是不 ...

如何更改 SliverAppBar 標題的 alignment?

[英]How to change the alignment of the title of the SliverAppBar?

擴展應用欄時如何更改SliverAppBar中標題的SliverAppBar ? 我想在應用欄展開時將標題的 alignment 置於底部左側,並在應用欄折疊時將其更改為居中。 我試過LayoutBuilder ,但我不知道如何檢查應用欄是否展開。 ...

SliverList 未顯示在 FLutter 中

[英]SliverList is not showing in FLutter

我正在使用包裝在 CustomScrollView 中的 SliverAppBar 和 SliverLsit。 我正在嘗試使用 sliver 列表構建一個小部件,但沒有渲染,我的屏幕完全顯示為空白。 目標是在屏幕中間有一個搜索欄,而另一個中間將被 List View Builder(在 Future ...

如何自定義 SliverAppBar Flutter?

[英]How can I customize SliverAppBar Flutter?

大家好,我鎖定創建應用程序欄就像這樣使用SliverAppBar()小部件像這樣: 我試着用SliverAppBar()來實現,但是 output 是這樣的: 這是代碼: 那么當SliverAppBar()像第一個視頻一樣滾動時,我該如何反轉呢? 第二個問題是如何在滾動時刪除All notes ...

帶有 tabBar 和 bottomNavigationBar 的 NestedScrollView 不起作用

[英]NestedScrollView with tabBar and bottomNavigationBar is not working

我正在嘗試在 nestedScrollView 中使用 tabBarView 和 bottomNavigationBar。 結果是多個 tabBarviews 和多個 bottomNavigationBars。 請看 我的 tabBar class 是: 我試圖將底部導航欄放入不同的 class,但 ...

使用 SliverAppBar 時如何使身體的一部分可滾動而其他部分固定

[英]How to make one part of body scrollable and other as fixed when using SliverAppBar

我正在嘗試在 flutter 中創建一個 UI,其中我正在使用 SliverAppBar(我提到這一點是因為我需要使用 CustomScrollView 或 NestedScrollView),現在在正文中,我要讓前兩個元素在到達時不滾動屏幕頂部,而底部列表。 使用 CustomScrollView ...

如何將 Card 小部件放入 SliverAppBar 中?

[英]How to put a Card widget inside a SliverAppBar?

我是 Flutter 的初學者。我正在嘗試制作這樣的小部件。 不幸的是,我仍然在努力實施它們。 我試過在容器中使用帶有一些 alignment 的靈活空格鍵。 但它並沒有像我想要的那樣 go 。 有什么辦法可以將該卡放在 SliverAppBar 上嗎? 這是我的代碼。 Header.dart ...

無法在 Flutter sliverappbar 中使用 Google fonts

[英]Not able to use Google fonts in Flutter sliverappbar

我在我的應用程序中使用 Google Fonts。 我已經在我的應用程序中成功地做到了這一點,但由於某種原因我無法在 SliverAppBar 中使用它。 我得到的錯誤是: The constructor being called isn't a const constructor. 我試圖更改字 ...

如何通過單擊 SliverAppbar 中的按鈕最小化 SliverList flutter

[英]How to minimize SliverList by clicking button in SliverAppbar flutter

如何通過單擊 SliverAppBar 中的按鈕自動最小化 Sliver 列表我在 SliverAppbar 中有最小化按鈕,在 SliverList 中有多個 ListTiles。 我想通過單擊此最小化按鈕以動畫方式最小化所有列表項 這是主要代碼 class 包含最小化按鈕的 SliverApp ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM