mirror of
https://github.com/flutter/flutter.git
synced 2026-01-19 20:22:03 +08:00
Currently, `Switch.factory` delegates to `CupertinoSwitch` when platform is iOS or macOS. This PR is to: * have the factory configure the Material `Switch` for the expected look and feel. * introduce `Adaptation` class to customize themes for the adaptive components.