jhs_transitions 0.1.1
jhs_transitions: ^0.1.1 copied to clipboard
A package project to handle navigation between pages, with some animations.
Transition Package - @hajduksanchez #
This package help you to handle navigation between pages, using some animations and configuration with some params.
Install the package:
flutter pub add jhs_transitions
Basic usage #
Basic example of the navigation
HsTransitions(
context: context,
child: const SecondPage(), // Final page
);
With animation #
Navigation using a specific animation
HsTransitions(
context: context,
child: const SecondPage(), // Final page
animation: AnimationType.fadeIn,
);
With duration #
Animation duration to handle the time of the transition
HsTransitions(
context: context,
child: const SecondPage(), // Final page
animation: AnimationType.fadeIn,
duration: const Duration(milliseconds: 300)
);
With replacement #
This replacement help to navigate and delete the previous page
HsTransitions(
context: context,
child: const SecondPage(), // Final page
animation: AnimationType.fadeIn,
duration: const Duration(milliseconds: 300),
replacement: true
);