stepper_counter_swipe 0.0.6 copy "stepper_counter_swipe: ^0.0.6" to clipboard
stepper_counter_swipe: ^0.0.6 copied to clipboard

outdated

A flutter stepper widget for make the user experience much better. There is a hit zone for fast count

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:stepper_counter_swipe/stepper_counter_swipe.dart';
void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
 int val=0;
  @override
  _MyAppState createState() => _MyAppState();

  
}

class _MyAppState extends State<MyApp> {
   
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.green,
        body: Center(
          child: StepperSwipe(
            initialValue:0,
            speedTransitionLimitCount: 1,
            firstIncrementDuration: Duration(milliseconds: 100),
            secondIncrementDuration: Duration(milliseconds: 100),
            direction: Axis.horizontal,
            dragButtonColor: Colors.blueAccent,
            withSpring: true,
            maxValue:50,
            stepperValue:widget.val,
            withNaturalNumbers: true,
            withFastCount: true,
            onChanged: (int val) => print('New value : $val'),
          ),
        ),
      ),
    );
  }
}
124
likes
40
pub points
76%
popularity

Publisher

unverified uploader

A flutter stepper widget for make the user experience much better. There is a hit zone for fast count

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on stepper_counter_swipe