70 questions
0
votes
1
answer
58
views
How to preserve ExpandablePageView dynamic height when used inside NestedScrollView with SliverAppBar in Flutter?
I’m using expandable_page_view to make my PageView adjust its height based on the current page content.
It works fine in a normal Column, but when I put it inside a NestedScrollView with a ...
0
votes
0
answers
27
views
NestedScrollView Issue with not stopping on reached to top of screen view is going under the Sliver App bar
return DefaultTabController(
length: 2,
child: NestedScrollView(
headerSliverBuilder: (context, innerBoxIsScrolled) {
return [
SliverAppBar(
...
1
vote
1
answer
179
views
Flutter pinned SliverPersistentHeader goes behind a transparent AppBar (extendBodyBehindAppBar: true)
I'm building a Flutter screen that has a transparent AppBar in the parent Scaffold and a child screen (LobbyScreen) with its own CustomScrollView. I want to pin a SliverPersistentHeader below the ...
1
vote
1
answer
484
views
Flutter SliverAppBar overlap with FlexibleSpaceBar content
I am using the SliverAppBar title and FlexibleSpaceBar content in my widget. However, to avoid FlexibleSpaceBar overlapping SliverAppBar I had to add some SizedBox. In different devices, this height ...
7
votes
3
answers
5k
views
How to Overlay a Scrollable Sliver on a SliverAppBar in Flutter?
I have a CustomScrollView with a SliverAppBar and some slivers. I want to overlay some graphics on the SliverAppBar and have them scroll with the rest of the list.
Here's the code I've been working ...
0
votes
2
answers
290
views
How to override the minimum height in SliverAppBar
I am having a problem where I can't decrease the SliverAppBar as I need. I found out that it has some kind of minHeight constraint that has to deal with some animation and layout stuff. I have a ...
0
votes
1
answer
265
views
how to give dynamic height to pages in customscrollview
There are four tabs(bottom nav) and every tab has a scrolling page wrapped in Indexstack, Now the issue is if IndexedStack is wrapped with Sizebox( double.infinity) it shows empty pages, but if I set ...
0
votes
0
answers
76
views
Flutter SliverAppBar with custom scrolling
I have a SliverAppBar with an image background, and on top of that some rainbow persistent header as an image. I would like to achieve a situation when I scroll the list of items the image fades away ...
0
votes
0
answers
213
views
Extremely thin line between `SliverAppBar` and `SliverPersistentHeader` in flutter
So I am using a CustomScrollView and inside I have SliverAppBar and SliverPersistentHeader as the first two children, with no styling except blue background color.
But there is a really faint, ...
0
votes
2
answers
367
views
Is there a way to recreate Formulia app's collapsible app bar in flutter (similar to `SliverAppBar`)?
So I have an app on my mobile phone called 'Formulia' and I thought the design of their main page expandable app bar looks awesome.
Formulia app collapsible app bar
Do you have any idea how I could ...
0
votes
1
answer
3k
views
Flutter NestedScrollView ScrollController is currently attached to more than one ScrollPosition
I am building a Flutter App and on the Web with a SliverAppBar with Tabs that are scrollable using a NestedScrollView and I am getting this weird error:
The Scrollbar requires a single ScrollPosition ...
1
vote
2
answers
2k
views
How to achieve Cupertino Style Navigation Bar with a cupertino search field inside it
I am developing an iOS application in flutter. I want a navigation bar which can be expandable. On expand there should be large title on left side and on collapse same title should be on top center. ...
0
votes
0
answers
273
views
Overlap of slivers
I have a problem with SliverPersistentHeaders. I have CustomScroll with CupertinoSliverNavigationBar and custom SliverPersistentHeader, with SearchTextField and button. My custom ...
1
vote
2
answers
884
views
Flutter animated SliverAppBar with Animated Positioned Image
I am trying to replicate this animation with my appBar:
I know I can use SliverAppBar and simply animate the textSize. But how would I implement the logic for the image? It moves to the right and ...
2
votes
0
answers
262
views
How to scroll away SliverAppBar without a body
What I'm trying to achieve:
Picture 1: View should be scrollable and the NoData container should fill up the remaining space.
SliverFillRemaining just scrolls under the SliverAppBar which is not ...
0
votes
1
answer
1k
views
SliverPersistentHeaderDelegate should collapse before the Remaining widgets scroll under it
I am trying to make SliverPersistentHeaderDelegate to collapse first and then the rest of the screen to scroll.
Here is the code.
class MyHomePage extends StatelessWidget {
const MyHomePage({
...
0
votes
2
answers
462
views
Want to set the primarySwatch as white in flutter
how to change the 'primarySwatch' to white in the app bar - Flutter?
This is what I have:
,
I want to change the blueGrey (portion marked in red) to white. While trying to change this from
...
4
votes
2
answers
2k
views
How to disable scroll in certain area? [closed]
Is it possible to disable scroll in certain areas of a scrollable widget?
Lets say I want to disable scroll within a square area in the middle of the ListView/CustomScrollView, is that possible?
I am ...
1
vote
1
answer
2k
views
SliverAppBar have an image as a background, circle avatar and title
I am trying to achieve something similar to this where I have background, circle avatar, and title, and when scrolling up the avatar disappears but the title remains.
What I have been able to do is ...
0
votes
1
answer
256
views
How to remove this empty whitespace on sliverappbar?
is there any solution on how to remove this space? i search for any solution but i haven't found it yet, please help me if you know it
this is the code:
SliverAppBar(
shape: ...
0
votes
1
answer
738
views
Flutter CustomScrollView body is briefly visible before SliverAppBar
I am using a custom scroll view inside some pages that already have a top section and a pinned SliverAppBar within. So the SliverAppBar is not docked at the top of the screen. The problem is that when ...
0
votes
1
answer
137
views
how to change appbar color when button tap from other screen in flutter
I'm using BottomNavigationBar and AppBar in HomeScreen in which I'm using two screens A and B ,
now I want to change AppBar background color when tapping a TextButton from B screen
Does anyone know ...
0
votes
0
answers
165
views
how can I achieve something like this with flutter sliver app bar?
I want to achieve the design provided below.
The design is scrollable with a tab bar. The scroll functionality has been achieved but the card between tab bar and sliver app bar is something I could ...
-2
votes
1
answer
118
views
how to create This type of appbar in flutter
Please give some code regarding this image
1
vote
0
answers
191
views
build Custom SliverAppbar in flutter
I'm trying to create SliverAppBar() like this :
And the result of my trying looks like this :
Here is my code :
Scaffold(
backgroundColor: AppColor.backgroundColor,
body: ...
0
votes
0
answers
600
views
How customize flexibleSpace property in SliverAppbar in flutter?
I'm trying to create SliverAppBar() like this :
And the result of my trying looks like this :
Here is my code :
Scaffold(
backgroundColor: AppColor.backgroundColor,
body: ...
1
vote
1
answer
1k
views
How to change the alignment of the title of the SliverAppBar?
How to change the alignment of the title in the SliverAppBar when the app bar is expanded? I want to make the title's alignment to the left of the bottom when the app bar is expanded and change it to ...
1
vote
0
answers
217
views
How to create custom title animation for SliverAppBar in Flutter
I'm trying to create a clone project with this design:
original design
But the result is not that good, IconButton is not at the right position, and a lot of animtation is not implemented yet:
The ...
1
vote
1
answer
1k
views
SliverList is not showing in FLutter
I'm using SliverAppBar and SliverLsit that's wrapped in a CustomScrollView. I am trying to build a widget with sliver list but nothing renders, my screen shows completely in blank.
The goal is to have ...
2
votes
2
answers
2k
views
How can I customize SliverAppBar Flutter?
Hi Guys I locking for create app bar Like this with SliverAppBar() widget Like this :
And I Tried to make it With SliverAppBar() But The output is like this :
Here is Code :
Scaffold(
...
0
votes
0
answers
198
views
Flutter: Reduce space in ExpansionTile using SliverAppBar
I am using a SliverAppBar with an ExpansionTile as the body. Expanding the ExpansionTile the app displays a ListView.builder.
Using the SliverAppBar it somehow adds some space between the subtitle and ...
0
votes
1
answer
742
views
NestedScrollView with tabBar and bottomNavigationBar is not working
I am trying to use tabBarView & bottomNavigationBar in a nestedScrollView. Result is multiple tabBarviews and multiple bottomNavigationBars. pls, see
My tabBar class is:
class TabScreen ...
1
vote
0
answers
2k
views
Flutter: SliverAppBar's bottom overlapping on FlexibleSpaceBar title
I want to make a notes app like
I have tried this code
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: ...
1
vote
2
answers
2k
views
Sliver appbar not stretching flutter
Im so confuse why my sliverappbar doesnt stretch and zoom when I reach the top list. I following the flutter video
https://youtu.be/mSc7qFzxHDw
I tried the following code
class AppBar5 extends ...
0
votes
1
answer
48
views
Few pixels beetween sliverApp bar and the rest of my page
I work on a flutter app to learn, however on my junnction beetween my sliver AppBar title and the rest of my page i have few pixels.
I try to put margin negative.
Do you have an idea how to remove it ?...
0
votes
4
answers
3k
views
How to make persistent AppBar and floating widget just below AppBar in flutter
I want to make my AppBar persistent (it should not float like tabbar) while I want to place a widget or say tabbar just below appbar which will float and be pinned to appbar just like spotify app of ...
0
votes
0
answers
207
views
Is it possible to add two different background images when sliverAppBar collapsed and when it's expanded in flutter?
Hi, everyone! I want to add two different images for SliverAppBar. One for when app bar collapsed and one for expanded app bar. In the above image for collapsed app bar. And below image for expanded ...
1
vote
1
answer
2k
views
How to make one part of body scrollable and other as fixed when using SliverAppBar
I'm trying to make a UI in flutter wherein I'm using SliverAppBar(I mention this because I need to use either CustomScrollView or NestedScrollView) and now in the body, I was to make the first two ...
1
vote
2
answers
1k
views
Do not want rounded corners in the AppBar when the Sliver App Bar is collapsed
I'm trying to implement a layout, where the Sliver App Bar has rounded bottom corners when expanded, but when it is collapsed I do not want those rounded corners.
Actual Behaviour:
enter image ...
1
vote
0
answers
357
views
flutter Scrollcontroller not scrolling all members of a stack
I am using Riverpod for state management in flutter. The fabButton included in a stack that should scroll with other elements in a sliverAppBar does not scroll. Other elements scroll but the FAB. ...
2
votes
1
answer
3k
views
flutter 2 SliverPersistentHeader - avoid overlap during scroll
Here is my code :
import 'package:all_in_one/cooking/pages/recipe/header/search_bar_header.dart';
import 'package:all_in_one/cooking/pages/recipe/header/welcome_header.dart';
import 'package:flutter/...
7
votes
1
answer
10k
views
what is the difference between SliverAppBar and SliverPersistentHeader in Flutter?
What is the main difference between SliverAppBar and SliverPersistentHeader ?
What differ most in terms of their usage purpose ?
2
votes
1
answer
1k
views
How to put a Card widget inside a SliverAppBar?
I'm a beginner in Flutter. I'm trying to make widget like this. Unfortunately I still struggled to implement them. I've tried using flexible space bar with some alignment in the container. But it didn'...
1
vote
2
answers
2k
views
How to pin TextField in SliverAppBar while Scrolling in Flutter?
SliverAppBar contains textfield search box, but it scrolls up when scrolls. How to show the searchbox while scrolling. I did my own works, but didn't work. If there is any resource about Sliverappbar ...
3
votes
0
answers
681
views
Flutter TabbarView not keeping scroll position even after using keys
Issue
Watch the video on Imgur : Imgur
You can watch the video here as well : Cloudinary
As you can see in the video that the scroll position isn't being maintained. It looks like the pages are ...
0
votes
1
answer
768
views
Not able to use Google fonts in Flutter sliverappbar
I am using Google Fonts in my app. I have successfully done so across my app but for some reason I cannot use it in SliverAppBar. The error I get is:
The constructor being called isn't a const ...
0
votes
1
answer
753
views
How to minimize SliverList by clicking button in SliverAppbar flutter
How can I minimize Sliver list automatically by clicking on button in SliverAppBar
I have minimize button in SliverAppbar, and SliverList with multiple ListTiles.
I want to minimize animatedly all ...
2
votes
4
answers
3k
views
How to add BackdropFilter to SliverAppBar
I want to add a BackdropFilter() to a SliverAppbar().
I want it to look something like the iOS App Library App Bar: https://cln.sh/eP8wfY.
Header sliver not floating over the list in a ...
6
votes
4
answers
5k
views
NestedScrollView with SliverAppBar cause unexpected body padding
When I run this code, the ListView will have an unexpected top padding. (See screenshot) Why is that and is there a way to avoid this?
I already tried SliverOverlapAbsorber, SafeArea and MediaQuery to ...
2
votes
1
answer
4k
views
Flutter: SliverAppBar disable scrolling
I have SliverAppBar in my app with expandedHeight: 200,. Below it i have ListView that display content dynamically and can have different length. If ListView has 7 or more item its works perfecly, but ...