New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NeumorphicSwitch implementation #37
Conversation
lib/widget/switch.dart
Outdated
child: Neumorphic( | ||
shape: NeumorphicBoxShape.circle(), | ||
style: NeumorphicStyle( | ||
shape: NeumorphicShape.emboss, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only the "background" is embossed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or the thumb is flat with more elevation than the background
The first usable version of the
NeumorphicSwitch
widget is implemented.The track and the thumb are built from a
Neumorphic
widget.NeumorphicSwitch
can take aNeumorphicSwitchStyle
as input.You can provide these values to the
NeumorphicSwitch
through theNeumorphicSwitchStyle
:If no
NeumorphicSwitchStyle
is provided, the switch will use the default theme values.To use
NeumorphicSwitch
(emboss mode):To use
NeumorphicSwitch
(concave mode):