flutter_number_picker 1.0.4 copy "flutter_number_picker: ^1.0.4" to clipboard
flutter_number_picker: ^1.0.4 copied to clipboard

A new custom Flutter Number Picker plugin by using add and minus buttons.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:flutter_number_picker/flutter_number_picker.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plutter number picker'),
        ),
        body: Center(
          child: Container(
            child: CustomNumberPicker(
              initialValue: 10000,
              maxValue: 1000000,
              minValue: 0,
              step: 10000,
              enable: true,
              onValue: (value) {
                print(value.toString());
              },
            ),
          ),
        ),
      ),
    );
  }
}
16
likes
120
pub points
81%
popularity

Publisher

verified publisherphvit.blogspot.com

A new custom Flutter Number Picker plugin by using add and minus buttons.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_svg

More

Packages that depend on flutter_number_picker