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

moon_design のカバー
パッケージ詳細v1.1.0

moon_design

Flutter用のMoonデザインシステム。Moonデザインシステムに従う一連の整合性があり、テーマ設定可能で拡張可能なウィジェットです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1540
いいね数
102
Pub ポイント
140

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

flutter pub add moon_design

パッケージ概要

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

Flutter用のMoon Design Systemは、Moon Design Systemと整合したテーマ設定可能で拡張可能なウィジェットの包括的なコレクションを提供します。複数プラットフォーム間での一貫性を実現するように構築されており、Android、iOS、Web、macOS、Windows、Linux上で視覚的に統一されたアプリケーションの開発を可能にします。カスタムテーマのサポートと簡単なpubコマンドによる統合が可能です。ドキュメントが充実したコンポーネントとアクセシビリティおよびスケーラビリティへの注力により、デザインの整合性を保ちながらUI開発を効率化します。

用途

  • 一貫したUIでクロスプラットフォームアプリを構築する
  • ブランドに整合したデザインシステムの実装
  • 事前設計されたコンポーネントを使用した迅速なプロトタイピング
  • アクセシブルで応答性のあるインターフェースの作成
  • チーム全体のデザインの一貫性を有効にする

主な機能

  • 動的カラースキーム用のテーマサポート
  • 拡張可能なウィジェットアーキテクチャ
  • クロスプラットフォーム互換性
  • アクセシビリティに焦点を当てたコンポーネント
  • モジュール型で再利用可能なデザイン要素

適している対象

  • 開発者と協力するUI/UXデザイナー
  • 標準化されたデザイン言語を採用するチーム
  • マルチプラットフォーム展開を必要とするプロジェクト
  • スケーラブルな製品インターフェースを構築するスタートアップ
  • 時間効率的なUIソリューションを求める開発者

注意事項

  • Flutter のウィジェットシステムの理解が必要です
  • カスタマイズには、テーマに関するより深い知識が必要になる場合があります
  • Moon Designの原則と整合する使用ケースに限定
  • 非常にシンプルなアプリにはオーバーヘッドをもたらす可能性があります
  • 更新およびバグ修正のためGitHubリポジトリに依存

元の README

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

Moon Design System

Version Build Conventional Commits

Moon Design System

Note: This project uses Release Please and Conventional Commits spec, please follow the conventions or consider using Commitizen to write commit messages.

Disclaimer

The current major release, v1.0.0, will be maintained as-is and will not receive further updates, except for patches. The v1 theming is based on the soon-to-be deprecated Moon Design Figma v1 and lacks flexibility. For greater control over theming with v1 of moon_flutter, it is recommended to create custom wrapper widgets around the moon_flutter widgets that align with your project's specific theming requirements.

There is ongoing background work for v2 which aims to be more modular, scalable and themable.

Resources

Applying theming and overrides

  • Declare tokens variable and optionally override values:
final lightTokens = MoonTokens.light.copyWith(
  colors: MoonColors.light.copyWith(
    piccolo: Colors.blue,
    textPrimary: Colors.amber,
  ),
  typography: MoonTypography.typography.copyWith(
    heading: MoonTypography.typography.heading.apply(
      // Using variable font and bumping down the font weight compared to the
      // baseline 600 for heading.
      fontFamily: "DMSans",
      fontWeightDelta: -1,
      fontVariations: [const FontVariation('wght', 500)],
    ),
  ),
);

final lightTheme = ThemeData.light().copyWith(
    extensions: <ThemeExtension<dynamic>>[MoonTheme(tokens: lightTokens)],
  );
  • Or if needed override widget theming:
final lightTheme = ThemeData.light().copyWith(
  extensions: <ThemeExtension<dynamic>>[
    MoonTheme(tokens: lightTokens).copyWith(
      accordionTheme: MoonAccordionTheme(tokens: lightTokens).copyWith(
        colors: MoonAccordionTheme(tokens: lightTokens).colors.copyWith(
              backgroundColor: Colors.green,
            ),
      ),
    ),
  ],
);
  • Apply the declared theme:
return MaterialApp(
      title: 'Moon Design System example',
      theme: lightTheme,
      home: const HomePage(),
 );

カテゴリー

依存関係

依存関係一覧 2 件

  • moon_icons^1.1.0
  • moon_tokens^0.0.6

ソースリポジトリ

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

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