Open haizadvnet opened 6 months ago
Seems like flutter_settings_ui expects SettingsTile to always be used within a SettingsList (which creates a SettingsTheme and adds it to the widget tree above its sections); if you're using the tile without a SettingsList, then there's no SettingsTheme automatically available.
A workaround that's working for me is to include a SettingsTheme as a parent widget of the settings tile, like:
SettingsTheme(
themeData: const SettingsThemeData(),
platform: detectPlatform(context),
child: SettingsTile.switchTile(
initialValue: false,
onToggle: (_) {},
title: const Text('Allow notification snoozing'),
));
I ran into issue above after migration to new version (3.0.0). Even the snippet below that I got from the example, gives me the error.