搜尋套件、儲存庫與 APP 分類

redacted 封面
套件詳情v1.0.13

redacted

一個可從您自己的組件自動產生載入組件的套件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
3360
喜歡數
563
Pub 分數
140

安裝套件

flutter pub add redacted

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,可根據使用者定義的自訂組件自動產生載入組件。它透過將任何提供的組件轉換為動態載入狀態,簡化了建立一致且可重複使用的載入指示器的過程。非常適合希望以最少樣板程式碼簡化 UI 開發的開發者。此套件支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux,確保跨平台相容性。在需要在多個畫面中頻繁使用載入狀態的應用程式中特別實用。

適用情境

  • 建立可重用的載入指示器
  • 自動化加載狀態生成
  • 增強螢幕間的UI一致性
  • 簡化重複的載入元件程式碼
  • 跨平台加載組件

主要特色

  • 從自定設計自動產生載入元件
  • 支援所有 Flutter 平台
  • 所需設定最少
  • 可在多個小部件之間重複使用
  • 與現有使用者介面無縫整合

適合對象

  • UI 開發人員
  • Flutter 初學者
  • 頻繁加載狀態的應用
  • 跨平台專案
  • 注重設計一致性的團隊

使用建議

  • 需要一個基礎組件來生成加載狀態
  • 超出輸入小部件的有限自訂
  • 可能會略微增加捆綁大小
  • 依賴於正確的控件結構
  • 不適用於複雜的動畫,除非進行額外設定

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

A package that automatically generate a loading widget from your own widget.

Usage

First, add redacted as a dependency in your pubspec.yaml file.

dependencies:
  redacted: [Latest-Version]

Don't forget to flutter pub get.

Example

ShoeWidget()
    .redacted(context: context, redact: true)

Styling

You can change the color and the duration of the animation by using RedactedConfiguration:

ShoeWidget().redacted(
  context: context,
  redact: true,
  configuration: RedactedConfiguration(
    animationDuration : const Duration(milliseconds: 800), //default
  ),
)
Unredacted

If you have some widget that you want to keep the same for example you have a title and a value and want to keep the title but redact the value then you can do the following:

SomeWidget()
  .unredacted
Hide

If you want to hide some widget instead of redacting it then you can do the following:

SomeWidget()
  .hide

Current Limitations

The widgets that are currently supported in this pacakge are: Text , Column , Row , Stack , Container , Align , Positioned , Wrap , Image , Center , SizedBox , Padding , Expanded , AspectRatio , InkWell and StatelessWidget.

More widgets will be added in the future.

💖 Support My Work

If you find this package helpful, consider supporting its development:

Buy Me a Coffee

Your support helps me maintain and improve this package. Thank you! ❤️

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。