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
6c048301
Unverified
Commit
6c048301
authored
Apr 10, 2020
by
Michael Goderbauer
Committed by
GitHub
Apr 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "WIP2" (#54286)
parent
ce92333b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
34 deletions
+4
-34
binding.dart
packages/flutter/lib/src/foundation/binding.dart
+1
-24
binding.dart
packages/flutter/lib/src/scheduler/binding.dart
+2
-3
binding.dart
packages/flutter/lib/src/services/binding.dart
+1
-1
binding_test.dart
packages/flutter/test/painting/binding_test.dart
+0
-6
No files found.
packages/flutter/lib/src/foundation/binding.dart
View file @
6c048301
...
...
@@ -6,7 +6,7 @@ import 'dart:async';
import
'dart:convert'
show
json
;
import
'dart:developer'
as
developer
;
import
'dart:io'
show
exit
;
import
'dart:ui'
as
ui
show
AppLifecycleState
,
saveCompilationTrace
,
Window
,
window
;
import
'dart:ui'
as
ui
show
saveCompilationTrace
,
Window
,
window
;
// Before adding any more dart:ui imports, please read the README.
import
'package:meta/meta.dart'
;
...
...
@@ -552,29 +552,6 @@ abstract class BindingBase {
});
}
// TODO(goderbauer): Remove the next two members after the service/scheduler dependencies
// have been turned around.
/// Whether the application is visible, and if so, whether it is currently
/// interactive.
///
/// This is set by [handleAppLifecycleStateChanged] when the
/// [SystemChannels.lifecycle] notification is dispatched.
///
/// The preferred way to watch for changes to this value is using
/// [WidgetsBindingObserver.didChangeAppLifecycleState].
ui
.
AppLifecycleState
get
lifecycleState
=>
null
;
/// Called when the application lifecycle state changes.
///
/// Notifies all the observers using
/// [WidgetsBindingObserver.didChangeAppLifecycleState].
///
/// This method exposes notifications from [SystemChannels.lifecycle].
@protected
@mustCallSuper
void
handleAppLifecycleStateChanged
(
ui
.
AppLifecycleState
state
)
{
}
@override
String
toString
()
=>
'<
${objectRuntimeType(this, 'BindingBase')}
>'
;
}
...
...
packages/flutter/lib/src/scheduler/binding.dart
View file @
6c048301
...
...
@@ -299,7 +299,6 @@ mixin SchedulerBinding on BindingBase {
///
/// The preferred way to watch for changes to this value is using
/// [WidgetsBindingObserver.didChangeAppLifecycleState].
@override
AppLifecycleState
get
lifecycleState
=>
_lifecycleState
;
AppLifecycleState
_lifecycleState
;
...
...
@@ -309,9 +308,9 @@ mixin SchedulerBinding on BindingBase {
/// [WidgetsBindingObserver.didChangeAppLifecycleState].
///
/// This method exposes notifications from [SystemChannels.lifecycle].
@override
@protected
@mustCallSuper
void
handleAppLifecycleStateChanged
(
AppLifecycleState
state
)
{
super
.
handleAppLifecycleStateChanged
(
state
);
assert
(
state
!=
null
);
_lifecycleState
=
state
;
switch
(
state
)
{
...
...
packages/flutter/lib/src/services/binding.dart
View file @
6c048301
...
...
@@ -19,7 +19,7 @@ import 'system_channels.dart';
/// the licenses found in the `LICENSE` file stored at the root of the asset
/// bundle, and implements the `ext.flutter.evict` service extension (see
/// [evict]).
mixin
ServicesBinding
on
BindingBase
{
mixin
ServicesBinding
on
BindingBase
,
SchedulerBinding
{
@override
void
initInstances
()
{
super
.
initInstances
();
...
...
packages/flutter/test/painting/binding_test.dart
View file @
6c048301
...
...
@@ -86,12 +86,6 @@ class TestBindingBase implements BindingBase {
@override
ui
.
Window
get
window
=>
throw
UnimplementedError
();
@override
ui
.
AppLifecycleState
get
lifecycleState
=>
null
;
@override
void
handleAppLifecycleStateChanged
(
ui
.
AppLifecycleState
state
)
{
}
}
class
TestPaintingBinding
extends
TestBindingBase
with
SchedulerBinding
,
ServicesBinding
,
PaintingBinding
{
...
...
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