joo6077 / cool_dropdown Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Please remove the following print from line 118.
// 기본값 셋팅
if (defaultValue != null) {
print('.. $defaultValue');
this.defaultValue = defaultValue;
} else {
this.defaultValue = {};
}
drop_down_body.dart
My proposal:
@override
void dispose() {
_animationController.dispose();
_triangleController.dispose();
_scrollController.dispose();
for (final anim in _DCController) {
anim.dispose();
}
super.dispose();
}
getting a null aware issue after the last flutter upgrade
Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
Hi,
I want my DropDown to always open downwards (under the Result). Is this possible?
Thank you!
This project so good but version outdated. Also I can't set selected item with controller or any parameter.
First thanks for this module, it completely replaced my other dropdown solutions.
It has LOADS of options so it is somewhat easy to get lost :-). I would like to be able to center my dropdown options so the selected item comes in the middle center of the dropdown.
I guess it is easier to explain it via the screenshot:
Dropdown has 10 options, from 1 to 10. It only shows 5 items at the time (controlled via height option).
I would like for the currently selected item ('5' in this case) to be in the middle of the displayed list rather than at the top. I tried all the 'align' option in the module, but no luck. Is there an option there or something else that I'm missing?
Many thanks!
I also noticed some possible improvements in typing. If you think this is a good idea, I could make a pull request.
I am getting below exception if "isAnimation" as false. If it is true, then working fine.
Senario :
Click on any value, then select dropdown and select value, then click on dropdown..... causes this issue.
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/widgets/scroll_activity.dart': Failed assertion: line 623 pos 15: 'duration > Duration.zero': is not true.
package:flutter/…/widgets/scroll_activity.dart:1
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2 new DrivenScrollActivity
package:flutter/…/widgets/scroll_activity.dart:623
#3 ScrollPositionWithSingleContext.animateTo
package:flutter/…/widgets/scroll_position_with_single_context.dart:181
#4 ScrollController.animateTo
package:flutter/…/widgets/scroll_controller.dart:154
#5 DropdownBodyState.setScrollPosition.
package:cool_dropdown/drop_down_body.dart:298
Hi,
Thanks for your package. Its really awesome!!!
When I click on dropdown, again it is showing list with all items with gap between results and dropdown. My requirement is to show entire dropdown need to show in results mainaxis to avoid selected value showing twice.
For Eg : First time I have selected "Apple". It is showing in results. Now if clicks on dropdown, it is showing all list of items along with "Apple" result. My idea is to show drop down over the result with all items from 0th position irrespective of selected value.
Please find attached screenshots for reference :
Hi,
I use GetX to toggle between different app display languages.
I don't see the option to add ".tr" to the end of label variable so that the drop down list that is displayed is as per the selected language.
Regards,
Ameya
I have a list of currently about 5 items and there is alot of space left blank. I would like it to adapt to the available items and when i add more it increases to a maximum of say 10 whereby i can then scroll
enhancement
A multiple Selection Option would be great.
Hi,
just wondering if we customize the number of items that are shown when the dropdown is opened. Currently in my case it is doing something like 5, i would like to increment
Thanks!
L.
How can I reset a value which is already selected ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.