From a31eb0bdf086276478cdb2243582c4f4820be726 Mon Sep 17 00:00:00 2001 From: Aviral Rakesh Gupta Date: Fri, 18 Jun 2021 14:49:48 +0530 Subject: [PATCH] updated the android embedding version --- android/app/src/main/AndroidManifest.xml | 8 +++++--- .../java/co/appbrewery/bmicalculator/MainActivity.java | 10 ++-------- android/app/src/main/res/values/styles.xml | 4 ++-- lib/main.dart | 1 + 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index f0151c3..696ca74 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -13,7 +13,6 @@ additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> + android:name="io.flutter.embedding.android.SplashScreenDrawable" + android:resource="@drawable/launch_background" /> + diff --git a/android/app/src/main/java/co/appbrewery/bmicalculator/MainActivity.java b/android/app/src/main/java/co/appbrewery/bmicalculator/MainActivity.java index f6a4330..4f68f03 100644 --- a/android/app/src/main/java/co/appbrewery/bmicalculator/MainActivity.java +++ b/android/app/src/main/java/co/appbrewery/bmicalculator/MainActivity.java @@ -1,13 +1,7 @@ package co.appbrewery.bmicalculator; -import android.os.Bundle; -import io.flutter.app.FlutterActivity; -import io.flutter.plugins.GeneratedPluginRegistrant; +import io.flutter.embedding.android.FlutterActivity; public class MainActivity extends FlutterActivity { - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - GeneratedPluginRegistrant.registerWith(this); - } + } diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index 00fa441..7ade44e 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -1,8 +1,8 @@ + + diff --git a/lib/main.dart b/lib/main.dart index 2d04eb6..e6d10aa 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -7,6 +7,7 @@ class BMICalculator extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( + debugShowCheckedModeBanner: false, theme: ThemeData.dark().copyWith( primaryColor: Color(0xFF0A0E21), scaffoldBackgroundColor: Color(0xFF0A0E21),