v2.0.1route_transitions
ルーティング用の便利なアニメーションを含むFlutterライブラリ。
67いいね 26230日間ダウンロード160Pub ポイント
AndroidiOSWebmacOSWindowsLinux
便利なアニメーションとルーティング用の親しみやすい関数を含むFlutterライブラリ 🚦
{"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,
);
},
)