Search packages, repositories and app categories

GitHub repositorydanvick/flutter_touch_spin

flutter_touch_spin

Simple number input spinner Widget for Flutter.

flutter_touch_spin project cover
Stars
11
Forks
24
Last push (UTC)
May 21, 2024
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

flutter_touch_spin

Simple number input spinner Widget for Flutter. Inspired by Bootstrap Touchspin


Screenshot

Getting Started

TouchSpin(
    min: 5,
    max: 100,
    step: 5,
    value: 10,
    displayFormat: NumberFormat.currency(locale: 'en_US', symbol: '\$'),
    textStyle: const TextStyle(fontSize: 36),
    iconSize: 48.0,
    addIcon: const Icon(Icons.add_circle_outline),
    subtractIcon: const Icon(Icons.remove_circle_outline),
    iconActiveColor: Colors.green,
    iconDisabledColor: Colors.grey,
    iconPadding: const EdgeInsets.all(20),
    onChanged: (val){
        print(val);
    },
),

Attributes

Attribute Type Default
value num 1
min num 1
max num 9999999
step num 1
displayFormat NumberFormat
textStyle TextStyle TextStyle(fontSize: 24)
iconSize double 24.0
addIcon Icon Icon(Icons.add)
subtractIcon Icon Icon(Icons.remove)
iconActiveColor Color Theme.of(context).textTheme.button.color
iconDisabledColor Color Theme.of(context).disabledColor
iconPadding EdgeInsetsGeometry EdgeInsets.all(4.0)
onChanged ValueChanged<num>
Danvick Miller GitHub avatar
GitHub author

Danvick Miller ↗

Dart and Flutter . PHP . JS/TS

LanguagesDartRubySwiftKotlinObjective-C

Packages published by this repository

Dependencies used

Dependency list 4 items

  • flutter{"sdk":"flutter"}
  • intl^0.17.0
  • flutter_lintsDevelopment^1.0.4
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗