The default switch for stock Android looks as follows:
However, on some Android flavors such as MIUI, the switch looks like this in their native apps:
How can I achieve this native behavior for all Android flavors (Samsung, MIUI, Huawei, Sony, etc.) with Flutter?
You can use the below snippet for Switch Button like Android:
isSwitch is bool flag to manage on/off