v0.0.6flutter_flip_card
카드 뒤집기 애니메이션을 제공하는 컴포넌트입니다. 제품의 세부 정보를 숨기거나 표시하는 데 사용할 수 있습니다.
154좋아요 4.5천30일 다운로드150Pub 점수
AndroidiOSWebmacOSWindowsLinux
카드 뒤집기 애니메이션을 제공하는 컴포넌트입니다. 제품의 세부 정보를 숨기거나 표시하는 데 사용할 수 있습니다.
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A widget that does transition between two children in a flipping manner.
| FlipCard | GestureFlipCard |
|---|---|
| FlipCard | GestureFlipCard |
To use flutter_flip_card, first start by importing the package.
import 'package:flutter_flip_card/flutter_flip_card.dart';
FlipCard A component that provides a flip card animation
GestureFlipCard A component that provides a gsture(Swipe) flip card animation
FlipCard(
rotateSide: RotateSide.bottom,
onTapFlipping: false, //When enabled, the card will flip automatically when touched.
axis: FlipAxis.horizontal,
controller: con1,
frontWidget: Center(
child: Container(
height: 200,
width: 140,
child: Image.asset(
'image/01.png',
fit: BoxFit.fitHeight)
)
),
backWidget: Container(
height: 200,
width: 140,
child: Image.asset(
`'image/02.jpg',
fit: BoxFit.fitHeight)
)
)
final controller = FlipCardController();
// Flip the card programmatically
controller.flipcard();
GestureFlipCard(
animationDuration: const Duration(milliseconds: 300),
axis: FlipAxis.horizontal,
controller:cong // used to ccontrol the Gesture flip programmatically
enableController : false // if [True] if you need flip the card using programmatically
frontWidget: Center(
child: Container(
width: 300,
height: 200,
child: Image.asset(
'image/011.jpg',
fit: BoxFit.contain,
),
),
),
backWidget: Container(
width: 300,
height: 200,
child: Image.asset(
'image/11.jpg',
fit: BoxFit.contain,
),
),
),
Passionate #Flutter, #Android Developer. #UI Designer.
Please open an issue if you find any bugs.
You like the package ? Buy me a coffee :)