radial_button 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 91

Buy Me A Coffee

radial_button #

A new Radial Button

Start #

A Flutter plugin for iOS and Android for generating radial buttons for floating action buttons and other parts.

Feedback and Pull Requests are most welcome!

Installation #

Add to pubspec.yaml.

dependencies:
  ...
  radial_button: ^0.1.1

Usage Example #

import circle_floating_button.dart

import 'package:radial_button/widget/circle_floating_button.dart';

Samples #

    var itemsActionBar = [
        FloatingActionButton(
        backgroundColor: Colors.greenAccent,
        onPressed: () {},
        child: Icon(Icons.add),
        ),
        FloatingActionButton(
        backgroundColor: Colors.indigoAccent,
        onPressed: () {},
        child: Icon(Icons.camera),
        ),
        FloatingActionButton(
        backgroundColor: Colors.orangeAccent,
        onPressed: () {},
        child: Icon(Icons.card_giftcard),
        ),
    ];
    
    //....

    CircleFloatingButton.floatingActionButton(
    items: itemsActionBar,
    color: Colors.redAccent,
    icon: Icons.ac_unit,
    duration: Duration(milliseconds: 1000),
    curveAnim: Curves.ease)

    //......

    CircleFloatingButton.completeCircle(
        items: itemsToBody,
        color: Colors.red,
        duration: Duration(milliseconds: 1000),
    curveAnim: Curves.elasticOut)

    //........

    CircleFloatingButton.semiCircle(
        items: itemsToBody,
        color: Colors.red,
        duration: Duration(milliseconds: 1000),
    curveAnim: Curves.elasticOut)

[version: 1.0.0] - Add analysis #

[version: 0.1.6] - Add flutter version #

[version: 0.1.5] - Migrations to RxDart ^0.23.1 #

[version: 0.1.4] - Contributions of Stephen Felt: Correct offset and Inkwell needs material wrapper or else it complains #

[version: 0.1.3] - Add option to inform ur own widget to center of radial #

[version: 0.1.2] - Fix HeroTag problem #

[version: 0.1.1] - Add option to close, and update the Sample #

[version: 0.1.0] - First Stable Version, with functional Sample #

[version: 0.0.6] - Add Sample #

[version: 0.0.6-pre-v0.1] - Thing to be better positioned #

[0.0.4] - Add Images #

[0.0.3] - Add Authors #

[0.0.2] - Add image and Sample in the README.mb #

[0.0.1] - First Release . #

First release, i hope u enjoy =)

example/lib/main.dart

import 'package:flutter/material.dart';

import 'home_page.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutterando Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: HomePage(),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  radial_button: ^1.0.0

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:radial_button/animation/circle_button_animation.dart';
import 'package:radial_button/bloc/bloc_controller.dart';
import 'package:radial_button/widget/circle_button.dart';
import 'package:radial_button/widget/circle_floating_button.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
81
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]
91
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Format lib/animation/circle_button_animation.dart.

Run flutter format to format lib/animation/circle_button_animation.dart.

Format lib/widget/circle_floating_button.dart.

Run flutter format to format lib/widget/circle_floating_button.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
rxdart ^0.23.1 0.23.1 0.24.0-dev.1
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