redacted 0.0.7 copy "redacted: ^0.0.7" to clipboard
redacted: ^0.0.7 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]

Don't forget to flutter pub get.

Example #

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

Styling #

There is three styles you can choose from: ShimmerStyle, GlowStyle and StaticColorStyle

Shimmer Glow Static

you can set the style like this:

ShoeWidget().redacted(
  context: context,
  redact: true,
  configuration: RedactedConfiguration(
    style: GlowStyle(
      color: Colors.grey, //default
      duration: const Duration(milliseconds: 800), //default
      inheritColor: false, //default
    ),
  ),
)

Current Limitations #

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

More widgets will be added in the future.

440
likes
0
pub points
92%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, measure_size, shimmer

More

Packages that depend on redacted