v2.0.1route_transitions
라우팅을 위한 유용한 애니메이션을 포함하는 플러터 라이브러리입니다.
67좋아요 26230일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
유용한 애니메이션과 라우팅을 위한 친절한 함수를 포함하는 플러터 라이브러리 🚦
{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Now supports latest dart null safety . This package has been rewritten to use friendly route functions to navigate even with your favourite route transition and ability to build custom animations with tansitionBuilder !
import 'package:route_transitions/route_transitions.dart';
ElevatedButton(
onPressed: () => pushWidget(
newPage: Dashboard(),
context: context,
),
child: Text("Push page"),
),
For actual examples , check example/lib/main.dart
customAnimationWidgetcustomAnimationWidget(
newPage: YourPage(),
context: context,
transitionBuilder:
(context, animation, secondaryAnimation, child) {
var begin = 0.0;
var end = 1.0;
var curve = Curves.easeIn;
var tween = Tween(begin: begin, end: end)
.chain(CurveTween(curve: curve));
return ScaleTransition(
scale: animation.drive(tween),
child: child,
);
},
)