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

パッケージ詳細v1.0.0

storyboard

アプリからウィジェットを分離することで、Flutterユーザーインターフェースの反復開発を高速化します。

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

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

flutter pub add storyboard

パッケージ概要

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

Storyboard は、開発者がメインアプリとは別に個々のウィジェットを分離してプレビューできるようにすることで、ユーザーインターフェースの反復的な開発を高速化するためのFlutterパッケージです。コンポーネント駆動型UI開発をサポートしており、UIコンポーネントを独立して設計・テスト・最適化しやすくなります。Android、iOS、Web、macOS、Windows、Linuxといったすべての主要プラットフォームに対応しており、一貫性と迅速なプロトタイピングに注力するチームにとってUIワークフローを簡素化します。Flutterのホットリロードとシームレスに統合されており、デザインの反復プロセスにおける生産性を向上させます。

用途

  • UI コンポーネントテスト
  • 迅速なプロトタイピング
  • デザインシステム開発
  • 共同UIレビュー
  • 隔離されたウィジェットのデバッグ

主な機能

  • ウィジェットの分離
  • ライブプレビュー
  • クロスプラットフォーム対応
  • ホットリロード統合
  • カスタマイズ可能なストーリー表示

適している対象

  • UIデザイナー
  • フロントエンド開発者
  • デザインシステムチーム
  • Flutter ビギナー
  • アジャイル開発チーム

注意事項

  • 各ウィジェットごとにセットアップが必要です
  • 本番ビルドには適していません
  • UIに焦点を当てたワークフローに限定
  • プロジェクトの複雑さを増加させる可能性があります
  • 開発時のみに最適

元の README

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

Storyboard

pub package

Faster iterative development of Flutter user interfaces by isolating widgets from your app, inspired by Storybook. Stage a collection of Widgets outside their normal app context. By repeating the same widget in various configurations or states in a single view, the effect of code changes to the Widget can quickly be assessed. This is especially useful for cosmetic changes, but also effective for behavior changes.

Adding Stories

The first step is to build a few stories, from which your Storyboard will be composed. Building stories is done by providing concrete children of the Story abstract class, e.g.

import 'package:mypackage/contacts.dart';
import 'package:storyboard/storyboard.dart';

class ContactsListStory extends Story {

  @override
  List<Widget> get storyContent {
    return [ContactsList()];
  }
}

At a minimum, the abstract storyContent getter, which provides the widgets to be observed, must be overridden. Overriding the title will alter the heading presented for the story. Overriding isFullScreen (or implementing FullScreenStory) will instruct the Widget to render itself within a new Navigator route without scaffolding.

The build method itself can also be overridden to completely customize the display of the Story.

Building a Storyboard

A storyboard is little more than a collection of stories.

import 'package:flutter/material.dart';
import 'package:storyboard/storyboard.dart';
import 'stories/contacts_story.dart';

void main() {
  runApp(MaterialApp(
      home: Storyboard([
        ContactsListStory(),
        ContactsCardStory(contact: Contact("alice")),
        ContactsCardStory(contact: Contact("bob")),
        ContactsCardStory(contact: Contact("charlie")),
  ])));
}

Or more simply, run the convenience StoryboardApp directly.

void main() {
  runApp(StoryboardApp([
    ContactsListStory(),
    ContactsCardStory(contact: Contact("alice")),
    ContactsCardStory(contact: Contact("bob")),
    ContactsCardStory(contact: Contact("charlie")),
  ]));
}

Further reading

See the article Storyboarding Widgets in Flutter.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

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