A simple animated round button

  Animation, Button

AnimatedConnectingButtonWidget

AnimatedConnectingButtonWidget is a simple and customizable animated connecting button widget AnimatedConnectingButtonWidget

The source code is 100% Dart.

Motivation

I need some clean animated connectingbuttong widget my Flutter application.

Getting started

Installing

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

This library is posted in pub.dev

pubspec.yaml

dependencies:  
	animated_round_button_flutter: ^1.0.0

Usage

After Importing this library, you can directly use this view in your Widget tree

import 'package:animated_round_button_flutter/animated_round_button_flutter.dart';
AnimatedConnectingButtonWidget(
          width: 220,
          height: 220,
          onConnectingButtonTap: () {
            print("got button clicked");
          },
          buttonText: TextSpan(
              text: 'GO', style: TextStyle(color: Colors.black, fontSize: 32)),
        )

Customization

Depending on your view you may want to tweak the UI. For now you can these custom attributes

PropertyTypeDescription
‘width’doublewidth for connecting button
‘height’doubleheight for connecting button
‘buttonText’TextSpanTextSpan Widget to add custom text on connecting button

Screenshots

Screenshot 2021-08-02 at 9 50 43 PM
rounded button animation

Contributing

  1. Fork it (https://github.com/sorbh/animated_round_button_flutter/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request
pub package

Download animated round button source code on GitHub