Skip to content

A Flutter plugin to create views using concentric transition effect.

License

Notifications You must be signed in to change notification settings

pierre-gancel/flutter-concentric-transition

 
 

Repository files navigation

Concentric Transition

A Flutter plugin to create views using Concentric Transition Clipper. Useful for onboarding, page transitions, custom clippers, painters etc.

Inspired by Cuberto - Animated Onboarding Screens

Build Status Pub package Star on GitHub License: MIT

1.gif 2.gif 3.gif 4.gif 5.gif 6.gif

Getting Started

  • Add this to your pubspec.yaml
    dependencies:
    concentric_transition: ^0.1.1
    
  • Get the package from Pub:
    flutter packages get
    
  • Import it in your file
    import 'package:concentric_transition/concentric_transition.dart';
    

Features

  • Concentric PageView
  • Concentric Clipper
  • Concentric PageRoute

Usage

  • Using ConcentricPageView widget
import 'package:concentric_transition/concentric_transition.dart';

ConcentricPageView(
   colors: <Color>[Colors.white, Colors.blue, Colors.red],
   itemCount: 1, // null = infinity
   physics: NeverScrollableScrollPhysics(),
   itemBuilder: (int index, double value) {
       return Center(
           child: Container(
               child: Text('Page $index'),
           ),
       );
   },
);
  • Using ConcentricPageRoute widget
Navigator.push(context, ConcentricPageRoute(builder: (ctx) {
  return NextPage();
}));
  • Using ConcentricClipper widget
import 'package:concentric_transition/concentric_transition.dart';

ClipPath(
  clipper: ConcentricClipper(
    progress: 0.1, // from 0.0 to 1.0
    reverse: false,
    radius: 30.0,
    verticalPosition: 0.82,
  ),
  child: Container(
    color: Colors.green,
  ),
)

Credits

Maintainers

License

License: MIT

About

A Flutter plugin to create views using concentric transition effect.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 92.9%
  • Ruby 3.5%
  • Swift 1.9%
  • Kotlin 1.5%
  • Objective-C 0.2%