uistepper 0.0.2 uistepper: ^0.0.2 copied to clipboard
A widget for incrementing or decrementing a value by using +/- buttons. This is a Flutter implementation of the UIStepper control found in Apple iOS UIKit.
import 'package:flutter/material.dart';
import 'package:uistepper/uistepper.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Scaffold(
body: Center(
child: UIStepper(value: 12, onChanged: (value) {})
)
)
);
}
}