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
40e8620a
Unverified
Commit
40e8620a
authored
Aug 06, 2021
by
Mahdi K. Fard
Committed by
GitHub
Aug 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dart preamble code. (#87557)
DataTable and Button NNBD docs fixes
parent
972bdf80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
button_style.dart
packages/flutter/lib/src/material/button_style.dart
+1
-1
data_table.dart
packages/flutter/lib/src/material/data_table.dart
+3
-3
No files found.
packages/flutter/lib/src/material/button_style.dart
View file @
40e8620a
...
@@ -35,7 +35,7 @@ import 'theme_data.dart';
...
@@ -35,7 +35,7 @@ import 'theme_data.dart';
/// ```dart
/// ```dart
/// ElevatedButton(
/// ElevatedButton(
/// style: ButtonStyle(
/// style: ButtonStyle(
/// backgroundColor: MaterialStateProperty.resolveWith<Color>(
/// backgroundColor: MaterialStateProperty.resolveWith<Color
?
>(
/// (Set<MaterialState> states) {
/// (Set<MaterialState> states) {
/// if (states.contains(MaterialState.pressed))
/// if (states.contains(MaterialState.pressed))
/// return Theme.of(context).colorScheme.primary.withOpacity(0.5);
/// return Theme.of(context).colorScheme.primary.withOpacity(0.5);
...
...
packages/flutter/lib/src/material/data_table.dart
View file @
40e8620a
...
@@ -167,7 +167,7 @@ class DataRow {
...
@@ -167,7 +167,7 @@ class DataRow {
///
///
/// ```dart
/// ```dart
/// DataRow(
/// DataRow(
/// color: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) {
/// color: MaterialStateProperty.resolveWith<Color
?
>((Set<MaterialState> states) {
/// if (states.contains(MaterialState.selected))
/// if (states.contains(MaterialState.selected))
/// return Theme.of(context).colorScheme.primary.withOpacity(0.08);
/// return Theme.of(context).colorScheme.primary.withOpacity(0.08);
/// return null; // Use the default value.
/// return null; // Use the default value.
...
@@ -549,7 +549,7 @@ class DataTable extends StatelessWidget {
...
@@ -549,7 +549,7 @@ class DataTable extends StatelessWidget {
/// {@template flutter.material.DataTable.dataRowColor}
/// {@template flutter.material.DataTable.dataRowColor}
/// ```dart
/// ```dart
/// DataTable(
/// DataTable(
/// dataRowColor: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) {
/// dataRowColor: MaterialStateProperty.resolveWith<Color
?
>((Set<MaterialState> states) {
/// if (states.contains(MaterialState.selected))
/// if (states.contains(MaterialState.selected))
/// return Theme.of(context).colorScheme.primary.withOpacity(0.08);
/// return Theme.of(context).colorScheme.primary.withOpacity(0.08);
/// return null; // Use the default value.
/// return null; // Use the default value.
...
@@ -597,7 +597,7 @@ class DataTable extends StatelessWidget {
...
@@ -597,7 +597,7 @@ class DataTable extends StatelessWidget {
/// {@template flutter.material.DataTable.headingRowColor}
/// {@template flutter.material.DataTable.headingRowColor}
/// ```dart
/// ```dart
/// DataTable(
/// DataTable(
/// headingRowColor: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) {
/// headingRowColor: MaterialStateProperty.resolveWith<Color
?
>((Set<MaterialState> states) {
/// if (states.contains(MaterialState.hovered))
/// if (states.contains(MaterialState.hovered))
/// return Theme.of(context).colorScheme.primary.withOpacity(0.08);
/// return Theme.of(context).colorScheme.primary.withOpacity(0.08);
/// return null; // Use the default value.
/// return null; // Use the default value.
...
...
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