From 9a357486a35fcea1034a9f99dfe0315bc0397c77 Mon Sep 17 00:00:00 2001 From: Resh Date: Thu, 19 Dec 2024 09:10:22 +0700 Subject: [PATCH] chore: update and set minSdk to 24, and dispose emai controller in forgot password screen --- android/app/build.gradle | 4 ++-- lib/core/services/constants.dart | 4 ++-- .../screens/forgot_password/forgot_password_screen.dart | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 7a6b37b..1cf81e5 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -14,7 +14,7 @@ android { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } - + kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8 } @@ -24,7 +24,7 @@ android { applicationId = "com.example.english_learning" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. - minSdk = flutter.minSdkVersion + minSdk = 24 targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName diff --git a/lib/core/services/constants.dart b/lib/core/services/constants.dart index 8ff706a..f255a00 100644 --- a/lib/core/services/constants.dart +++ b/lib/core/services/constants.dart @@ -1,3 +1,3 @@ -const String baseUrl = 'https://z30xrgl5-3001.asse.devtunnels.ms/'; +const String baseUrl = 'http://54.173.167.62/'; -const String mediaUrl = 'https://z30xrgl5-3001.asse.devtunnels.ms/api/uploads/'; +const String mediaUrl = 'http://54.173.167.62/api/uploads/'; diff --git a/lib/features/auth/screens/forgot_password/forgot_password_screen.dart b/lib/features/auth/screens/forgot_password/forgot_password_screen.dart index 801d311..9b8fa85 100644 --- a/lib/features/auth/screens/forgot_password/forgot_password_screen.dart +++ b/lib/features/auth/screens/forgot_password/forgot_password_screen.dart @@ -169,4 +169,10 @@ class _ForgotPasswordScreenState extends State { ), ); } + + @override + void dispose() { + _emailController.dispose(); + super.dispose(); + } }