パッケージ、リポジトリ、アプリカテゴリを検索

gizmos_settings_screen のカバー
パッケージ詳細v0.5.0

gizmos_settings_screen

ネイティブな見た目と感触を持つアプリ内設定画面を表示するためのFlutterパッケージです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
23
いいね数
19
Pub ポイント
150

パッケージをインストール

flutter pub add gizmos_settings_screen

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

複数のプラットフォームでネイティブな外観を持つアプリ内設定画面を簡単に作成できるFlutterパッケージです。Android、iOS、Web、macOS、Windows、Linuxのシステム設定の見た目と感触を再現する、事前に構築されたカスタマイズ可能なウィジェットを提供します。各プラットフォームに独自のスタイルを適用する必要なく、一貫性があり洗練された設定インターフェースの開発を容易にします。最小限のセットアップで直感的な設定パネルが必要なアプリに最適です。

用途

  • クロスプラットフォーム設定UIの構築
  • アプリの設定パネルを作成する
  • テーマと通知設定の実装
  • アクセシブルな設定画面の設計
  • ユーザープロファイル管理の追加
  • アプリカスタマイズオプションの有効化

主な機能

  • すべてのプラットフォームでのネイティブ風の外観
  • 事前に設計された再利用可能な設定ウィジェット
  • クロスプラットフォームの一貫性
  • 既存のFlutterアプリへの簡単な統合
  • ダークモードおよびアクセシビリティのサポート
  • 最小限のボイラープレートコード

適している対象

  • 機能豊富なモバイルおよびデスクトップアプリを構築する開発者
  • UXの一貫性を重視するチーム
  • 広範なユーザー設定を必要とするアプリ
  • 完成されたUIコンポーネントを探しているFlutter初心者
  • 複数のオペレーティングシステムをターゲットにするプロジェクト

注意事項

  • Flutter SDK 3.0 以上が必要です
  • 組み込みテーマ以外のカスタマイズは限定的
  • 非常にユニークなデザインには、追加のスタイル設定が必要になる場合があります
  • プラットフォーム固有のレンダリング動作に依存しています
  • 複雑なフォームよりも、標準的な設定レイアウトに適している

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

gizmos_settings_screen

badge-pubdev badge-repo github-stars

badge-platforms badge-language badge-license

badge-sponsors badge-githubsponsors badge-patreon

badge-mastodon badge-twitter badge-twitter-gizmosdev

A Flutter package for displaying settings screens (or similar screens). I built this after finding it near impossible to customize the look and feel of the other popular settings screen packages. This package takes a different approach and separates the functionality from the UI customization. This lets you create custom skins to better fit into your existing app. There are several skin prototypes included for Cupertino (light and dark modes), and Material (light and dark modes). In most cases, you can just subclass those, alter your colours and move on to the rest of your app.

This package doesn't depend on any specific package for settings storage. In fact, gizmos_settings_screen can be used for any type of general purpose cell based list, it's just that settings is the most obvious use case. The example application included uses shared_preferences, but I've also used flutter_secure_storage in production apps.

Installation

To use this package, add gizmos_settings_screen as a dependency in your pubspec.yaml file.

dependencies:
  gizmos_settings_screen: any

Import the library

import 'package:gizmos_settings_screen/gizmos_settings_screen.dart';

Usage

Check the included example app for full details. For basic usage, you need to instantiate a SkinDelegate using one of the supplied skins, or by create your own subclass of one of the supplied skins. Then customize a SettingsScreen by attaching one of more SettingsSections configured with one or more SettingsCell subclasses. Included subclasses include DetailsSettingCell, SwitchSettingsCell, 'SliderSettingsCellandButtonSettingsCell`. These will cover most of your basic needs, but it's trivial to create additional subclasses to handle specific options for your app.

Screenshots

iOS Light Mode iOS Dark Mode

Android Light Mode Android Dark Mode

Example

// Select the default skin to use
SettingsSkinDelegate skinDelegate = !Platform.isIOS ? MaterialSettingsSkin() : CupertinoSettingsSkin();

// Return the configured SettingsScreen wrapped in a SettingsSkin with an assigned delegate
return SettingsSkin(
  delegate: skinDelegate,
  child: SettingsScreen(
	sections: [
	  SettingsSection(
		header: 'App Settings',
		footer: 'Your app preferences are set here',
		cells: [
		  DetailsSettingsCell(
			title: 'Informational',
			subtitle: 'Can include simple cells',
			leadingWidget: Icon(
			  Icons.star,
			  color: Colors.blue,
			),
		  ),
		  SwitchSettingsCell(
			title: 'Toggleable option',
			subtitle: 'Uses a switch to set something on or off',
			value: sampleBooleanSetting,
			onPressed: () {
			  setState(() {
				sampleBooleanSetting = !sampleBooleanSetting;
			  });
			},
			onChanged: (bool value) {
			  setState(() {
				sampleBooleanSetting = value;
			  });
			},
		  ),
		  SliderSettingsCell(
			title: 'Fractional option (i.e. Volume)',
			subtitle: 'Uses a slider to adjust a double',
			value: sampleDoubleSetting,
			onChanged: (value) {
			  setState(() {
				sampleDoubleSetting = value;
			  });
			},
		  ),
		  DetailsSettingsCell(
			title: 'Multiple choice option',
			value: preferences.currentOption.description,
			accessoryType: AccessoryType.Disclosure,
			onPressed: () async {
			  // Your code goes here
			},
		  ),
		  ButtonSettingsCell(
			type: ButtonType.Normal,
			title: 'Check for updates',
			onPressed: () async {
			  // Your code goes here
			},
		  ),
		],
	  ),
	],
  ),
);

Please see the example app in this package for a full example.

Notes

  • This is my second Flutter package, and I'm still learning the Flutter way of doing things so a lot of this package may change. Specifically, I'll be looking to make use of ThemeData etc in the skins to reduce duplication of having to set specific colours for your app.

Please send me suggestions/bug fixes.

gizmosdev-logo gizmos.dev

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。