Repository navigation
CheckboxTile painted below parent container #85256
Copy link
Copy link
Closed
Labels
frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Happens on all devices (web, & ios), including dartpad.
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue),
debugShowCheckedModeBanner: false,
home: Scaffold(
body: Center(
child: MyWidget(),
),
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
children: [
Flexible(
child: Container(
color: Colors.yellow,
padding: EdgeInsets.all(5),
child: ListView.builder(
shrinkWrap: true,
padding: EdgeInsets.zero,
itemCount: 10,
itemBuilder: (BuildContext context, int i) {
print(i);
return CheckboxListTile(
title: Text("hello $i"),
tileColor: Colors.blueGrey,
value: false,
shape: RoundedRectangleBorder(
side: BorderSide(width: 0.5, color: Colors.blue),
borderRadius: BorderRadius.circular(30)),
onChanged: (val) {});
},
),
),
),
Container(height: 600),
],
);
}
}The checkbox tile is painted outside of the parent container if either a border is provided via shape or if a tileColor is provided
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagesr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Type
Projects
- StatusShow more project fieldsDone (PR merged)
Activity
steeling commentedon Jun 24, 2021
This is impacting production for us, is there a recommended fix until this issue is fixed?
xu-baolin commentedon Jun 25, 2021
Here is a workaround:
xu-baolin commentedon Jun 25, 2021
We have received a lot of similar issues, and I think it’s time to update our documentation.
#85256
#83124
#73315
#59963
#84201
CC @chunhtai @HansMuller
deavy commentedon Aug 18, 2021
Hi @xu-baolin,
Does Flutter team have plans to release a fix, or are there only workarounds for this issue?
[-]Flutter CheckboxTile painted outside of container[/-][+]`CheckboxTile` painted below parent container[/+]TahaTesser commentedon Jul 13, 2022
This is fixed by #105760
github-actions commentedon Jul 27, 2022
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.