Skip to content

[CupertinoDatePicker] Selection background is broken for mode "time" and "dateAndTime" #73203

@REKURDennis

Description

@REKURDennis

Steps to Reproduce

  1. Create an app with a [CupertinoDatePicker] and select the mode "time"
  2. Inspect the result

Expected results: There should be one grey background around the current select (as it can be seen for the mode "date")
Screenshot 2021-01-02 at 09 41 53

Actual results: The background of the selection if cut into pieces with weird rounding
IMG_643E5847C0A8-1

Reproducible on 1.25.0-8.1.pre (current beta)

import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: MyHomePage(),
  ));
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Container(
          height: 300,
          child: CupertinoDatePicker(
            mode: CupertinoDatePickerMode.time,
            onDateTimeChanged: (DateTime newDateTime) {},
          ),
        ),
      ),
    );
  }
}```

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: qualityA truly polished experiencec: regressionIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.f: cupertinoflutter/packages/flutter/cupertino repositoryfound in release: 1.25Found to occur in 1.25found in release: 1.26Found to occur in 1.26frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions