Comments (8)
thank you very much by adjusting the offset I was able to center it although it is a bit static it can be achieved. As for the animation, if it is not doing the reverse effect, thanks for answering!
from dropdown_button2.
_fadeOpacity = CurvedAnimation(
parent: widget.route.animation!,
curve: const Interval(0.0, 0.25),
reverseCurve: const Interval(0.0, 1.0),
);
_resize = CurvedAnimation(
parent: widget.route.animation!,
curve: const Interval(0.25, 1.0),
reverseCurve: const Interval(0.0, 0.75),
);
I put this configuration and it is quite good, thanks dude
from dropdown_button2.
Do you want the menu not to open below the button? You can use Offset
parameter to change the menu position.If you could provide a sample of what you want to do would be better to help.
Also, I think when the menu is closed the animation is already reversed.
from dropdown_button2.
I was looking at the package code and found the code to reverse the animation
@OverRide
bool didPop(T?result) {
assert(_controller != null, '$runtimeType.didPop called before calling install() or after calling dispose().');
assert(!_transitionCompleter.isCompleted, 'Cannot reuse a $runtimeType after disposing it.');
_result = result;
_controller!.reverse();
return super.didPop(result);
}
But it seems that the method is not being called or is not entering
from dropdown_button2.
Check line 265
from dropdown_button2.
I've tested the animation reverse when menu closed and it's working fine.
The menu close animation "reverseCurve" is faster than menu open animation "curve" That's why it can't be noticed clearly, but you could notice it if you spam tapping the button.
from dropdown_button2.
Yes, when I do it repeatedly I notice it but not when I touch it when it is fully open
from dropdown_button2.
Yes, That's how Flutter's dropdown behaviour works.
If you would like to edit it, start at line 265 you'll find the animation reversedCurve
from dropdown_button2.
Related Issues (20)
- Either zero or 2 or more items were detected with the same value, and if the first item is not selected the other selections disappear from the button HOT 21
- [feature] Add `DropdownButton2FormField` HOT 1
- Dropdown doesn't open if you don't have onChanged HOT 1
- Remove padding left HOT 1
- Clear button (again) HOT 8
- URGENT! Make selectedItemBuilder return a single Widget and not List<Widget> HOT 3
- Easy way of changing the style of the selected item's text HOT 7
- The getter 'View' isn't defined for the class 'DropdownButton2State<T> HOT 2
- using callTap() with DropdownButtonFormField2 HOT 1
- Search with API HOT 1
- Search Issue in when installing app in real device HOT 8
- Unhandled Exception: Looking up a deactivated widget's ancestor is unsafe. HOT 2
- Bottom line doesn't change color when is focused in desktop application. HOT 9
- Error: unable to find directory entry in pubspec.yaml HOT 2
- Setting scrollbarTheme doesnโt work HOT 6
- openMenuIcon bug and unable to update to the newest version because of shared_preferences HOT 1
- Avoid capturing focus when Dropdown is opened HOT 2
- dropdownStyle.useRootNavigator doesn't work HOT 1
- Key tab not opening dropdown HOT 1
- warning while expanding/reducing listview HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dropdown_button2.