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
4fd19aa1
Commit
4fd19aa1
authored
Jan 22, 2020
by
Alexandre Ardhuin
Committed by
Flutter GitHub Bot
Jan 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix multiline FlutterError (#49280)
parent
3b1ad168
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
scaffold.dart
packages/flutter/lib/src/material/scaffold.dart
+1
-1
tabs.dart
packages/flutter/lib/src/material/tabs.dart
+2
-2
automatic_keep_alive.dart
packages/flutter/lib/src/widgets/automatic_keep_alive.dart
+1
-1
No files found.
packages/flutter/lib/src/material/scaffold.dart
View file @
4fd19aa1
...
...
@@ -261,7 +261,7 @@ class _ScaffoldGeometryNotifier extends ChangeNotifier implements ValueListenabl
if
(
renderObject
==
null
||
!
renderObject
.
owner
.
debugDoingPaint
)
throw
FlutterError
(
'Scaffold.geometryOf() must only be accessed during the paint phase.
\n
'
'The ScaffoldGeometry is only available during the paint phase, because
\n
'
'The ScaffoldGeometry is only available during the paint phase, because
'
'its value is computed during the animation and layout phases prior to painting.'
);
return
true
;
...
...
packages/flutter/lib/src/material/tabs.dart
View file @
4fd19aa1
...
...
@@ -1001,7 +1001,7 @@ class _TabBarState extends State<TabBar> {
assert
(()
{
if
(
_controller
.
length
!=
widget
.
tabs
.
length
)
{
throw
FlutterError
(
'Controller
\'
s length property (
${_controller.length}
) does not match the
\n
'
'Controller
\'
s length property (
${_controller.length}
) does not match the '
'number of tabs (
${widget.tabs.length}
) present in TabBar
\'
s tabs property.'
);
}
...
...
@@ -1326,7 +1326,7 @@ class _TabBarViewState extends State<TabBarView> {
assert
(()
{
if
(
_controller
.
length
!=
widget
.
children
.
length
)
{
throw
FlutterError
(
'Controller
\'
s length property (
${_controller.length}
) does not match the
\n
'
'Controller
\'
s length property (
${_controller.length}
) does not match the '
'number of tabs (
${widget.children.length}
) present in TabBar
\'
s tabs property.'
);
}
...
...
packages/flutter/lib/src/widgets/automatic_keep_alive.dart
View file @
4fd19aa1
...
...
@@ -145,7 +145,7 @@ class _AutomaticKeepAliveState extends State<AutomaticKeepAlive> {
assert
(()
{
if
(!
mounted
)
{
throw
FlutterError
(
'AutomaticKeepAlive handle triggered after AutomaticKeepAlive was disposed.
'
'AutomaticKeepAlive handle triggered after AutomaticKeepAlive was disposed.
\n
'
'Widgets should always trigger their KeepAliveNotification handle when they are '
'deactivated, so that they (or their handle) do not send spurious events later '
'when they are no longer in the tree.'
...
...
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