Search packages, repositories and app categories

Package detailsv0.0.1+2

animated_page_transition

This package is for animated page transitioning. This is easy to use package. Add animation_page_transition dependency into the pubspec.yaml file. Then, then import package into the implementation file/s and you can implement animated page transition very easily.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
7
Likes
40
Pub points
140

Install package

flutter pub add animated_page_transition

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A simple Flutter package for adding smooth, customizable page transitions between screens. It enables developers to implement animated navigation with minimal setup by integrating a single dependency. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it ideal for cross-platform apps. With intuitive APIs, it allows easy integration into existing projects without complex configurations. Perfect for enhancing user experience through fluid screen transitions.

Use cases

  • Adding smooth navigation between screens
  • Enhancing app UI with visual feedback
  • Creating engaging onboarding flows
  • Implementing custom slide/fade animations
  • Improving user experience in mobile and web apps

Key features

  • Easy integration via pubspec.yaml
  • Supports multiple platforms
  • Pre-built animation types
  • Minimal boilerplate code
  • Customizable transition duration and curve
  • Cross-platform compatibility

Suitable for

  • Beginner Flutter developers
  • Apps requiring polished navigation
  • UX-focused applications
  • Cross-platform projects
  • Developers seeking quick animation implementation

Considerations

  • Limited to basic transition types
  • No advanced animation customization
  • Depends on external library stability
  • May require additional styling for complex effects
  • Not suitable for highly complex animation sequences

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Animated page transition

This package for page transition animation. With this package you can give have smooth page transitions in your apps. chack out the video given below!!!

VID_20220201122805

Usage

Add animation_page_transition dependency into the pubspec.yaml file

then import package into the implementation file/s.

import 'package:animated_page_transition/animated_page_transition.dart';

You can implement animated page transition very easily.

First of all wrap your button with [PageTransitionButton] widget, example code is given below:

To use [PageTransitionButton] you have to add [TickerProviderStateMixin] into your widget.

class HomeScreen extends StatefulWidget {
  const HomeScreen({Key? key}) : super(key: key);

  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: PageTransitionButton(
          vsync: this,
          child: Container(
            height: 120,
            width: 120,
            decoration: BoxDecoration(
              color: const Color(0xFFFF9735),
              borderRadius: BorderRadius.circular(10),
            ),
          ),
          nextPage: const SecondScreen(),
        ),
      ),
    );
  }
}

Then wrap the scaffold of the second screen with [PageTransitionReceiver] widget where you want to navigate it as given below:

class SecondScreen extends StatelessWidget {
  const SecondScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return PageTransitionReceiver(
      scaffold: const Scaffold(
        backgroundColor: Color(0xFFFF9735),
      ),
    );
  }
}

And now you are ready to go!!!

Have fun and happy coding ;)

Categories

Source repository

Projects using this package

No data available yet.