add_remove_continuous_pressure 1.0.1
add_remove_continuous_pressure: ^1.0.1 copied to clipboard
Add a widget that contains an increase button, a decrease button, and a widget that displays the value. You can increase or decrease the number by holding down or clicking once.
example/add_remove_continuous_pressure_example.dart
import 'package:add_remove_continuous_pressure/add_remove_continuous_pressure.dart';
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
home: Material(
child: AddRemove(
min: 1,
max: 10,
data: 20,
speed: 500,
spacing: 8,
expanded: false,
childAdd: Text("Add"),
axis: Axis.horizontal,
childRemove: Text("Remove"),
event: (data) => print(data),
childNumber: (data) => Text(data),
),
),
),
);
}