Skip to content

kasznar/flutter_duration_field

 
 

Repository files navigation

A Flutter widget for easy Duration input

Features

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

Getting started

Install it

flutter pub add duration_field

Import it

import 'package:duration_field/duration_field.dart';

Enjoy

Usage

const DurationField(
  label: 'Duration field',
  initialDuration: Duration(minutes: 5),
),

Screenshot

wireframe

About

A duration input field for Flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 80.3%
  • HTML 17.2%
  • Swift 1.8%
  • Other 0.7%