onatcipli / ripple_navigation

It helps to navigate with ripple animation for flutter applications

Home Page:https://pub.dev/packages/ripple_navigation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ezgif com-gif-maker

ripple_navigation

Navigate with ripple animation effect

Usage

import 'package:ripple_navigation/ripple_navigation.dart';

After that select the widget you want to start your ripple and wrap with RippleLocation widget.

!You can check from the example project!

RippleLocation(
    rippleController: rippleController,
    child: FloatingActionButton(
        onPressed: onPressed,
        tooltip: 'Increment',
        child: Icon(Icons.add),
    ),
)

Add your controller to your widget

GlobalKey<RippleLocationState> rippleController = GlobalKey();

after you provide both you can navigate with pushRippleTransitionPage(context,widget) method

rippleController.currentState.pushRippleTransitionPage(
  context,
  SecondPage(),
);

or just animate your ripple

rippleController.currentState.forwardRipple();

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.

About

It helps to navigate with ripple animation for flutter applications

https://pub.dev/packages/ripple_navigation

License:MIT License


Languages

Language:Dart 94.5%Language:Swift 3.9%Language:Kotlin 1.2%Language:Objective-C 0.4%