Skip to content

CupertinoDatePicker very lag when scroll up and down several times #106737

@dankocher

Description

@dankocher

Hi @genevaspur @adham-ashraf77, could either of you provide a complete minimal sample that we can use to verify this behaviour? I ran the sample found in https://api.flutter.dev/flutter/cupertino/CupertinoDatePicker-class.html and I didn't notice any lag. The frame rate was around 56fps in debug mode and around 60fps in profile mode.

What platforms are you experiencing this issue on?

Please provide the output of flutter doctor -v as well.

video

@danagbemava-nc I copy https://api.flutter.dev/flutter/cupertino/CupertinoDatePicker-class.html code, run on Flutter 3.0.1 Android 10 can reproduce this issue, you need scroll up and down several times, it suddenly become very lag.
It seems change to DateTime dateTime = DateTime.now(); will Increase the probability of occurrence

Originally posted by @taosimple in #104049 (comment)

I have the same issue on iOS when scroll up and down several times, it suddenly become very lag. Any solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions