Skip to content

Commit 1c6b23a

Browse files
committed
Add load more list user instead of load all
Hide loading when cancel login Remove some comment unecessarry at pubspec Upgrading pre 1.12 Android projects (just for example)
1 parent da8aa97 commit 1c6b23a

File tree

12 files changed

+154
-232
lines changed

12 files changed

+154
-232
lines changed

.flutter-plugins-dependencies

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

android/app/src/main/AndroidManifest.xml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,27 @@
1212
android:name="com.google.firebase.messaging.default_notification_icon"
1313
android:resource="@mipmap/ic_launcher" />
1414
<activity
15-
android:name=".MainActivity"
15+
android:name="io.flutter.embedding.android.FlutterActivity"
1616
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
1717
android:hardwareAccelerated="true"
1818
android:launchMode="singleTop"
1919
android:theme="@style/LaunchTheme"
2020
android:windowSoftInputMode="adjustResize">
21+
<!-- Specify that the launch screen should continue being displayed -->
22+
<!-- until Flutter renders its first frame. -->
2123
<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" />
2436

2537
<intent-filter>
2638
<action android:name="android.intent.action.MAIN" />

android/app/src/main/java/com/dfa/flutterchatdemo/Application.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
import io.flutter.app.FlutterApplication;
44
import io.flutter.plugin.common.PluginRegistry;
55
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback;
6-
import io.flutter.plugins.GeneratedPluginRegistrant;
6+
import io.flutter.plugins.firebasemessaging.FirebaseMessagingPlugin;
77
import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService;
88

99
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+
}
1515

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+
}
2020
}

android/app/src/main/java/com/dfa/flutterchatdemo/MainActivity.java

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<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">
67
<item name="android:windowBackground">@drawable/launch_background</item>
78
</style>
89
</resources>

android/settings_aar.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ':app'

ios/Flutter/.last_build_id

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3964cc4d9cced61b13982516c542274d

0 commit comments

Comments
 (0)