How do I implement a dial widget in flutter? - flutter

I'm trying to implement a dial widget in flutter and I need to make a circle RaisedButton to go around center of the parent widget. I can use Center to position a button at the center of the parent container, then transform it. But that makes the button unresponsible. Is it possible to do without using CustomSingleChildLayout? That looks a bit complex

I don't know if I'm understanding your requirement correctly, but a package similar to this called flutter_radial_menu is available, while the implementation can be seen in this Git repository.
The codes are available for your reference, if your goal is similar to this one.
I hope this helps.

After some digging in flutter_radial_menu, I realized the way to do it is to use CustomSingleChildLayout. I need to implement a delegate for it. In the delegates getPositionForChild method, we have both the size of the parent and size of the child. We only need to return the position of the child.
I put the code in this gist https://gist.github.com/gliheng/2cc5f97922d456052713fd0803a7efdc

Related

How to create a slider which should be returned to starting position when user stop dragging and need to call method when it completes full in flutter

In flutter i tried with sliderTheme and slider widget but the it is working as a seek bar not as a draggable slider.
Any idea or widgets would be helpful.
Thanks in advance.
try to use slider_button i think this package is fit your requirement very well https://pub.dev/packages/slider_button

Is it possible to use Material Banner Widget without Actions?

I'm trying to use the material banner widget but a list of actions is required. The list of actions is causing the banner to look weird even when I place an empty container inside of the list.
Should I not be using the material banner widget since it requires a list when my design doesn't need a list of actions available? I want to use the widget since I can use these methods easily.
ScaffoldMessenger.of(context).showMaterialBanner & ScaffoldMessenger.of(context).clearMaterialBanners();
If I shouldn't be using the widget, does anyone else have a good replacement for it?
Thank You.
Edit: I've added an image for reference.
https://imgur.com/a/DPSnhrw
I want to get rid of the red area on the right side of the banner. I've tried setting the material banner's padding to padding: EdgeInsets.zero
I think I found a way but it's dirty: open the MaterialBanner widget and change everything you don't like in the code.
Below are the changes I made. After that, I'm passing any List of widgets as actions to the MaterialBanner, which is simply ignored.
Changes to MaterialBanner

Flutter create a transsission from a GridView element to Header

I'm looking for an animation from a GridView Selection to a new Page.
Here is the transmission I like to have:
But I don't know how to make this. I could use a AnimatedContainer for each GridViewItem, but this would not help to "break out" from the Grid during the animation.
Should I use a Stack and a Positioned AnimatedContainer? What is the best attempt here?
Try to use the Hero Widget. In Simple, you'll have to wrap the grid element with the hero widget and pass the tag within the screen.
A Code example is available in the official documentation.

How to produce this menu effect in flutter?<image attached>

This effect
I couldn't find any ways to produce this type of home screen card slide menu effect or any combination of widgets to reproduce this, sure could use some help.
This type of custom Drawer done with Stack, AnimatedBuilder and Transform. Most difficult part there is gesture behavior, that could be copied from original Drawer flutter source code.
Marcin SzaƂek represented this implementation, alongside with few other features on Flutter Europe.
At this video he describes how he done it.
And this is link to his github with this feature code implemented.

Is there any deafult widget like in image or if I need to do it how could that be implemented?

So I am not looking for filters but I am looking for scroll widget. I have tried generating listview items abd getting position of listview to give items ratio but I wasn't able to get any functionality while in certain index position. Any help would be helpfull. Naming of the widget or special widgets that can make me do this etc.
You can use ListView or ListView.builder to do that, but with circle-shaped widgets as the children.
You can check out this tutorial to do the horizontal list. And you can check out this StackOverflow question, to create a circle button. Or instead of a button, you want to use the CircleAvatar (to add an image in it), you can check out this official doc.