カテゴリー・パッケージ・リポジトリを検索

nes_ui のカバー
パッケージ詳細v0.32.0

nes_ui

古いレトロゲーム機を意識したUIライブラリ

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

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

flutter pub add nes_ui

パッケージ概要

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

クラシックなNESスタイルのデザインからインスパイアされた、現代のアプリにレトロなビデオゲームコンソールの美学をもたらすFlutterウィジェットライブラリです。ピクセルフォント、ヴィンテージカラーパレット、スキャンラインやCRT画面歪みなどのノスタルジックな視覚効果を備えたカスタマイズ可能なUIコンポーネントのコレクションを提供します。ゲーム、テーマアプリ、またはレトロな雰囲気を演出したいクリエイティブプロジェクトに最適です。このパッケージはすべての主要プラットフォームをサポートしており、デバイス間で一貫したレトロスタイルを保証します。

用途

  • レトロテーマのモバイルゲーム
  • ヴィンテージ風のアプリインターフェース
  • インタラクティブなデジタルアートインスタレーション
  • ノスタルジックなデザインの教育アプリ
  • ピクセルアートの美学を持つクリエイティブなプロトタイプ

主な機能

  • NES風のビジュアルスタイル
  • ピクセル単位の正確な UI コンポーネント
  • スキャンラインとCRTエフェクト
  • クロスプラットフォーム互換性
  • カスタマイズ可能なレトロカラースキーム
  • レスポンシブレトロレイアウトのサポート

適している対象

  • レトロゲーム体験を構築する開発者
  • デザイナーがノスタルジックなUIトレンドを探求しています
  • 独自のビジュアルアイデンティティを求めるアプリ作成者
  • Flutter初心者がウィジェットカスタマイズを学ぶ
  • 遊び心があり、ローファイな美学を目指すプロジェクト

注意事項

  • プロフェッショナルまたはミニマリスティックなデザインのニーズに合わない可能性があります
  • 古いデバイスにおける視覚効果のパフォーマンスへの影響
  • レトロスタイルにおけるアクセス機能の制限
  • 読みやすさのために、コントラストの調整に注意が必要です
  • コンテンツが多く、データ駆動型のアプリケーションには適していません

元の README

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

Nes

style: very good analysis Powered by Mason License: MIT

UI library inspired by old retro video game console

Our top sponsors

Check out these amazing sponsors that support my work!


Invertase

Become a featured sponsor!

Installation 💻

❗ In order to start using Nes UI you must have the Flutter SDK installed on your machine.

Add nes_ui to your pubspec.yaml:

dependencies:
  nes_ui:

Install it:

flutter packages get

Configure it

Nes UI provides a ThemeData that you can add to your MaterialApp, that theme can be obtained from the flutterNesTheme method:

import 'package:nes_ui/nes_ui.dart';

MaterialApp(
  theme: flutterNesTheme(),
);

Check the many arguments on the method to customize the theme.

Font

Nes UI uses the Press start 2P from the Google Fonts package.

Google fonts will fetch the files in runtime over http. To keep that behaviour and ensure that it works, be sure to call WidgetsFlutterBinding.ensureInitialized(); at your main method.

For more info on that follow this Google Fonts package guide.

If instead you want to bundle the fonts in the app and avoid http requests, follow this other guide.

You also should include the font license on LicenseRegistry when bundling it on the app.

For example:

void main() {
  LicenseRegistry.addLicense(() async* {
    final license = await rootBundle.loadString('google_fonts/OFL.txt');
    yield LicenseEntryWithLineBreaks(['google_fonts'], license);
  });

  runApp(...);
}

More about font license here.

Widget gallery

Find all the widgets in this catalog made on Widgetbook.

Getting help

If you need any help or have suggestions, join our Discord.

Material Customized Widgets

Nes UI tries to use the most out of material that it can, customizing its looks to fit the package's desired look, for example, here is a list of some of the widgets that Nes ui customizes:

  • Text
  • TextField/TextFormField
  • Divider
  • ...

Custom Widgets

Some widgets are too different from the Material look and structure, making the customization of the material widget not really possible, so many widgets are built from scratch, here is a list of some of the widgets that Nes UI provides:

  • NesButton
  • NesCheckbox
  • NesContainer
  • NesConfirmDialog
  • NesIcon
  • NesSelectionList
  • NesIterableOptions
  • ...

Custom Extension

Nes UI is built taking advantage of the Theme Extensions and custom extensions can also be provided. In order to provide your own extension, you need to create it, and provide it to the flutterNesTheme:

    theme: flutterNesTheme(
      brightness: state.lightMode ? Brightness.light : Brightness.dark,
      customExtensions: [
        CustomExampleExtension.light, // Your custom extension goes here.
      ],
    ),

For more information, look at the example code.

Support this project 💙

カテゴリー

依存関係

依存関係一覧 5 件

ソースリポジトリ

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