Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
77af051a
Commit
77af051a
authored
Oct 28, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Brightness.light 问题修复
parent
a8ba6798
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
59 deletions
+28
-59
android/src/main/java/com/idlefish/flutterboost/ContainerRecord.java
.../main/java/com/idlefish/flutterboost/ContainerRecord.java
+1
-35
android/src/main/java/com/idlefish/flutterboost/containers/FlutterActivityAndFragmentDelegate.java
...rboost/containers/FlutterActivityAndFragmentDelegate.java
+21
-12
android/src/main/java/com/idlefish/flutterboost/containers/NewBoostFlutterActivity.java
...fish/flutterboost/containers/NewBoostFlutterActivity.java
+2
-7
android/src/main/java/com/idlefish/flutterboost/containers/NewFlutterFragment.java
.../idlefish/flutterboost/containers/NewFlutterFragment.java
+0
-5
example/lib/simple_page_widgets.dart
example/lib/simple_page_widgets.dart
+4
-0
No files found.
android/src/main/java/com/idlefish/flutterboost/ContainerRecord.java
View file @
77af051a
...
...
@@ -175,6 +175,7 @@ public class ContainerRecord implements IContainerRecord {
@Override
public
void
onContainerResult
(
int
requestCode
,
int
resultCode
,
Map
<
String
,
Object
>
result
)
{
mManager
.
setContainerResult
(
this
,
requestCode
,
resultCode
,
result
);
}
...
...
@@ -192,41 +193,6 @@ public class ContainerRecord implements IContainerRecord {
public
void
onLowMemory
()
{
}
//
// @Override
// public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
// mContainer.getBoostFlutterView().onRequestPermissionsResult(requestCode, permissions, grantResults);
// }
//
// @Override
// public void onNewIntent(Intent intent) {
// mContainer.getBoostFlutterView().onNewIntent(intent);
// }
//
// @Override
// public void onActivityResult(int requestCode, int resultCode, Intent data) {
// mContainer.getBoostFlutterView().onActivityResult(requestCode, resultCode, data);
// }
//
// @Override
// public void onContainerResult(int requestCode, int resultCode, Map<String, Object> result) {
// mManager.setContainerResult(this, requestCode,resultCode, result);
// }
//
// @Override
// public void onUserLeaveHint() {
// mContainer.getBoostFlutterView().onUserLeaveHint();
// }
//
// @Override
// public void onTrimMemory(int level) {
// mContainer.getBoostFlutterView().onTrimMemory(level);
// }
//
// @Override
// public void onLowMemory() {
// mContainer.getBoostFlutterView().onLowMemory();
// }
private
class
MethodChannelProxy
{
...
...
android/src/main/java/com/idlefish/flutterboost/containers/FlutterActivityAndFragmentDelegate.java
View file @
77af051a
...
...
@@ -15,6 +15,7 @@ import android.view.ViewGroup;
import
java.io.Serializable
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -111,6 +112,7 @@ public class FlutterActivityAndFragmentDelegate implements IFlutterViewContaine
host
.
getLifecycle
()
);
}
host
.
configureFlutterEngine
(
flutterEngine
);
...
...
@@ -190,16 +192,8 @@ public class FlutterActivityAndFragmentDelegate implements IFlutterViewContaine
void
onPostResume
()
{
Log
.
v
(
TAG
,
"onPostResume()"
);
ensureAlive
();
if
(
flutterEngine
!=
null
)
{
if
(
platformPlugin
!=
null
)
{
// TODO(mattcarroll): find a better way to handle the update of UI overlays than calling through
// to platformPlugin. We're implicitly entangling the Window, Activity, Fragment,
// and engine all with this one call.
platformPlugin
.
updateSystemUiOverlays
();
}
}
else
{
Log
.
w
(
TAG
,
"onPostResume() invoked before NewFlutterFragment was attached to an Activity."
);
}
Utils
.
setStatusBarLightMode
(
host
.
getActivity
(),
true
);
}
...
...
@@ -372,10 +366,26 @@ public class FlutterActivityAndFragmentDelegate implements IFlutterViewContaine
@Override
public
void
finishContainer
(
Map
<
String
,
Object
>
result
)
{
this
.
host
.
finishContainer
(
result
);
if
(
result
!=
null
)
{
setBoostResult
(
this
.
host
.
getActivity
(),
new
HashMap
<>(
result
));
this
.
host
.
getActivity
().
finish
();
}
else
{
this
.
host
.
getActivity
().
finish
();
}
}
public
void
setBoostResult
(
Activity
activity
,
HashMap
result
)
{
Intent
intent
=
new
Intent
();
if
(
result
!=
null
)
{
intent
.
putExtra
(
IFlutterViewContainer
.
RESULT_KEY
,
result
);
}
activity
.
setResult
(
Activity
.
RESULT_OK
,
intent
);
}
@Override
public
String
getContainerUrl
()
{
return
this
.
host
.
getContainerUrl
();
...
...
@@ -473,7 +483,6 @@ public class FlutterActivityAndFragmentDelegate implements IFlutterViewContaine
void
finishContainer
(
Map
<
String
,
Object
>
result
)
;
String
getContainerUrl
()
;
...
...
android/src/main/java/com/idlefish/flutterboost/containers/NewBoostFlutterActivity.java
View file @
77af051a
...
...
@@ -241,7 +241,8 @@ public class NewBoostFlutterActivity extends Activity
window
.
setStatusBarColor
(
Color
.
TRANSPARENT
);
window
.
getDecorView
().
setSystemUiVisibility
(
PlatformPlugin
.
DEFAULT_SYSTEM_UI
);
}
Utils
.
setStatusBarLightMode
(
this
,
true
);
}
...
...
@@ -469,12 +470,6 @@ public class NewBoostFlutterActivity extends Activity
@Override
public
void
finishContainer
(
Map
<
String
,
Object
>
result
)
{
Activity
activity
=
this
.
getActivity
();
activity
.
finish
();
}
@Override
public
String
getContainerUrl
()
{
...
...
android/src/main/java/com/idlefish/flutterboost/containers/NewFlutterFragment.java
View file @
77af051a
...
...
@@ -489,12 +489,7 @@ public class NewFlutterFragment extends Fragment implements FlutterActivityAndFr
}
@Override
public
void
finishContainer
(
Map
<
String
,
Object
>
result
)
{
Activity
activity
=
this
.
getActivity
();
activity
.
finish
();
}
@Override
public
String
getContainerUrl
()
{
...
...
example/lib/simple_page_widgets.dart
View file @
77af051a
...
...
@@ -108,6 +108,10 @@ class _FlutterRouteWidgetState extends State<FlutterRouteWidget> {
final
String
message
=
widget
.
message
;
return
Scaffold
(
appBar:
AppBar
(
brightness:
Brightness
.
light
,
backgroundColor:
Colors
.
white
,
textTheme:
new
TextTheme
(
title:
TextStyle
(
color:
Colors
.
black
))
,
title:
Text
(
'flutter_boost_example'
),
),
body:
SingleChildScrollView
(
...
...
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