I found this <ion-ripple-effect></ion-ripple-effect>
But, it's only to element ripple, not ripple around click (with specific radius)
Related
Hi I'm trying to create a screen that have bunch of container with a child of row that have a text and a Icon (the red one - can be seen on the image). So when I click the icon I want to show a dialog right next to the icon. I tried using aligned_dialog but the positioning is really hard to do, I want it to be instantly next to the icon just like the image.
Is there any package or widget that I can use to achieve this ?
You can check this package: https://pub.dev/packages/just_the_tooltip
It allow to specify a child of type Widget, so you can add what you want.
Id like to create similar animation effect with press button in flutter like this
I tried to find some similar widget on https://pub.dev/ without success. Any Idea how to create it?
Use materialappbutton to get hover animation effect.
The only thing I can think of is working with a gradient which you adapt in a stateful way on hover.
See the below answer for how to make a gradient border:
Outlined transparent button with gradient border in flutter
I would like to make a custom checkbox button with rounded corners.
Because I wasn't able to do it with a CheckBox widget, I simply created a container with rounded corners (and some styling depending on whether the "value" is true) and wrapped it in InkWell.
InkWell
Container
The problem is that the checkbox (container) is quite small and you have to tap precisely on the Container. When you use CheckBox or any other button, there is some tolerance (meaning that you can click slightly off the button). How can I achieve this with InkWell?
The only idea I have is to wrap the Container in Padding first:
InkWell
Padding
Container
Is this the only solution, or is there another way of making a "button" with InkWell, where the onTap function will execute even if you don't touch the button precisely?
I am looking to create in Flutter a modal dialog that slides in from the bottom and
Appears with a given height (eg. 1/3 of the screen)
Expands vertically if the user scrolls up on it (and shrinks until disappearing if the user scrolls down)
Provides some kind of callback or observable so that I can know when it reaches the top of the screen/parent. (I need this in order to create a back arrow on the top left corner of the panel itself)
Is there any way to achieve this?
I have found the package sliding_up_panel to be really nice, but lacking the third feature.
The SlidingUpPanel does actually have everything you need. You want to use the onPanelSlide property from it which will provide you the current % opened of the panel normalized ([0, 1.0]), so if you want to know when it reaches the top you, it's when its current position is at 1.0.
As an alternative, you may want to take a look at DraggableScrollableSheet widget, but IMO, SlidingUpPanel is more versatile.
How can I combine a swiper action with a fade-in/fade-out action in another area of the screen?
My screen is divided into two halves: The Top is a text widget and the bottom is a swiper widget with two pages. My goal is to fade-out the text in the top half when I swipe to the second page in the bottom half.
I'm using this dependency for the swiper widget in the bottom half: https://pub.dev/packages/flutter_swiper
I solved it by using GestureDetector widget and updated the opacity via the state.
The GestureDetector needed two functions: onDragUpdate and onDragEnd. Both changed the state of the progress which is also used to update the opacity in the other half.
Quite some work for such a small interaction, however, it works.