Skip to content

[CupertinoDatePicker] year field in unselected value baseline is broken #161773

@delfme

Description

@delfme

Steps to reproduce

The text baseline of the year column is not vertically aligned with the date and year, see attached image. Tested on both master and stable. Tested on Flutter version 3.24.5 and master.

Expected results

The text baseline of the year column should be vertically aligned with the date and year.

Actual results

The text baseline of the year column is not vertically aligned with the date and year.

Code sample

Code sample
 Container(
              height: MediaQuery.sizeOf(context).height * 0.35,
              child: CupertinoTheme(
                data: CupertinoThemeData(
                   brightness: Brightness.dark,
                ),
                child: CupertinoDatePicker(
                  onDateTimeChanged: (dateTime) => selectedDateTime = dateTime,
                  mode: CupertinoDatePickerMode.date,
                  initialDateTime: selectedDateTime,
                  minimumDate: DateTime(1900),
                ),
              ),
            ),

Screenshots or Video

Screenshots / Video demonstration

Image

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Flutter version 3.24.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listf: cupertinoflutter/packages/flutter/cupertino repositoryf: date/time pickerDate or time picker widgetsfound in release: 3.27Found to occur in 3.27found in release: 3.28Found to occur in 3.28frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions