Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
58190083
Unverified
Commit
58190083
authored
Jul 30, 2018
by
Jonah Williams
Committed by
GitHub
Jul 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase checkbox size and fix header area (#19966)
parent
7e2434c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
29 deletions
+36
-29
data_table.dart
packages/flutter/lib/src/material/data_table.dart
+10
-7
paginated_data_table.dart
packages/flutter/lib/src/material/paginated_data_table.dart
+26
-22
No files found.
packages/flutter/lib/src/material/data_table.dart
View file @
58190083
...
...
@@ -364,7 +364,9 @@ class DataTable extends StatelessWidget {
VoidCallback
onRowTap
,
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
),
child:
new
Center
(
child:
new
Checkbox
(
...
...
@@ -373,6 +375,7 @@ class DataTable extends StatelessWidget {
onChanged:
onCheckboxChanged
,
),
),
),
);
if
(
onRowTap
!=
null
)
{
contents
=
new
TableRowInkWell
(
...
...
packages/flutter/lib/src/material/paginated_data_table.dart
View file @
58190083
...
...
@@ -380,10 +380,13 @@ class PaginatedDataTableState extends State<PaginatedDataTable> {
// CARD
return
new
Card
(
semanticContainer:
false
,
child:
new
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
stretch
,
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
// list and then tweak them appropriately.
// See https://material.google.com/components/data-tables.html#data-tables-tables-within-cards
...
...
@@ -409,6 +412,7 @@ class PaginatedDataTableState extends State<PaginatedDataTable> {
)
)
),
),
new
SingleChildScrollView
(
scrollDirection:
Axis
.
horizontal
,
child:
new
DataTable
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment