rc_control

Creator: coderz1093

Last updated:

0 purchases

rc_control Image
rc_control Images
Add to Cart

Description:

rc control

rc_control #
Control button with adjustable sections
About this package #
This widget will allow you to create templates for different kind of controllers.
Variables #



Variable
Type
Required




externalDiameter
double
yes


internalDiameter
double
yes


mainAction
Function
yes


sections
List
yes


elevation
double
optional


dividerThickness
double
optional


externalColor
Color
optional


internalColor
Color
optional


dividerColor
Color
optional


shadowDirection
Offset
optional


sectionOffset
FixedAngles
optional



Images #



Basic
More Sections
Customizable










Usage #
To use this plugin, add control_button as a dependency in your pubspec.yaml file
dependencies:
control_button: ^0.0.2
copied to clipboard
Install it #
$ flutter pub get
copied to clipboard
Import it #
import 'package:control_button/control_button.dart';
copied to clipboard
Example #
See example/example.dart
ControlButton(
sectionOffset: FixedAngles.Zero,
externalDiameter: 300,
internalDiameter: 120,
dividerColor: Colors.blue,
elevation: 2,
externalColor: Colors.lightBlue[100],
internalColor: Colors.grey[300],
mainAction: () => updateState('Selected Center'),
sections: [
() => updateState('Selected 1'),
() => updateState('Selected 2'),
() => updateState('Selected 3'),
() => updateState('Selected 4'),
],
)
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator