diff --git a/docs/assets/foldable_phone.gif b/docs/assets/foldable_phone.gif new file mode 100644 index 00000000..a918d343 Binary files /dev/null and b/docs/assets/foldable_phone.gif differ diff --git a/sheet/example/.metadata b/sheet/example/.metadata index f6bf8757..eb7109d9 100644 --- a/sheet/example/.metadata +++ b/sheet/example/.metadata @@ -1,10 +1,45 @@ # This file tracks properties of this Flutter project. # Used by Flutter tool to assess capabilities and perform upgrades etc. # -# This file should be version controlled and should not be manually edited. +# This file should be version controlled. version: - revision: 8cb266511897d79e6d7d60c08c0e425f4cdaf433 - channel: master + revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + channel: stable project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + - platform: android + create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + - platform: ios + create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + - platform: linux + create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + - platform: macos + create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + - platform: web + create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + - platform: windows + create_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + base_revision: 4f9d92fbbdf072a70a70d2179a9f87392b94104c + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/sheet/example/android/.gitignore b/sheet/example/android/.gitignore index 0a741cb4..6f568019 100644 --- a/sheet/example/android/.gitignore +++ b/sheet/example/android/.gitignore @@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app key.properties +**/*.keystore +**/*.jks diff --git a/sheet/example/android/app/build.gradle b/sheet/example/android/app/build.gradle index 3932aa91..13d67f04 100644 --- a/sheet/example/android/app/build.gradle +++ b/sheet/example/android/app/build.gradle @@ -26,21 +26,29 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 29 + compileSdkVersion flutter.compileSdkVersion + ndkVersion flutter.ndkVersion - sourceSets { - main.java.srcDirs += 'src/main/kotlin' + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' } - lintOptions { - disable 'InvalidPackage' + sourceSets { + main.java.srcDirs += 'src/main/kotlin' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.example" - minSdkVersion 16 - targetSdkVersion 29 + applicationId "jb.example.example" + // You can update the following values to match your application needs. + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName } diff --git a/sheet/example/android/app/src/debug/AndroidManifest.xml b/sheet/example/android/app/src/debug/AndroidManifest.xml index c208884f..58d9419f 100644 --- a/sheet/example/android/app/src/debug/AndroidManifest.xml +++ b/sheet/example/android/app/src/debug/AndroidManifest.xml @@ -1,6 +1,7 @@ - diff --git a/sheet/example/android/app/src/main/AndroidManifest.xml b/sheet/example/android/app/src/main/AndroidManifest.xml index 34dd77ef..3b215f8b 100644 --- a/sheet/example/android/app/src/main/AndroidManifest.xml +++ b/sheet/example/android/app/src/main/AndroidManifest.xml @@ -1,10 +1,12 @@ + package="jb.example.example"> - - diff --git a/sheet/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt b/sheet/example/android/app/src/main/kotlin/jb/example/example/MainActivity.kt similarity index 77% rename from sheet/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt rename to sheet/example/android/app/src/main/kotlin/jb/example/example/MainActivity.kt index e793a000..b0f0bdc5 100644 --- a/sheet/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt +++ b/sheet/example/android/app/src/main/kotlin/jb/example/example/MainActivity.kt @@ -1,4 +1,4 @@ -package com.example.example +package jb.example.example import io.flutter.embedding.android.FlutterActivity diff --git a/sheet/example/android/app/src/main/res/values-night/styles.xml b/sheet/example/android/app/src/main/res/values-night/styles.xml index 449a9f93..06952be7 100644 --- a/sheet/example/android/app/src/main/res/values-night/styles.xml +++ b/sheet/example/android/app/src/main/res/values-night/styles.xml @@ -3,14 +3,14 @@