Questions tagged [singlechildscrollview]
180 questions
28
votes
6 answers
Flutter The Scrollbar's ScrollController has no ScrollPosition attached
I get this error when using the AppBar:
The Scrollbar's ScrollController has no ScrollPosition attached.
This is my CustomScrollBar:
class CustomScrollBar extends StatelessWidget {
final Widget child;
final ScrollController scrollController;
…

Chris
- 1,828
- 6
- 40
- 108
15
votes
6 answers
Flutter : RenderBox was not laid out: RenderRepaintBoundary#58c65 relayoutBoundary=up1 NEEDS-PAINT
I'm using SingleChildScrollView to make my screen scrollbale but when i add SingleChildScrollView i'm getting below error
RenderBox was not laid out: RenderRepaintBoundary#58c65 relayoutBoundary=up1…

Goku
- 9,102
- 8
- 50
- 81
7
votes
1 answer
when using SingleChildScrollView can't drag down botttom sheet
I've created an app with bottomsheet and listview builder.In the bottom, there is a text button when I drag it up bottom sheet must appear. There is a form in that bottom sheet. I wrap bottom sheet with SingleChildScrollView. But when I click…

ISHAN KALANSOORIYA
- 145
- 2
- 9
7
votes
3 answers
How to add Signature in flutter?
I have implemented signature_pad in my flutter project and it works fine.
Unfortunately when I place it inside SingleChildScrollView, the signature was not drawn. It scrolled instead of signed.
It seems like is the GestureDetector but I have no idea…

Hoo
- 1,806
- 7
- 33
- 66
6
votes
4 answers
(RenderViewport does not support returning intrinsic dimensions
I am facing this
Exception :
FlutterError (RenderViewport does not support returning intrinsic
dimensions. Calculating the intrinsic dimensions would require
instantiating every child of the viewport, which defeats the point of
viewports being…
user16906111
6
votes
2 answers
Manage scrolling for SingleChildScrollView inside a SingleChildScrollView - flutter?
I have a parent SCS View(SingleChildScrollView) and a child SCS View. Inside the child SCS View there is a Data Table, and the Data Table starts at around bottom quarter of the screen.
Now, I want to scroll the parent SCS View when the user scrolls…

ar3
- 369
- 1
- 4
- 18
6
votes
4 answers
How to Automaticallly scroll to a position of a Row inside SingleChildScrollView in Flutter
I am using a SingleChildScrollView. Its scrollDirection is set to Horizontal with >20 child widgets placed inside a Row Widget. I want to programmatically scroll to a position widget(i.e, 5th or 6th position) in the Row. Is there any way to do it…

Sasank Sunkavalli
- 3,864
- 5
- 31
- 55
5
votes
2 answers
How do I enable scrollbar for vertical scroll and disable for horizontal?
I've been building layout with both horizontal and vertical scrolling. Vertical scrollable Column is for main content and is populated by different views, including horizontal ListView which shows promo banners. I wanted to show scrollbar for…

Tumist
- 119
- 3
- 11
4
votes
3 answers
How to manage a custom widget state in SingleChildScrollView Widget
I'm trying to design this view.
I already have the basic design of the cards, but i would like to know how to change the card's background color, the card's border color and add the little green square according to the width size of the current…
4
votes
1 answer
Flutter keep certain elements fixed during scrolling?
How to keep some elements fixed (and above scrollable parts) during scroll?
Does it need to be inside a SingleChildScrollView?
Made a visual example of my problem:
I need the blue part to be scrollable, and that it goes behind the green part that…

Gryva
- 297
- 1
- 11
4
votes
1 answer
Flutter: how to prevent accidentally dragging a Draggable that is a child of a SingleChildScrollView from moving the Draggable instead of scrolling?
I have Draggable widgets inside a SingleChildScrollView and to prevent the Draggable from being dragged when users' intention is to scroll, I thought to change them into LongPressDraggable with a delay, code blow:
LongPressDraggable(
…

Chuender
- 103
- 9
4
votes
1 answer
How to get size of a child Widget
I have a special requirement to allow for a header widget, usually containing static content to appear at the top of a scroll view. The scroll view should overlap the header widget so that a clip shape can be used for effect. I've achieved this…

Pheepster
- 6,045
- 6
- 41
- 75
4
votes
1 answer
Flutter - whitespaces displaying for image in portrait and landscape
I keep seeing lot of white space if I do landscape or portrait within my image. I do need the slidable so didn't want to tweak the code too much, but I do want it to look representable
is there something wrong with my code?
I did add a picture this…

shahbaz
- 145
- 2
- 16
4
votes
3 answers
SingleChildScrollView for Column inside Column
In the picture below, what I'm trying to achieve, is let the Green part Scrollable, since, in case the keyboard pops up, it doesn't give me the render error.
The whole screen is just a Column, where yellow part is a custom widget, and green part…

Tizianoreica
- 2,142
- 3
- 28
- 43
3
votes
0 answers
Flutter: How to make draggable bottom sheet with fixed draggable triggering
i want to make something like below:
initial state of the bottom sheet
,
when dragging upward the bottomsheet
Expected behavior
when i drag upward the bottomsheet, the content will be displayed like the second picture, and when the sheet reach the…

Michel Gisenaël
- 211
- 1
- 2
- 15