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
a078994a
Commit
a078994a
authored
May 16, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove last old-style asserts-with-string (#3923)
Use the FlutterError hotness instead. Fixes #1290
parent
55f9145e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
flex.dart
packages/flutter/lib/src/rendering/flex.dart
+5
-1
No files found.
packages/flutter/lib/src/rendering/flex.dart
View file @
a078994a
...
...
@@ -507,7 +507,11 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin<RenderBox, Fl
crossSize
=
math
.
max
(
crossSize
,
_getCrossSize
(
child
));
}
if
(
crossAxisAlignment
==
CrossAxisAlignment
.
baseline
)
{
assert
(
textBaseline
!=
null
&&
'To use FlexAlignItems.baseline, you must also specify which baseline to use using the "baseline" argument.'
is
String
);
assert
(()
{
if
(
textBaseline
==
null
)
throw
new
FlutterError
(
'To use FlexAlignItems.baseline, you must also specify which baseline to use using the "baseline" argument.'
);
return
true
;
});
double
distance
=
child
.
getDistanceToBaseline
(
textBaseline
,
onlyReal:
true
);
if
(
distance
!=
null
)
maxBaselineDistance
=
math
.
max
(
maxBaselineDistance
,
distance
);
...
...
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