Search packages, repositories and app categories

from_to_time_picker cover
Package detailsv1.2.2

from_to_time_picker

Simple duration time range picker that enable user pick start time and end time of day in both 24h and 12h format

AndroidiOSWebmacOSWindowsLinux
30-day downloads
61
Likes
61
Pub points
140

Install package

flutter pub add from_to_time_picker

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A simple Flutter package for selecting a time range within a day, allowing users to pick both start and end times. Supports both 24-hour and 12-hour formats across multiple platforms. Designed with a clean, intuitive interface for seamless integration into apps requiring duration input. Ideal for scheduling, booking, or event creation features.

Use cases

  • Scheduling appointments
  • Booking time slots
  • Event planning
  • Task duration selection
  • Time tracking

Key features

  • Supports 24h and 12h time formats
  • Simple start/end time selection
  • Cross-platform compatibility
  • Customizable UI
  • Easy integration with Flutter forms

Suitable for

  • App developers needing time range inputs
  • Scheduling or calendar applications
  • Mobile and web apps with time-based workflows

Considerations

  • Limited to single-day time ranges
  • No timezone handling
  • Requires manual validation for logical time order

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

From To Time Picker

Pub Version License: MIT GitHub code size in bytes

Simple interactive time range picker that enables users to pick a specific duration of the day by selecting start time and end time and defining whether it was AM or PM then it returns the duration chosen in 24H format.

time_picker_gif time_picker_gif

Usage

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
...
from_to_time_picker: ^1.2.2

In your library add the following import:

import 'package:from_to_time_picker/from_to_time_picker.dart';

Example

default mode


showDialog(
        context: context,
        builder: (_) => FromToTimePicker(
              onTab: (from, to) {
                print('from $from to $to');
              },
            ));

customized mode

showDialog(
      context: context,
      builder: (_) => FromToTimePicker(
        onTab: (from, to) {
          print('from $from to $to');
        },
        dialogBackgroundColor: Color(0xFF121212),
        fromHeadlineColor: Colors.white,
        toHeadlineColor: Colors.white,
        upIconColor: Colors.white,
        downIconColor: Colors.white,
        timeBoxColor: Color(0xFF1E1E1E),
        timeHintColor: Colors.grey,
        timeTextColor: Colors.white,
        dividerColor: Color(0xFF121212),
        doneTextColor: Colors.white,
        dismissTextColor: Colors.white,
        defaultDayNightColor: Color(0xFF1E1E1E),
        defaultDayNightTextColor: Colors.white,
        colonColor: Colors.white,
        showHeaderBullet: true,
        headerText: 'Time available from 01:00 AM to 11:00 PM',
      ),
    );

Contributing

We accept the following contribution:

  • Improving documentation
  • Reporting issues
  • fixing bugs

Maintainer

  • Ahmed Elsarag

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.