concentric_transition 0.1.1

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

[0.1.1] - 2020.01.28

  • Fixed ConcentricPageRoute
  • Added more examples
  • Added more screens
  • New Example style

[0.1.0] - 2019.11.16

  • Code improvements
  • Public release

[0.0.1] - 2019.11.15

  • Basic implementation

example/README.md

example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  concentric_transition: ^0.1.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:concentric_transition/concentric_transition.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
59
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
80
Learn more about scoring.

We analyzed this package on Feb 12, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test