https://github.com/slothspunky77/number-widget
https://github.com/slothspunky77/number-widget
flutter flutter-widget
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/slothspunky77/number-widget
- Owner: SlothSpunky77
- Created: 2024-03-28T18:24:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T06:13:23.000Z (about 2 years ago)
- Last Synced: 2025-02-01T01:42:06.339Z (over 1 year ago)
- Topics: flutter, flutter-widget
- Language: Dart
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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:
