484 questions
0
votes
1
answer
57
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
26
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(
...
0
votes
0
answers
55
views
Flutter Slivers that hide themselves underneath Persistent Headers without a background
I'm trying to build a UI that utilizes Flutter's Slivers to have a Sliver that sticks to the top and every Sliver after it continues scrolling while also hiding itself when it hits the bottom of the ...
1
vote
1
answer
171
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
191
views
How to Pin a SliverAppBar Below the Status Bar?
I have a layout with three Slivers:
A SliverAppBar (not pinned).
A second SliverAppBar (pinned, containing a SearchBar).
A SliverList.
The issue is with the second SliverAppBar. I want it to be ...
0
votes
0
answers
93
views
How can I properly combine Sliver in a MultiBlocProvider in Flutter?
There are Questions here that sound similar, but don't solve my specific issue, and I cannot seem to extract the information to get it to run. I have a MultiSliver I want to display, I get however the ...
1
vote
0
answers
75
views
A RenderSliverPadding expected a child of type RenderSliver but received a child of type RenderErrorBox
In my Flutter application, I'm developing a chatbot using flutter_chat_ui. This app can fetch initial messages and display them, but the moment I perform onTap on any of the initial messages, I'm ...
1
vote
0
answers
62
views
How to expand/contract a SliverAppBar shared via ShellRoute with GoRoutes?
This is a follow-up question. Here is the original: How to use CustomScrollView in a GoRouter ShellRoute?
I am trying to generate a CustomScrollView with a collapsible SliverAppBar at the top. Beneath ...
0
votes
1
answer
58
views
RenderFlex Overflow problem when scrolling using SliverAppBar and SliverList
I am encountring a overflow problem within SLiverlist. I have SliverAppBar that callapsed when scrolling the SliverList but at a moment I encounter the RenderFlex overflow by 337 pixels on bottom.
...
0
votes
1
answer
73
views
Flutter sliver How to achieve this nested scrolling layout?
I want to achieve a complex scrolling behavior in flutter. I assume sliver is the way to go but I could not find a way to solve my problem.
Here is a screen of the content I want to scroll:
The ...
0
votes
1
answer
97
views
Is there a way in flutter to have nested ListViews without using shrinkWrap or specified height for the sublist?
I need to have a list of elements. Each element will have a list (for example, parent comment and its list of replies). But in this case I need to provide shrinkWrap: true or to provide Container with ...
0
votes
1
answer
245
views
Flutter Sliver Sticky Header hide content behind rounded corners
I implemented a SliverStickyHeader which is working just fine within my CustomScrollView. I only have one problem:
My Sticky header is basically a Container with borderRadius. Now I want my content to ...
0
votes
1
answer
228
views
SliverAppBar and title
I have a SliverAppBar, but I want to make it so that when the user starts scrolling, the title becomes like a regular AppBar (centered on top) + before scrolling, it was on the left, not in the center....
0
votes
1
answer
620
views
How to make nested scroll view to use parents scoll behaviour
I am trying to have the content of my page inside a sliver list but when I scroll, the list of the page and the sliver list scroll behaviours are independent of each other. I want it so that both ...
1
vote
1
answer
98
views
Title Alignment in Sliver SpaceFlexibleBar
I'm very desperate. I'm new to flutter and following the tutorials in YT. There I came across following problem and wonder how I'm the only one.
In the YouTube (https://www.youtube.com/watch?v=YY-...
-1
votes
1
answer
75
views
How to get rid of the leading SliverAppBar icon?
i'm trying to get rid of the leading menu Icon (hamburger Icon), so i put leading to null but still nothing changed, here my code :
CustomScrollView(
slivers: [
...
0
votes
1
answer
602
views
Flutter Tab Navigation with auto_route, how to avoid transition on SliverAppBar
So I'm starting a project where the main page (HomeScreen) has a NavigationBar and several sub-screens. For the purpose of this demo, I have created two sub-screens called StarScreen and SquareScreen. ...
1
vote
0
answers
76
views
How can I fix video player overflow in landscape mode?
When I changed the phone orientation to landscape video player gives bottom overflow, I'm trying several ways to deal with this. I can't use two listViews because I need the video player to stay at ...
0
votes
1
answer
262
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
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, ...
1
vote
2
answers
714
views
Flutter controll scrolling priority
I have a code that has these main widgets:
CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(
parent: BouncingScrollPhysics(),
),
slivers: [
SliverFillRemaining(
...
1
vote
1
answer
109
views
Center `CustomScrollView` if has space
I have the folowing code:
return Scaffold(
body: CustomScrollView(
physics: const AlwaysScrollableScrollPhysics(
parent: BouncingScrollPhysics(),
),
...
1
vote
0
answers
224
views
SliverFillRemaining with a SizeTransition occupies more space than the viewport
I have a problem with a SizeTransition that is within a SliverFillRemaining. The issue is that the SliverFillRemaining does not adjust its size proportionally to the height of the SizeTransition. Even ...
3
votes
4
answers
3k
views
How to create an infinite scrollable list up and down
I want to create an infinite scrollable list like it is possible to do with ListView.builder :
ListView.builder(
itemBuilder: (context, index) => Text(index.toString()),
);
But doing so only ...
0
votes
1
answer
365
views
How to start displaying the Pinned header children from the first child always when the children changes dynamically
I'm using CustomScrollView and sliver_tools package to display a list view with a SliverPinnedHeader.
In the SliverPinnedHeader, I have a tab view kind of layout where the user is allowed to select a ...