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
a417786d
Commit
a417786d
authored
Jun 30, 2016
by
pq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to latest analyzer (w/ cleanup).
Bye-bye `@protected `trampolines! :)
parent
fa7f2714
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
framework.dart
packages/flutter/lib/src/widgets/framework.dart
+3
-6
pubspec.yaml
packages/flutter_test/pubspec.yaml
+1
-1
pubspec.yaml
packages/flutter_tools/pubspec.yaml
+1
-1
No files found.
packages/flutter/lib/src/widgets/framework.dart
View file @
a417786d
...
...
@@ -465,9 +465,6 @@ abstract class StatelessWidget extends Widget {
/// inserted into the tree in multiple places at once.
@protected
Widget
build
(
BuildContext
context
);
/// Trampoline to make the [build] closure library-accessible.
WidgetBuilder
get
_build
=>
build
;
}
/// A widget that has mutable state.
...
...
@@ -2012,7 +2009,7 @@ abstract class ComponentElement extends BuildableElement {
/// Instantiation of [StatelessWidget]s.
class
StatelessElement
extends
ComponentElement
{
StatelessElement
(
StatelessWidget
widget
)
:
super
(
widget
)
{
_builder
=
widget
.
_
build
;
_builder
=
widget
.
build
;
}
@override
...
...
@@ -2022,14 +2019,14 @@ class StatelessElement extends ComponentElement {
void
update
(
StatelessWidget
newWidget
)
{
super
.
update
(
newWidget
);
assert
(
widget
==
newWidget
);
_builder
=
widget
.
_
build
;
_builder
=
widget
.
build
;
_dirty
=
true
;
rebuild
();
}
@override
void
_reassemble
()
{
_builder
=
widget
.
_
build
;
_builder
=
widget
.
build
;
super
.
_reassemble
();
}
}
...
...
packages/flutter_test/pubspec.yaml
View file @
a417786d
...
...
@@ -10,7 +10,7 @@ dependencies:
# We don't actually depend on 'analyzer', but 'test' and 'flutter_tools' do.
# We pin the version of analyzer we depend on to avoid version skew across our
# packages.
analyzer
:
0.27.4-alpha.1
4
analyzer
:
0.27.4-alpha.1
5
flutter
:
path
:
../flutter
packages/flutter_tools/pubspec.yaml
View file @
a417786d
...
...
@@ -38,7 +38,7 @@ dependencies:
test
:
0.12.13+5
# Pinned in flutter_test as well.
analyzer
:
0.27.4-alpha.1
4
analyzer
:
0.27.4-alpha.1
5
dev_dependencies
:
mockito
:
^0.11.0
...
...
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