-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.13Found to occur in 3.13Found to occur in 3.13frameworkflutter/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 onteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
- Use the code sample in dartpad
- Observe, that there are dividers rendered
Expected results
Using dividerThickness: 0 should not render a visible border.
Actually, using dividerThickness: 0.1 renders a smaller visible border, so it looks like using 0 falls back to some default.
Actual results
A border of thickness 1 seems to be rendered.
Code sample
Code sample
import 'package:flutter/material.dart';
const 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: [
DataTable(
dividerThickness: 0,
columns: const [
DataColumn(label: Text('h1')),
DataColumn(label: Text('h2')),
],
rows: const [
DataRow(cells: [DataCell(Text('1')), DataCell(Text('2'))]),
DataRow(cells: [DataCell(Text('3')), DataCell(Text('4'))]),
],
),
DataTableTheme(
data: Theme.of(context).dataTableTheme.copyWith(dividerThickness:0),
child: DataTable(
dividerThickness: 0,
columns: const [
DataColumn(label: Text('h1')),
DataColumn(label: Text('h2')),
],
rows: const [
DataRow(cells: [DataCell(Text('1')), DataCell(Text('2'))]),
DataRow(cells: [DataCell(Text('3')), DataCell(Text('4'))]),
],
),
),
],
);
}
}Screenshots or Video
Logs
Logs
Not needed.
Flutter Doctor output
Doctor output
Not needed.
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.13Found to occur in 3.13Found to occur in 3.13frameworkflutter/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 onteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
