GithubHelp home page GithubHelp logo

ayyoub-coder / flutter_circular_animator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ezaldeen99/flutter_circular_animator

0.0 0.0 0.0 4.72 MB

A pre-built Flutter circular animator can suit your new profile view or your any other widgets

License: MIT License

Kotlin 1.39% Swift 4.54% Objective-C 0.43% Dart 93.64%

flutter_circular_animator's Introduction

A new Flutter widget animator inspired by this lottie animation. [https://lottiefiles.com/3619-profile]

pub

person clock person

Features

Dynamic Animation

The widget helps to animate any widget you have such as a profile or an image or anything else with a simple modern animation to help you build a better UI in your next app.

Configurable Widget

you can customize anything in this widget, inner and outer colors, icons size and animation duration to suits your applications use-case.

Supports all flutter curves animations

Now you can change the circles animations type, you can see all the supported animations here curves-animation

Change animation direction

Choose the animation direction, reverse or same direction

Installing

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

dependencies:
  widget_circular_animator: _latest_version

Now in your Dart code, you can use:

import 'package:widget_circular_animator/widget_circular_animator.dart';

Details see pub.dev.

Usage

The widget_circular_animator package itself is very simple to use, just like a common statefulWidget:

      Center(
          child: WidgetCircularAnimator(
            child: Container(
              decoration: BoxDecoration(
                  shape: BoxShape.circle, color: Colors.grey[200]),
              child: Icon(
                Icons.person_outline,
                color: Colors.deepOrange[200],
                size: 60,
              ),
            ),
        )),

See the full example circular_animator_example.

Supported animations

This widget supports all flutter curve animations. You can see all the supported animations here https://api.flutter.dev/flutter/animation/Curves-class.html.

Widget Properties

child

Widget

( required )

widget_circular_animator is mainly configured by passing a widget value to be the widget that we will surround with our animations.

innerIconsSize

double

Change the icons size for the inner circle

outerIconsSize

double

Change the icons size for the outer circle

innerAnimation

Curve

Please use the animations class in the current library for example

          innerAnimation: Curves.bounceIn,

outerAnimation

Curve

Please use the animations class in the current library for example.

          outerAnimation: Curves.linear,

innerColor

Color

Change the inner circle stroke color

outerColor

Color

Change the outer circle stroke color

innerAnimationSeconds

int

Change the inter circle animation duration

outerAnimationSeconds

int

Change the outer circle animation duration

size

double

The whole widget width and height.

reverse

double

The animation direction.

Blog

widget_circular_animator_medium


If you have any suggestions or requests, please open an issue.

flutter_circular_animator's People

Contributors

ezaldeen99 avatar gaganyadav80 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.