Comments (5)
@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.
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.
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.
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.
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)
- Point releases should not have breaking changes HOT 3
- Range error when dragging the indicator too far in right direction HOT 9
- Change icon or text color HOT 4
- translation example HOT 3
- foreground icon and background icon do mismatch by a few pixel HOT 2
- onchanged property always remains false HOT 9
- Indicator hide DecoratedBox hide while dragging HOT 12
- Feature Request: Ability to disable toggle switch HOT 2
- [Feature request] Add the possibility to toggle off the switch HOT 8
- Why is there no option to add an indicatorGradient in ToggleStyle? HOT 2
- problems with backgroundGradient and backgroundColor
- Theme switching occurs with a delay HOT 7
- Option to execute custom code after completion of animation HOT 2
- Setstate() called after dispose
- indicatorSize can't be changed HOT 2
- Indicator boxShadow is clipped HOT 4
- backgroundColor is displayed inaccurately. HOT 4
- Accessibility TalkBack for Android covers other switches, unable to read other tabs or select them. HOT 1
- Sometimes the toggle gets triggered two times HOT 6
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 animated_toggle_switch.