FLUTTER ECOSYSTEM

ThomasEcalle/delayed_display

지연 후 자식을 표시하고 아름다운 페이드 및 슬라이딩 애니메이션을 제공하는 위젯입니다.

delayed_display 프로젝트 이미지
Stars
30
Forks
7
최근 푸시(UTC)
2021. 7. 5.
프로젝트 상태
활성
Ecalle Thomas GitHub avatar
GITHUB User

Ecalle Thomas ↗

언어DartHTMLSwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 2 개
  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

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

README 펼치기 / 접기

delayed_display

A widget that enables you to display a child after a delay and with beautiful fading and sliding animation.

examples

https://raw.githubusercontent.com/ThomasEcalle/delayed_display/master/documentation/horizontal.gif https://raw.githubusercontent.com/ThomasEcalle/delayed_display/master/documentation/vertical.gif

How does it works

All you have to do is to use the widget DelayedDisplay like this for example :

DelayedDisplay(
  delay: Duration(seconds: 1),
  child: Text(
    "Hello",
    style: TextStyle(
      fontWeight: FontWeight.bold,
      fontSize: 35.0,
      color: Colors.white,
    ),
  ),
),

And ... That's all ! It will automatically handle fading and sliding animation and will make the Text appear after 1 second delay.

Let's customize it !

Here are the accepted parameters :

Name Type Usage Required Default Value
child Widget The Widget that needs to appear yes null
delay Duration The duration before showing the widget (and animating it) false null
fadingDuration Duration The duration of the fading animation false const Duration(milliseconds: 800)
slidingCurve Curve The curve of the sliding animation false Curves.decelerate
slidingBeginOffset Offset The offset from where the sliding animation will start false const Offset(0.0, 0.35)