From 72d41d419d4938e478bc6771a8161b98054fdca7 Mon Sep 17 00:00:00 2001 From: athulacaj Date: Mon, 9 Oct 2023 23:04:31 +0530 Subject: [PATCH] support to new version of flutter and nullsafety --- android/app/build.gradle | 4 +- android/app/src/main/AndroidManifest.xml | 1 + android/build.gradle | 13 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- lib/models/core/recipe.dart | 53 +- lib/models/helper/recipe_helper.dart | 502 ++++++++++++------ lib/views/screens/bookmarks_page.dart | 36 +- lib/views/screens/explore_page.dart | 44 +- lib/views/screens/full_screen_image.dart | 5 +- lib/views/screens/newly_posted_page.dart | 9 +- lib/views/screens/profile_page.dart | 32 +- lib/views/screens/recipe_detail_page.dart | 110 ++-- lib/views/screens/search_page.dart | 47 +- lib/views/widgets/category_card.dart | 11 +- lib/views/widgets/custom_app_bar.dart | 14 +- .../widgets/custom_bottom_navigation_bar.dart | 38 +- lib/views/widgets/custom_text_field.dart | 14 +- lib/views/widgets/dummy_search_bar.dart | 11 +- lib/views/widgets/featured_recipe_card.dart | 12 +- lib/views/widgets/ingridient_tile.dart | 16 +- .../widgets/modals/search_filter_modal.dart | 32 +- lib/views/widgets/popular_recipe_card.dart | 32 +- lib/views/widgets/recipe_tile.dart | 11 +- .../widgets/recommendation_recipe_card.dart | 10 +- lib/views/widgets/review_tile.dart | 18 +- lib/views/widgets/step_tile.dart | 22 +- lib/views/widgets/user_info_tile.dart | 20 +- pubspec.lock | 128 +++-- pubspec.yaml | 2 +- 29 files changed, 841 insertions(+), 408 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 111818a..2e1ae3a 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 30 + compileSdkVersion 31 sourceSets { main.java.srcDirs += 'src/main/kotlin' @@ -36,7 +36,7 @@ android { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.hungry" minSdkVersion 16 - targetSdkVersion 30 + targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 8cc47aa..3a6851b 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -9,6 +9,7 @@ android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" + android:exported="true" android:windowSoftInputMode="adjustResize">