router_animations

Creator: coderz1093

Last updated:

0 purchases

router_animations Image
router_animations Images
Add to Cart

Description:

router animations

Usage #
如何在项目使用? #
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text(widget.title)),
body: ListView(
children: [
GestureDetector(
onTap: () {
Navigator.of(context).push(AnimationsRoute(
const SecondPage(),
transitionsType: TransitionsType.rightToLeft,
));
},
child: const ListTile(title: Text('跳转')),
),
],
),
);
}
}
copied to clipboard
注意:翻转动画需要当前页面的widget,其他动画不需要

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator