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

outdated

A new Flutter package project.

example/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: Colors.deepPurple[400],
        body: SafeArea(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: <Widget>[
              Center(
                child: NumberSelection(
                  initialValue: 1,
                  minValue: -10,
                  maxValue: 10,
                  direction: Axis.vertical,
                  withSpring: false,
                  onChanged: (int value) => print("value: $value"),
                ),
              ),
              Center(
                child: NumberSelection(
                  initialValue: 1,
                  minValue: -1,
                  maxValue: 10,
                  direction: Axis.horizontal,
                  withSpring: false,
                  onChanged: (int value) => print("value: $value"),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
21
likes
30
pub points
77%
popularity

Publisher

unverified uploader

A new Flutter package project.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on number_selection