Skip to content
pubscout

day_night_time_picker

1.3.1, released 3 years ago by tech3d.site

A day and night time picker widget for Flutter featuring a sun and moon animation.

WASM-ready
$ flutter pub add day_night_time_picker
Source repository

What it does

Provides a customizable time picker widget for Flutter that supports both modal dialog and inline presentation. It features a unique day/night visual header with Sun and Moon assets, 12-hour and 24-hour formats, second selection, and an iOS-style wheel picker option.

AI-written summary of version 1.3.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want a visually engaging time picker with day and night animations.
  • You need an inline or modal time picker supporting 12hr and 24hr formats.

Skip it when

  • You prefer using the standard platform-native time picker dialog.
  • You need date picking functionality combined with the time picker.

Strengths

  • Visually attractive day/night animation header with customizable assets.
  • Supports zero dependencies besides Flutter.
  • Extensively customizable properties including intervals, min/max bounds, and styling.

Weaknesses

  • Limited to time selection only, not suitable for full date-time picking.
  • Day/night visual header might not fit minimalist enterprise design systems.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

No native setup or permissions required.

TextButton(
    onPressed: () {
        Navigator.of(context).push(
            showPicker(
                context: context,
                value: _time,
                sunrise: TimeOfDay(hour: 6, minute: 0),
                sunset: TimeOfDay(hour: 18, minute: 0),
                duskSpanInMinutes: 120,
                onChange: onTimeChanged,
            ),
        );
    },
    child: Text(
        "Open time picker",
        style: TextStyle(color: Colors.white),
    ),
)

Alternatives

Packages that do the same job and could replace day_night_time_picker.