File tree Expand file tree Collapse file tree 12 files changed +154
-232
lines changed
java/com/dfa/flutterchatdemo Expand file tree Collapse file tree 12 files changed +154
-232
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 12
12
android : name =" com.google.firebase.messaging.default_notification_icon"
13
13
android : resource =" @mipmap/ic_launcher" />
14
14
<activity
15
- android : name =" .MainActivity "
15
+ android : name =" io.flutter.embedding.android.FlutterActivity "
16
16
android : configChanges =" orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
17
17
android : hardwareAccelerated =" true"
18
18
android : launchMode =" singleTop"
19
19
android : theme =" @style/LaunchTheme"
20
20
android : windowSoftInputMode =" adjustResize" >
21
+ <!-- Specify that the launch screen should continue being displayed -->
22
+ <!-- until Flutter renders its first frame. -->
21
23
<meta-data
22
- android : name =" io.flutter.app.android.SplashScreenUntilFirstFrame"
23
- android : value =" true" />
24
+ android : name =" io.flutter.embedding.android.SplashScreenDrawable"
25
+ android : resource =" @drawable/launch_background" />
26
+
27
+ <!-- Theme to apply as soon as Flutter begins rendering frames -->
28
+ <meta-data
29
+ android : name =" io.flutter.embedding.android.NormalTheme"
30
+ android : resource =" @style/NormalTheme"
31
+ />
32
+
33
+ <meta-data
34
+ android : name =" flutterEmbedding"
35
+ android : value =" 2" />
24
36
25
37
<intent-filter >
26
38
<action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change 3
3
import io .flutter .app .FlutterApplication ;
4
4
import io .flutter .plugin .common .PluginRegistry ;
5
5
import io .flutter .plugin .common .PluginRegistry .PluginRegistrantCallback ;
6
- import io .flutter .plugins .GeneratedPluginRegistrant ;
6
+ import io .flutter .plugins .firebasemessaging . FirebaseMessagingPlugin ;
7
7
import io .flutter .plugins .firebasemessaging .FlutterFirebaseMessagingService ;
8
8
9
9
public class Application extends FlutterApplication implements PluginRegistrantCallback {
10
- @ Override
11
- public void onCreate () {
12
- super .onCreate ();
13
- FlutterFirebaseMessagingService .setPluginRegistrant (this );
14
- }
10
+ @ Override
11
+ public void onCreate () {
12
+ super .onCreate ();
13
+ FlutterFirebaseMessagingService .setPluginRegistrant (this );
14
+ }
15
15
16
- @ Override
17
- public void registerWith (PluginRegistry registry ) {
18
- GeneratedPluginRegistrant .registerWith (registry );
19
- }
16
+ @ Override
17
+ public void registerWith (PluginRegistry registry ) {
18
+ FirebaseMessagingPlugin .registerWith (registry . registrarFor ( "io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin" ) );
19
+ }
20
20
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<resources >
3
3
<style name =" LaunchTheme" parent =" @android:style/Theme.Black.NoTitleBar" >
4
- <!-- Show a splash screen on the activity. Automatically removed when
5
- Flutter draws its first frame -->
4
+ <item name =" android:windowBackground" >@drawable/launch_background</item >
5
+ </style >
6
+ <style name =" NormalTheme" parent =" @android:style/Theme.Black.NoTitleBar" >
6
7
<item name =" android:windowBackground" >@drawable/launch_background</item >
7
8
</style >
8
9
</resources >
Original file line number Diff line number Diff line change
1
+ include ' :app'
Original file line number Diff line number Diff line change
1
+ 3964cc4d9cced61b13982516c542274d
You can’t perform that action at this time.
0 commit comments