पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरण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—के समर्थन के साथ, Storyboard एक सुसंगतता और त्वरित प्रोटोटाइपिंग पर ध्यान केंद्रित टीमों के लिए 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 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।