Search packages, repositories and app categories

redacted cover
Package detailsv1.0.13

redacted

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

AndroidiOSWebmacOSWindowsLinux
30-day downloads
3.4K
Likes
563
Pub points
140

Install package

flutter pub add redacted

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that automatically generates a loading widget based on a user-defined custom widget. It simplifies the process of creating consistent, reusable loading indicators by transforming any provided widget into a dynamic loading state. Ideal for developers seeking to streamline UI development with minimal boilerplate. The package supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux, ensuring cross-platform compatibility. It is particularly useful in applications requiring frequent loading states across multiple screens.

Use cases

  • Creating reusable loading indicators
  • Automating loading state generation
  • Enhancing UI consistency across screens
  • Simplifying repetitive loading widget code
  • Cross-platform loading components

Key features

  • Auto-generates loading widgets from custom designs
  • Supports all Flutter platforms
  • Minimal setup required
  • Reusable across multiple widgets
  • Integrates seamlessly with existing UI

Suitable for

  • UI developers
  • Flutter beginners
  • Apps with frequent loading states
  • Cross-platform projects
  • Teams prioritizing design consistency

Considerations

  • Requires a base widget to generate loading state
  • Limited customization beyond input widget
  • May increase bundle size slightly
  • Depends on proper widget structure
  • Not suitable for complex animations without additional configuration

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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! ❤️

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.