Last updated:
0 purchases
increment button
increment_button #
A simple flutter plugin for Slidable Button.
Getting Started #
Add dependency #
dependencies:
increment_button : 0.1.0
copied to clipboard
Simple to use #
import 'package:increment_button/increment_button.dart';
copied to clipboard
Code:
IncrementButton(
width: MediaQuery.of(context).size.width,
buttonWidth: 45.0,
color: Theme.of(context).colorScheme.secondary.withOpacity(0.5),
buttonColor: Theme.of(context).primaryColor,
label: Center(child: Text('🏀')),
onDelta: (change) {
setState(() {
delta = change;
i = i + change;
result = 'New value is $i ';
});
},
),
copied to clipboard
Demo of the component:
based on : https://github.com/husainazkas/slidable_button
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.