Comments (1)
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'),
));
from flutter_settings_ui.
Related Issues (12)
- Idea: Get native widgets depending on platform HOT 2
- Change Border Color HOT 1
- SettingsTile title gets truncated HOT 6
- Update design to iOS 15 HOT 1
- onPressed not working in iOS HOT 1
- Support Material You HOT 1
- Basic usage example outdated? HOT 1
- Readme is not updated
- add support for RTL languages
- [Bug] Cannot run the package with v3.x
- Change SettingsList background color HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_settings_ui.