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

outdated

Resizable Counter Button. Changeable Background Colors & Icons.

Usage #

import 'package:flutter/material.dart';
import '../CounterButton.dart';

class ExampleWidget extends StatefulWidget {
  const ExampleWidget({Key? key}) : super(key: key);

  @override
  State<ExampleWidget> createState() => _ExampleWidgetState();
}

class _ExampleWidgetState extends State<ExampleWidget> {
  int newValue = 0;
  
  @override
  Widget build(BuildContext context) {
    return Container(
      child: CounterButton(
        width: 250,
        height: 60,
        initValue: newValue,
        minValue: 0,
        maxValue: 10,
        iconColor: Colors.white,
        iconSize: 25.0,
        buttonColor: Colors.green,
        textColor: Colors.black,
        icon_left: Icon(Icons.remove),
        icon_right: Icon(Icons.add),
        onChanged: (value) {
          newValue = value;
        },
      )
    );
  }
}

2
likes
0
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

Resizable Counter Button. Changeable Background Colors & Icons.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on countnumberbutton