A Flutter widget for easy Duration input
This widget renders multiple input fields for duration input.
- Automatically jumps to next field when filled
- Automatically jumps to previous field on backspace
- No error states, because:
- limits all fields but the first to 59 seconds
- fills empty fields with 0
- Hours-Minutes-Seconds and Minutes-Seconds mode
Install it
flutter pub add duration_field
Import it
import 'package:duration_field/duration_field.dart';
Enjoy
const DurationField(
label: 'Duration field',
initialDuration: Duration(minutes: 5),
),