Search packages, repositories and app categories

GitHub repositorytiamo/flutter-concentric-transition

flutter-concentric-transition

Flutter plugin for creating views using the concentric transition effect.

flutter-concentric-transition project cover
Stars
239
Forks
53
Last push (UTC)
Sep 9, 2022
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

➰ 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: ^1.0.3
    
  • 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

Vladyslav Korniienko GitHub avatar
GitHub author

Vladyslav Korniienko ↗

@pointgroup-labs
LanguagesDartHTMLSwiftKotlinObjective-C

Categories

Packages published by this repository

Dependencies used

Dependency list 3 items

  • flutter{"sdk":"flutter"}
  • flutter_lintsDevelopment^1.0.4
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗