yako-dev/flutter-settings-ui

switchTile style is cupertino on mac even if you set platform to android

andreadaoud opened this issue · 1 comments

For example, on macOS:

      body: SettingsList(
        platform: DevicePlatform.android,
        sections: [
          SettingsSection(
            title: Text('Options'),
            tiles: [
              SettingsTile.switchTile(
                initialValue: false,
                onToggle: (v) {},
                title: Text("Switch"),
              ),
            ],
          ),
        ],
      ),

The switch tile will still show as cupertino style:

image

But I expect it to be material style if platform is set to android.

@andreadaoud hey, thanks for letting me know, but I cannot reproduce the issue. Please give a link to a reproducible example