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
a87540ba
Unverified
Commit
a87540ba
authored
Sep 03, 2022
by
LongCatIsLooong
Committed by
GitHub
Sep 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `inherit: false` to material2018 text geometry text themes (#110870)
parent
c075ef05
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
45 deletions
+65
-45
typography.dart
packages/flutter/lib/src/material/typography.dart
+45
-45
typography_test.dart
packages/flutter/test/material/typography_test.dart
+20
-0
No files found.
packages/flutter/lib/src/material/typography.dart
View file @
a87540ba
This diff is collapsed.
Click to expand it.
packages/flutter/test/material/typography_test.dart
View file @
a87540ba
...
...
@@ -101,6 +101,26 @@ void main() {
expect
(
nonDefaultPropertyNames
,
<
String
>[
'black'
,
'white'
,
'englishLike'
,
'dense'
,
'tall'
]);
});
test
(
'Can lerp between different typographies'
,
()
{
final
List
<
Typography
>
all
=
<
Typography
>[
for
(
final
TargetPlatform
platform
in
TargetPlatform
.
values
)
Typography
.
material2014
(
platform:
platform
),
for
(
final
TargetPlatform
platform
in
TargetPlatform
.
values
)
Typography
.
material2018
(
platform:
platform
),
for
(
final
TargetPlatform
platform
in
TargetPlatform
.
values
)
Typography
.
material2021
(
platform:
platform
),
];
for
(
final
Typography
fromTypography
in
all
)
{
for
(
final
Typography
toTypegraphy
in
all
)
{
Object
?
error
;
try
{
Typography
.
lerp
(
fromTypography
,
toTypegraphy
,
0.5
);
}
catch
(
e
)
{
error
=
e
;
}
expect
(
error
,
isNull
);
}
}
});
test
(
'englishLike2018 TextTheme matches Material Design spec'
,
()
{
// Check the default material text theme against the style values
// shown https://material.io/design/typography/#type-scale.
...
...
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