Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

Material & Cupertino SpinBox for Flutter

SpinBox for Flutter

SpinBox for Flutter is a numeric input widget with an input field for entering a specific value, and spin buttons for quick, convenient, and accurate value adjustments.

Guidelines

Spin boxes are best suited for such applications

As a rule of thumb, spin boxes are great for scenarios where

Designs

SpinBox for Flutter comes in two variants. It provides implementations for both designs in Flutter, Material and Cupertino (iOS).

Material Design

import 'package:flutter_spinbox/material.dart'; // or flutter_spinbox.dart for both

SpinBox(
  min: 1,
  max: 100,
  value: 50,
  onChanged: (value) => print(value),
)

See also Material Components widgets package.

Cupertino (iOS-style) Design

import 'package:flutter_spinbox/cupertino.dart'; // or flutter_spinbox.dart for both

CupertinoSpinBox(
  min: 1,
  max: 100,
  value: 50,
  onChanged: (value) => print(value),
)

Usage

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

Download Flutter SpinBox source code on GitHub

Exit mobile version