FLUTTER ECOSYSTEM

mhdmoh/redacted

mhdmoh/redacted open-source repository details.

기밀 처리됨 프로젝트 이미지
Stars
55
Forks
14
최근 푸시(UTC)
2024. 12. 24.
프로젝트 상태
활성
Mohamad Mohamad GitHub avatar
GITHUB User

Mohamad Mohamad ↗

Budapest, Hungary
언어DartSwiftKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 5 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

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

https://github.com/mhdmoh/redacted/blob/main/screenshots/redacted.gif?raw=true

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