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
fb86a033
Unverified
Commit
fb86a033
authored
Nov 09, 2017
by
Adam Barth
Committed by
GitHub
Nov 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document MaterialApp's _errorTextStyle (#12842)
parent
30ff0054
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
app.dart
packages/flutter/lib/src/material/app.dart
+9
-1
No files found.
packages/flutter/lib/src/material/app.dart
View file @
fb86a033
...
...
@@ -14,6 +14,13 @@ import 'material_localizations.dart';
import
'page.dart'
;
import
'theme.dart'
;
/// [MaterialApp] uses this [TextStyle] as its [DefaultTextStyle] to encourage
/// developers to be intentional about their [DefaultTextStyle].
///
/// In Material Design, most [Text] widgets are contained in [Material] widgets,
/// which sets a specific [DefaultTextStyle]. If you're seeing text that uses
/// this text style, consider putting your text in a [Material] widget (or
/// another widget that sets a [DefaultTextStyle]).
const
TextStyle
_errorTextStyle
=
const
TextStyle
(
color:
const
Color
(
0xD0FF0000
),
fontFamily:
'monospace'
,
...
...
@@ -21,7 +28,8 @@ const TextStyle _errorTextStyle = const TextStyle(
fontWeight:
FontWeight
.
w900
,
decoration:
TextDecoration
.
underline
,
decorationColor:
const
Color
(
0xFFFFFF00
),
decorationStyle:
TextDecorationStyle
.
double
decorationStyle:
TextDecorationStyle
.
double
,
debugLabel:
'fallback style; consider putting your text in a Material'
,
);
/// An application that uses material design.
...
...
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