An open API service indexing awesome lists of open source software.

https://github.com/erbws/card-settings-ui

A card based settings ui for flutter 一个基于卡片的 flutter 设置 UI 插件
https://github.com/erbws/card-settings-ui

Last synced: 2 months ago
JSON representation

A card based settings ui for flutter 一个基于卡片的 flutter 设置 UI 插件

Awesome Lists containing this project

README

          

[中文](README_CN.md)

## Overview



A card based settings ui for flutter. Inspired by [settings_ui](https://pub.dev/packages/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.

```yaml
dependencies:
card_settings_ui: ^2.0.1
```

2. Import the `card_settings_ui` package.

```dart
import 'package:card_settings_ui/card_settings_ui.dart';
```

## Basic Usage:

The usage is almost the same as [settings_ui](https://pub.dev/packages/settings_ui).

> [!IMPORTANT]
>
> This package is `MaterialApp` only.

```dart
SettingsList(
sections: [
SettingsSection(
title: Text('Common'),
tiles: [
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'),
),
],
),
],
),
```