I investigated switch widgets published to “pub.dev” most of them just show thumb with a text like “on/off” but I wanted to change not only text but background color, size, background image, corner sharpness, add state icon, etc. That is my point to start.
Continue reading: https://medium.com/litslink-mobile-development/flutter-build-your-own-switch-91fec6a96fc