An open API service indexing awesome lists of open source software.

https://github.com/slothspunky77/number-widget


https://github.com/slothspunky77/number-widget

flutter flutter-widget

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# number-widget
### A simple number widget to change the value using '+' and '-'.
## Usage:
### Make sure you edit the import for your theme inside number_widget.dart and make necessary code replacements.
```
import 'package:number_widget.dart';
.
.
.
Row(
children: [
Expanded(
child: Text(
'Sets: ',
style:
TextStyle(color: darkMode.colorScheme.inversePrimary),
),
),
NumberStep(
initialValue: setsCount,
onValueChanged: (newValue) => setsCount = newValue),
],
),
.
.
.
```

### Example:
![image](https://github.com/SlothSpunky77/number-widget/assets/94778190/81ee1072-7afe-449c-ae60-f38f979ce808)