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
Related
When I tap on a item on tab bar a circle will appear and disappear, please tell me name of this animation and how could I implement it in a flutter
click for seeing sample
The effect is called a ripple. And you can get it by wrapping a widget in an Inkwell.
See more here about it here: https://docs.flutter.dev/cookbook/gestures/ripples
Hi In Scaffold BottomNavigationBar() has inbuilt properties of circle appear and disappear
You can use a widget called Gesture Detector which also has ripple effect
I would like to create a scroll up bottomsheet something like this
Right now I am working with DraggableScrollableSheet widget. But I don't know how to add animation and that handle icon that changes when the sheet goes up or down.
You can use Solid bottom sheet package from here
also bottom_sheet_bar is similar like this.
In my flutter projects I use the following package for animated bottom sheets:
https://pub.dev/packages/modal_bottom_sheet
Looking for a widget similar to the answer by NiklasPor in this question here. The whole idea fits my needs - have a button that changes border drawn based on how long the button is held. The problem is that the CircularProgressIndicator is used here. I need on hold feature and border drawing to be compatible with the TextButton widget, for example. Basically, I want a TextButton to execute a function if it is held long enough. Any ideas how to start with this? I am thinking of also using the GestureDetector widget.
Have you tried this package: square_percent_indicator
I am using SliverAppBar widget with some background image behind it. Since the image I will load will be dynamic, sometimes it can have light colors and can cause the back button (or any other action button) to be hardly visible.
As you can see in the screenshot below, I gave a little shadow to the app bar title using TextStyle & Shadow widgets, so it is much more visible than the back button.
You can try use "elevation" here is the Flutter link for more clarification: https://www.google.com/url?sa=t&source=web&rct=j&url=https://api.flutter.dev/flutter/material/SliverAppBar/elevation.html&ved=2ahUKEwiEpfiIn4TwAhWUH7cAHY9ECIwQFjACegQIBRAC&usg=AOvVaw0wCdyaVv3EA8ulVXXvaVMu
How do I make BottomSheet like this in Flutter? Specifically the boldge where arrow is?
It can be solved by setting the background color of showModalBottomSheet, transparent
backgroundColor: Colors.transparent,and use a cliper or rounded shape in it.