Giter VIP home page Giter VIP logo

Comments (5)

maeddin avatar maeddin commented on July 23, 2024 1

@olsonjb @talski I would appreciate it if you could take a look at my current approach to this issue. On unselected_value these changes are implemented and an example of how to use the feature. For using it in your projects, you can use the following lines in your pubspec.yaml:

animated_toggle_switch:
  git:
    url: https://github.com/splashbyte/animated_toggle_switch.git
    ref: unselected_value

from animated_toggle_switch.

maeddin avatar maeddin commented on July 23, 2024

Thanks for the feature request :)
So do you want no value to be selected if it is not in values, or only if it is null?

from animated_toggle_switch.

talski avatar talski commented on July 23, 2024

for my needs, a null value is enough, could be only if the generics allows it <int?>, maybe an error state (border/background color) when it's not in values range instead of throwing an error?

from animated_toggle_switch.

maeddin avatar maeddin commented on July 23, 2024

I think it makes more sense to throw an error because it's not something that's supposed to happen. But I'm thinking about how best to implement the fact that no value is selected, since this feature has been requested several times now.

from animated_toggle_switch.

maeddin avatar maeddin commented on July 23, 2024

I have now updated the branch to the probably final version. Now values for current are allowed, which are not in values, as you suggested @talski.

from animated_toggle_switch.

Related Issues (20)

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.