custom_route_transition_jaag 0.0.2 custom_route_transition_jaag: ^0.0.2 copied to clipboard
Este es un proyecto de prueba para aprender a subir paquetes a pub.dev. Un paquete en el que se puede hacer un cambio de ruta en el navigator aplicando una de dos posibles animaciones básicas.
custom_transition #
A new Flutter package project.
Getting Started #
This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Example #
return Center(
child: MaterialButton(
color: Colors.black54,
shape: StadiumBorder(),
padding: EdgeInsets.symmetric(
horizontal: 20
),
child: Text(
'Ir a página 2',
style: TextStyle(
color: Colors.white
),
),
onPressed: (){
CustomTransition(
context: context,
child: Page2(),
animationType: AnimationType.fadeIn,
duration: Duration(milliseconds: 550)
);
},
)
);