Route Transitions Lz Custom

Route Transitions Lz Custom is a Dart package for adding custom route transitions to your Flutter applications.

Features

  • Customizable page transition animations.
  • Supports both standard navigation and navigation with replacement.

Usage

import 'package:flutter/material.dart';
import 'package:route_transitions_lz_custom/route_transitions_lz_custom.dart';

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('My Home Page'),
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            // Navega a la nueva página con una transición de desvanecimiento.
            RouteTransitionsLzCustom(
              context,
              child: MyNewPage(),
              animation: AnimationType.fadeIn,
            );
          },
          child: Text('Open New Page'),
        ),
      ),
    );
  }
}

class MyNewPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('My New Page'),
      ),
      body: Center(
        child: Text('This is my new page.'),
      ),
    );
  }
}

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Make sure you have Flutter and Dart installed on your local machine.

Additional Information

  • For more information on how to use the package and examples, check the /example folder in the package repository.

Installation

To use this package in your Flutter project, add it as a dependency in your pubspec.yaml file:

dependencies:
  route_transitions_lz_custom: ^1.0.0```