redacted 1.0.13 copy "redacted: ^1.0.13" to clipboard
redacted: ^1.0.13 copied to clipboard

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

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]
copied to clipboard

Don't forget to flutter pub get.

Example #

ShoeWidget()
    .redacted(context: context, redact: true)
copied to clipboard

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
  ),
)
copied to clipboard

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
copied to clipboard

Hide #

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

SomeWidget()
  .hide
copied to clipboard

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

517
likes
150
points
1.68k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.16 - 2025.03.31

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

Repository (GitHub)

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

flutter, flutter_svg, measure_size

More

Packages that depend on redacted