r/FlutterDev • u/divyanshub024 • Sep 27 '19
Plugin A day night switch widget for Flutter. [GitHub link in comment]
1
u/anticafe Sep 28 '19
Look so cool.
BTW, /u/divyanshub024, could you split the circular animation (of the sun and moon) into new separated widget or library?
2
1
u/sgshivamgarg8 Mar 13 '22
Been using in my app, very useful. Can you add one more option for System Auto mode in between.
2
u/divyanshub024 Mar 14 '22
Thank you for your suggestion. I'll try to doo it in the coming weeks.
1
u/sgshivamgarg8 Mar 14 '22
Would also like to have a disabled option Tried passing null in onStateChanged but it doesnt work. Had to wrap inside IgnorePointer widget and I cant change the styles either to make it look disabled.
1
u/divyanshub024 Mar 14 '22
Can you please make an issue here with all the requirements? Thanks.
1
u/sgshivamgarg8 Mar 14 '22
Ok I will do that. I thought of doing it but wasnt sure if project was maintained on or not
1
u/divyanshub024 Mar 14 '22
Yeah, I didn't update it for a long time. But I'm planning to update in the coming weeks. So please feel free to create an issue.
1
2
1
u/hypercluster Sep 28 '19
Huh haven’t seen that “..” syntax. Is that a way to build widgets with less nesting?
3
Sep 28 '19
That’s Dart’s cascade operator.
https://news.dartlang.org/2012/02/method-cascades-in-dart-posted-by-gilad.html
12
u/pro_intern Sep 27 '19
This is dope!