I need to resize a widget from top and bottom on drag in Flutter. Does someone know how can I do it?
You can check Resize Widget package for your requirements
Related
I am new to flutter, I need to add an horizontal scroll bar as in the image, how can I go about in doing so. https://i.stack.imgur.com/rfsNB.png
you can test with a ListView, and using the property scrollDirection: Axis.horizontal.
You can get more info in this link:
https://flutter.dev/docs/cookbook/lists/horizontal-list
you can just wrap your widget with the Scrollbar() widget and it will do your job
for further information you can read the docs here
https://api.flutter.dev/flutter/material/Scrollbar-class.html
My question is similar to this How to make my page scrollable when i show overlay element, that have too many items in flutter? but it has no answers so I'll try to ask as well:
I have an Overlay showing a list of questions using ListView. The list of questions is long and I need to enable scrolling inside the Overlay.
Now it's static and part of it disappears at the bottom of the mobile device.
Why is not just scrollable (since the list inside the Overlay is inside a ListView) and is there a way to make it scrollable?
Thanks in advance for any help!
UPDATE (SOLVED) :
The problem was that the ListView widget is inside a Positioned widget and the top, left, bottom and width values (in my case) need to be set in order for the content to be scrollable.
The problem was that the ListView widget is inside a Positioned widget and the top, left,bottom and width values (in my case) need to be set in order for the content to be scrollable.
I want to have a sticky widget similar to the floating widgets in scaffolds, difference is that this widget would belong to a ListView, when it isn't on screen it would behave as a floating widget, when user scrolls so its position be visible it would start animating to stay on its position on the ListView.
Here is a visual example of what I am trying to achieve
https://miro.medium.com/max/1200/1*GsH-kEVNtoDZaM0ZjNYRpQ.gif (the 'MY STICKY BUTTON' widget)
is this even possible in flutter ? and if so how ?
Thanks in advance!
Can a bottomsheet be made scrollable? For example it opens initially upto a particular height and scrolls up as the content is scrolled. If yes, please help!
The DraggableScrollableSheet is here for that purpose.
This widget can be dragged along the vertical axis between its minChildSize, which defaults to 0.25 and maxChildSize, which defaults to 1.0.
You can use any Scrollable widget as child of DraggableScrollableSheet.
See the official video from Flutter team.
I'm new with Widget development..I managed to built a widget, which could not be resized..I want it to be like - users manage to resize it according to themselves...Can someone tell me on how to make it possible?
Thanks friends.
The "android:resizeMode" tag in AppWidgetProviderInfo specifies whether a user can resize the widget vertically, horizontally, both, or neither.
The documentation can be found here:
http://developer.android.com/guide/topics/appwidgets/index.html#MetaData
In AppWidgetProviderInfo.xml
android:resizeMode="horizontal|vertical"
//for resizing horizontal and vertical resizing of widget
or
android:resizeMode="none"
//for disabling resize of widget