page_route_transition
3.1.2, released 5 years ago by an unverified publisher
A Page Route Transition library that helps implement page transition animations.
WASM-ready
What it does
Provides pre-built page transition animations like right-to-left, fade, scale, and bottom-to-top for Flutter navigation. Allows pushing routes with custom visual effects and durations.
AI-written summary of version 3.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to add smooth animations when navigating between pages.
- You prefer an imperative approach to page transitions using custom route builders.
Skip it when
- You are using a declarative routing solution like GoRouter that handles its own page transitions.
- You require complex, interactive, physics-driven shared element transitions.
Strengths
- Simple API with multiple built-in transition effects (fade, scale, slide, etc.).
- Easy setup with minimal boilerplate required.
Weaknesses
- Limited to predefined transition effects.
- Imperative usage may not integrate seamlessly with advanced declarative routers.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:flutter/material.dart';
import 'package:transition/page_route_transition.dart';
void main() {
runApp(MaterialApp(home: MyApp()));
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: ElevatedButton(
onTap: () {
PageRouteTransition.effect = TransitionEffect.rightToLeft;
PageRouteTransition.push(context, TargetScreen());
},
child: Text('Next Page'),
),
),
);
}
}Alternatives
Packages that do the same job and could replace page_route_transition.
- page_transition
It provides a similar set of ready-to-use page transition animations for Flutter navigation.
77Compare