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
9c4ed3f8
Commit
9c4ed3f8
authored
Aug 05, 2015
by
Eric Seidel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #457 from eseidelGoogle/docs
Add a few bits of documentation to package:sky
parents
50e2713e
7be732fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
activity.dart
packages/flutter/lib/mojo/activity.dart
+8
-1
widgets.dart
packages/flutter/lib/widgets.dart
+2
-0
No files found.
packages/flutter/lib/mojo/activity.dart
View file @
9c4ed3f8
...
@@ -9,6 +9,11 @@ import 'package:sky_services/activity/activity.mojom.dart';
...
@@ -9,6 +9,11 @@ import 'package:sky_services/activity/activity.mojom.dart';
export
'package:sky_services/activity/activity.mojom.dart'
show
Intent
,
ComponentName
,
StringExtra
;
export
'package:sky_services/activity/activity.mojom.dart'
show
Intent
,
ComponentName
,
StringExtra
;
/// Dart wrapper around Activity mojo service available in Sky on Android.
///
/// Most clients will want to use these methods instead of the activity service
/// directly.
const
int
NEW_DOCUMENT
=
0x00080000
;
const
int
NEW_DOCUMENT
=
0x00080000
;
const
int
NEW_TASK
=
0x10000000
;
const
int
NEW_TASK
=
0x10000000
;
const
int
MULTIPLE_TASK
=
0x08000000
;
const
int
MULTIPLE_TASK
=
0x08000000
;
...
@@ -24,15 +29,17 @@ final ActivityProxy _activity = _initActivity();
...
@@ -24,15 +29,17 @@ final ActivityProxy _activity = _initActivity();
Color
_cachedPrimaryColor
;
Color
_cachedPrimaryColor
;
String
_cachedLabel
;
String
_cachedLabel
;
/// Ends the current activity.
void
finishCurrentActivity
(
)
{
void
finishCurrentActivity
(
)
{
_activity
.
ptr
.
finishCurrentActivity
();
_activity
.
ptr
.
finishCurrentActivity
();
}
}
/// Asks the Android ActivityManager to start a new Intent-based Activity.
void
startActivity
(
Intent
intent
)
{
void
startActivity
(
Intent
intent
)
{
_activity
.
ptr
.
startActivity
(
intent
);
_activity
.
ptr
.
startActivity
(
intent
);
}
}
/// Sets the TaskDescription for the current Activity
void
updateTaskDescription
(
String
label
,
Color
color
)
{
void
updateTaskDescription
(
String
label
,
Color
color
)
{
if
(
_cachedPrimaryColor
==
color
&&
_cachedLabel
==
label
)
if
(
_cachedPrimaryColor
==
color
&&
_cachedLabel
==
label
)
return
;
return
;
...
...
packages/flutter/lib/widgets.dart
View file @
9c4ed3f8
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
/// Includes and re-exports all Sky widgets classes.
export
'widgets/animated_component.dart'
;
export
'widgets/animated_component.dart'
;
export
'widgets/animated_container.dart'
;
export
'widgets/animated_container.dart'
;
export
'widgets/basic.dart'
;
export
'widgets/basic.dart'
;
...
...
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