Unverified Commit 58190083 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

increase checkbox size and fix header area (#19966)

parent 7e2434c8
...@@ -364,7 +364,9 @@ class DataTable extends StatelessWidget { ...@@ -364,7 +364,9 @@ class DataTable extends StatelessWidget {
VoidCallback onRowTap, VoidCallback onRowTap,
ValueChanged<bool> onCheckboxChanged ValueChanged<bool> onCheckboxChanged
}) { }) {
Widget contents = new Padding( Widget contents = new Semantics(
container: true,
child: new Padding(
padding: const EdgeInsetsDirectional.only(start: _tablePadding, end: _tablePadding / 2.0), padding: const EdgeInsetsDirectional.only(start: _tablePadding, end: _tablePadding / 2.0),
child: new Center( child: new Center(
child: new Checkbox( child: new Checkbox(
...@@ -373,6 +375,7 @@ class DataTable extends StatelessWidget { ...@@ -373,6 +375,7 @@ class DataTable extends StatelessWidget {
onChanged: onCheckboxChanged, onChanged: onCheckboxChanged,
), ),
), ),
),
); );
if (onRowTap != null) { if (onRowTap != null) {
contents = new TableRowInkWell( contents = new TableRowInkWell(
......
...@@ -380,10 +380,13 @@ class PaginatedDataTableState extends State<PaginatedDataTable> { ...@@ -380,10 +380,13 @@ class PaginatedDataTableState extends State<PaginatedDataTable> {
// CARD // CARD
return new Card( return new Card(
semanticContainer: false,
child: new Column( child: new Column(
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[ children: <Widget>[
new DefaultTextStyle( new Semantics(
container: true,
child: new DefaultTextStyle(
// These typographic styles aren't quite the regular ones. We pick the closest ones from the regular // These typographic styles aren't quite the regular ones. We pick the closest ones from the regular
// list and then tweak them appropriately. // list and then tweak them appropriately.
// See https://material.google.com/components/data-tables.html#data-tables-tables-within-cards // See https://material.google.com/components/data-tables.html#data-tables-tables-within-cards
...@@ -409,6 +412,7 @@ class PaginatedDataTableState extends State<PaginatedDataTable> { ...@@ -409,6 +412,7 @@ class PaginatedDataTableState extends State<PaginatedDataTable> {
) )
) )
), ),
),
new SingleChildScrollView( new SingleChildScrollView(
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
child: new DataTable( child: new DataTable(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment