GithubHelp home page GithubHelp logo

cool_dropdown's People

Contributors

joo6077 avatar jousis9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cool_dropdown's Issues

null-aware

getting a null aware issue after the last flutter upgrade

Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

Vertically centering dropdown items

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:

image

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!

Dropdown full width

Hey! Big thx for this package, it's really very customizable but I need more :)

Is it possible to make dropdowns width based on result width?

Current situation is:
image
And what I want to achieve:
image

Can we show dropdown item mainaxis on results mainaxis when selects ?

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 :

1
2

Unhandled Exception: 'package:flutter/src/widgets/scroll_activity.dart':

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

Localization option [using getx]

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

how to use this??? I am using a datatable2 package and..

I want to add multiple items'(buttons) and upon clicking on them an action I performed like this:

image

i want to add add and view buttons to this drop down...but with your package it's not possible or maybe too difficult pleas guide.

Please dispose all AnimationControllers

drop_down_body.dart

My proposal:

  @override
  void dispose() {
    _animationController.dispose();
    _triangleController.dispose();
    _scrollController.dispose();
    for (final anim in _DCController) {
      anim.dispose();
    }
    super.dispose();
  }

Remove print() method

Please remove the following print from line 118.

// 기본값 셋팅
if (defaultValue != null) {
  print('.. $defaultValue');
  this.defaultValue = defaultValue;
} else {
  this.defaultValue = {};
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.