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
477683e0
Unverified
Commit
477683e0
authored
Jun 14, 2021
by
Kate Lovett
Committed by
GitHub
Jun 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated typography constructor (#83926)
parent
6286bf1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
typography.dart
packages/flutter/lib/src/material/typography.dart
+2
-11
No files found.
packages/flutter/lib/src/material/typography.dart
View file @
477683e0
...
@@ -81,16 +81,7 @@ enum ScriptCategory {
...
@@ -81,16 +81,7 @@ enum ScriptCategory {
class
Typography
with
Diagnosticable
{
class
Typography
with
Diagnosticable
{
/// Creates a typography instance.
/// Creates a typography instance.
///
///
/// This constructor is identical to [Typography.material2014]. It is
/// This constructor is identical to [Typography.material2018].
/// deprecated because the 2014 material design defaults used by that
/// constructor are obsolete. The current material design specification
/// recommendations are those reflected by [Typography.material2018].
@Deprecated
(
'The default Typography constructor defaults to the 2014 material design defaults. '
'Applications are urged to migrate to Typography.material2018(), or, if the 2014 defaults '
'are desired, to explicitly request them using Typography.material2014(). '
'This feature was deprecated after v1.13.8.'
,
)
factory
Typography
({
factory
Typography
({
TargetPlatform
?
platform
,
TargetPlatform
?
platform
,
TextTheme
?
black
,
TextTheme
?
black
,
...
@@ -98,7 +89,7 @@ class Typography with Diagnosticable {
...
@@ -98,7 +89,7 @@ class Typography with Diagnosticable {
TextTheme
?
englishLike
,
TextTheme
?
englishLike
,
TextTheme
?
dense
,
TextTheme
?
dense
,
TextTheme
?
tall
,
TextTheme
?
tall
,
})
=
Typography
.
material201
4
;
})
=
Typography
.
material201
8
;
/// Creates a typography instance using material design's 2014 defaults.
/// Creates a typography instance using material design's 2014 defaults.
///
///
...
...
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