redacted 0.0.6
redacted: ^0.0.6 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.
[screenshots/redacted.gif?raw=true]
# Usage First, add `redacted` as a dependency in your pubspec.yaml file.dependencies:
redacted: ^0.0.6
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
[screenshots/shimmer.gif?raw=true] [screenshots/glow.gif?raw=true] [screenshots/static.gif?raw=true]
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
),
),
)