card_settings_ui 2.0.1 copy "card_settings_ui: ^2.0.1" to clipboard
card_settings_ui: ^2.0.1 copied to clipboard

A card based settings ui for flutter.

δΈ­ζ–‡

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: #

  1. Add the dependency in your pubspec.yaml file.
dependencies:
  card_settings_ui: ^2.0.1
  1. Import the card_settings_ui package.
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'),
        ),
      ],
    ),
  ],
),
21
likes
140
points
617
downloads

Publisher

unverified uploader

Weekly Downloads

A card based settings ui for flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on card_settings_ui