FLUTTER ECOSYSTEM

ThomasEcalle/bouncing_widget

위젯에 반동 애니메이션을 추가할 수 있는 위젯입니다.

bouncing_widget 프로젝트 이미지
Stars
43
Forks
13
최근 푸시(UTC)
2023. 10. 11.
프로젝트 상태
활성
Ecalle Thomas GitHub avatar
GITHUB User

Ecalle Thomas ↗

언어DartHTMLSwiftKotlinObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

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

원본 README

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

README 펼치기 / 접기

bouncing_widget

A widget that enables you to add a bouncing animation on a widget.

Example

https://raw.githubusercontent.com/ThomasEcalle/bouncing_widget/master/documentation/gif_bouncing.gif

How does it work ?

You just have to encapsulate the widget of your choice with a BouncingWidget.

You may also use a scaleFactor to customize the scaling effect as in the gif example. Or even customize the animation's duration with the duration parameter (200 milliseconds by default).

BouncingWidget(
  duration: Duration(milliseconds: 100),
  scaleFactor: 1.5,
  onPressed: () {
    print("onPressed");
  },
  child: Text(
    "Hello !",
    style: TextStyle(
      color: Colors.white,
      fontWeight: FontWeight.bold,
      fontSize: 35,
    ),
  ),
),