Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Bug with minuteInterval #148

@nijatmursali

Description

@nijatmursali

Hello,

I'm using this picker for my project, but when I put the minuteInterval: 10 it gives the following error:

Failed assertion: 'this.initialDateTime.minute % minuteInterval == 0' : initial minute is not divisible by minute interval.

Why this bug occurs?

My code is:

DateTime _dateTime = DateTime.now();
CupertinoDatePicker(
                                    mode: CupertinoDatePickerMode.dateAndTime,
                                    minuteInterval: 10,
                                    initialDateTime: _dateTime,
                                    use24hFormat: true,
                                    minimumYear: 2021,
                                    minimumDate: _dateTime,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions