패키지, 저장소 및 앱 카테고리 검색

패키지 상세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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.