control_button 0.0.1 copy "control_button: ^0.0.1" to clipboard
control_button: ^0.0.1 copied to clipboard

outdated

Control button with adjustable sections

control_button #

Control button with adjustable sections

About this version #

This widget will allow you to create templates for different kind of controllers.

In this version you can adjust:

  • Elevation of the buttons.
  • Size of the central button.
  • Size of the external buttons.
  • Color of the central button.
  • Color of the external buttons.
  • Change the direction of the shadow.
  • Functions of the sections and central button.

Usage #

To use this plugin, add control_button as a dependency in your pubspec.yaml file

dependencies:
  control_button: ^0.0.1

Install it #

$ flutter pub get

Import it #

import 'package:control_button/control_button.dart';

Example #

See example/example.dart

ControlButton(
    sectionOffset: 45,
    externalDiameter: 300,
    internalDiameter: 120,
    mainAction: () => print('Selected Center'),
    sections: [
        () => print('Selected 1'),
        () => print('Selected 2'),
        () => print('Selected 3'),
        () => print('Selected 4'),
    ],
)
7
likes
30
pub points
72%
popularity

Publisher

verified publisherversion-one.com

Control button with adjustable sections

Homepage

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on control_button