radial_button 1.0.1 radial_button: ^1.0.1 copied to clipboard
The purpose of Radial Button is facilitating the creation for FloatingActionButton and for the purpose that you need, using complete circle, semi-circle.
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)