Navigatiox
A Flutter package that provides a collection of custom page transition animations to enhance the navigation experience in your Flutter applications. This package includes various transitions such as flip, slide, rotate, and more, allowing developers to create visually appealing navigation flows.
Features
- *Wide array of animations: Choose which animation suits your app's design.
- Customizable: Control animation duration, direction, and starting positions.
- Lightweight: Designed to be easy to integrate into existing Flutter applications.
Installation
To use this package, add it to your pubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
navigatiox: ^0.0.4 # Replace with the latest version
Then, run the following command to install the package:
flutter pub get
Usage
To use the package, simply import it in your Dart code:
import 'package:navigatiox/navigatiox.dart';
Here's how to use the Rotate animation for page navigation:
ElevatedButton(
onPressed: () {
CustomNavigator.push(
FlipAnimation(
context: context,
nextPage: const SecondScreen(),
duration: const Duration(milliseconds: 500),
axis: AxisDirection.left,
fadeIn: true,
forward: false,
),
);
},
child: const Text('Flip Transition'),
)
Contributing
Contributions are welcome!
Codebase is available at https://github.com/Apurba-Nath-cpu/navigatiox.
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.