v1.0.13redacted
一個可從您自己的組件自動產生載入組件的套件。
mhdmoh/redacted open-source repository details.
{"sdk":"flutter"}^4.0.0—{"sdk":"flutter"}^2.0.0以下為英文專案原文快照,最新內容請造訪 GitHub。
A package that automatically generate a loading widget from your own widget.
https://github.com/mhdmoh/redacted/blob/main/screenshots/redacted.gif?raw=true
First, add redacted as a dependency in your pubspec.yaml file.
dependencies:
redacted: [Latest-Version]
Don't forget to flutter pub get.
ShoeWidget()
.redacted(context: context, redact: true)
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
),
)
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
If you want to hide some widget instead of redacting it then you can do the following:
SomeWidget()
.hide
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.
If you find this package helpful, consider supporting its development:
Your support helps me maintain and improve this package. Thank you! ❤️