r/FlutterDev • • Sep 27 '19

Plugin A day night switch widget for Flutter. [GitHub link in comment]

155 Upvotes

20 comments sorted by

12

u/pro_intern Sep 27 '19

This is dope!

2

u/divyanshub024 Sep 27 '19

Thanks a lot!!

3

u/Crookshanks09 Sep 28 '19

Yeah awesome! Definitely going to use it in our project.

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

u/divyanshub024 Sep 28 '19

Well, I can do that but I'm not sure as its just a few lines of code.

1

u/tea-mo Sep 28 '19

Nice work! I'd also like to have such a component

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.

https://github.com/divyanshub024/day_night_switch/issues

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.

2

u/dipanjanroy Sep 28 '19

Nice.

2

u/test1729 Sep 28 '19

Nice.

0

u/[deleted] Sep 28 '19

[deleted]

1

u/hypercluster Sep 28 '19

Huh haven’t seen that “..” syntax. Is that a way to build widgets with less nesting?