Overview
A card based settings ui for flutter. Inspired by settings_ui and Android 16 QPR.
Tip
This is a pure dart package without platform judgments, so it supports all platforms, including ohos.
Installing:
- Add the dependency in your
pubspec.yamlfile.
dependencies:
card_settings_ui: ^2.0.1
- Import the
card_settings_uipackage.
import 'package:card_settings_ui/card_settings_ui.dart';
Basic Usage:
The usage is almost the same as settings_ui.
Important
This package is MaterialApp only.
SettingsList(
sections: [
SettingsSection(
title: Text('Common'),
tiles: <SettingsTile>[
SettingsTile.navigation(
leading: Icon(Icons.language),
title: Text('Language'),
value: Text('English'),
),
SettingsTile.switchTile(
onToggle: (value) {},
initialValue: true,
leading: Icon(Icons.format_paint),
title: Text('Enable custom theme'),
),
],
),
],
),