count_stepper 0.0.4
count_stepper: ^0.0.4 copied to clipboard

A simple Flutter widget that allows you to increment/decrement a value.

Count Stepper for Flutter #

license: BSD

A simple Flutter widget that allows you to increase/decrease a value.

Screenshots #

Image 1

Customize individual color #

Image 2

Example #

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        body: CountStepper(
          iconColor: Theme.of(context).primaryColor,
          defaultValue: 2,
          max: 10,
          min: 1,
          iconDecrementColor: Colors.red,
          splashRadius: 25,
          onPressed: (value) {},
        ),
      ),
    );
  }
}

Usage #

To use this package, add count_stepper as a dependency in your pubspec.yaml file.

1
likes
130
pub points
60%
popularity

A simple Flutter widget that allows you to increment/decrement a value.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on count_stepper