time_picker_plus 0.1.1 copy "time_picker_plus: ^0.1.1" to clipboard
time_picker_plus: ^0.1.1 copied to clipboard

Time Picker Plus

Time Picker Plus #

Features #

  • 2 new modes dialOnly and inputOnly - now, you can hide change mode (IconButton)

I've changed type of initialEntryMode from TimePickerEntryMode to TimePickerPlusEntryMode, which
now has more modes.

Old:
TimePickerEntryMode:

  • dial - Tapping/dragging on a clock dial
  • input - Text input

New:
TimePickerPlusEntryMode:

  • dial - default use dial mode from TimePickerEntryMode
  • input - default use input mode from TimePickerEntryMode
  • dialOnly - use only dial mode (blocks opportunity to change mode)
  • inputOnly - use only input mode (blocks opportunity to change mode)

Usage #

Just use showTimePickerPlus() instead of showTimePicker() - it's really that simple!

import 'package:time_picker_plus/time_picker_plus.dart'

Future<TimeOfDay> show(BuildContext context) async {
    final TimeOfDay pickedDate = await showTimePickerPlus(
        context: context,
        initialTime: TimeOfDay.now(),
        initialEntryMode: TimePickerPlusEntryMode.dialOnly,
    );
    return pickedDate;
}
1
likes
70
pub points
0%
popularity

Publisher

unverified uploader

Time Picker Plus

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on time_picker_plus