Updated the project to work in android studio 2023.3.1
This commit is contained in:
parent
b07fba6877
commit
3905c53326
29 changed files with 204 additions and 87 deletions
5
.idea/misc.xml
generated
5
.idea/misc.xml
generated
|
@ -3,7 +3,10 @@
|
||||||
<component name="FrameworkDetectionExcludesConfiguration">
|
<component name="FrameworkDetectionExcludesConfiguration">
|
||||||
<type id="android" />
|
<type id="android" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_14" project-jdk-name="Android API 31 Platform" project-jdk-type="Android SDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_20" project-jdk-name="Android API 34, extension level 7 Platform" project-jdk-type="Android SDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="ProjectType">
|
||||||
|
<option name="id" value="io.flutter" />
|
||||||
|
</component>
|
||||||
</project>
|
</project>
|
19
android/.idea/compiler.xml
generated
19
android/.idea/compiler.xml
generated
|
@ -2,15 +2,20 @@
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="CompilerConfiguration">
|
<component name="CompilerConfiguration">
|
||||||
<bytecodeTargetLevel target="1.8">
|
<bytecodeTargetLevel target="1.8">
|
||||||
<module name="android.app" target="11" />
|
<module name="android.app" target="17" />
|
||||||
<module name="android.file_picker" target="11" />
|
<module name="android.file_picker" target="17" />
|
||||||
<module name="android.flutter_local_notifications" target="11" />
|
<module name="android.flutter_local_notifications" target="17" />
|
||||||
<module name="android.flutter_plugin_android_lifecycle" target="11" />
|
<module name="android.flutter_plugin_android_lifecycle" target="17" />
|
||||||
<module name="android.flutter_ringtone_player" target="11" />
|
<module name="android.flutter_ringtone_player" target="17" />
|
||||||
<module name="android.path_provider" target="11" />
|
<module name="android.path_provider" target="11" />
|
||||||
<module name="android.share_plus" target="11" />
|
<module name="android.path_provider_android" target="17" />
|
||||||
|
<module name="android.share_plus" target="17" />
|
||||||
<module name="android.url_launcher" target="11" />
|
<module name="android.url_launcher" target="11" />
|
||||||
<module name="android.vibration" target="11" />
|
<module name="android.url_launcher_android" target="17" />
|
||||||
|
<module name="android.vibration" target="17" />
|
||||||
|
<module name="gradle" target="17" />
|
||||||
|
<module name="gradle.main" target="17" />
|
||||||
|
<module name="gradle.test" target="17" />
|
||||||
</bytecodeTargetLevel>
|
</bytecodeTargetLevel>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
10
android/.idea/deploymentTargetSelector.xml
generated
Normal file
10
android/.idea/deploymentTargetSelector.xml
generated
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="deploymentTargetSelector">
|
||||||
|
<selectionStates>
|
||||||
|
<SelectionState runConfigName="app">
|
||||||
|
<option name="selectionMode" value="DROPDOWN" />
|
||||||
|
</SelectionState>
|
||||||
|
</selectionStates>
|
||||||
|
</component>
|
||||||
|
</project>
|
37
android/.idea/gradle.xml
generated
37
android/.idea/gradle.xml
generated
|
@ -4,26 +4,37 @@
|
||||||
<component name="GradleSettings">
|
<component name="GradleSettings">
|
||||||
<option name="linkedExternalProjectsSettings">
|
<option name="linkedExternalProjectsSettings">
|
||||||
<GradleProjectSettings>
|
<GradleProjectSettings>
|
||||||
<option name="testRunner" value="GRADLE" />
|
<compositeConfiguration>
|
||||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
<compositeBuild compositeDefinitionSource="SCRIPT">
|
||||||
|
<builds>
|
||||||
|
<build path="$PROJECT_DIR$/../../../../../tools/flutter/packages/flutter_tools/gradle" name="gradle">
|
||||||
|
<projects>
|
||||||
|
<project path="$PROJECT_DIR$/../../../../../tools/flutter/packages/flutter_tools/gradle" />
|
||||||
|
</projects>
|
||||||
|
</build>
|
||||||
|
</builds>
|
||||||
|
</compositeBuild>
|
||||||
|
</compositeConfiguration>
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
<option name="gradleHome" value="C:/ProgramData/chocolatey/lib/gradle/tools/gradle-7.1" />
|
<option name="gradleHome" value="$PROJECT_DIR$/../../../../../ProgramData/chocolatey/lib/gradle/tools/gradle-7.1" />
|
||||||
|
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$/../../../lib/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-4.0.2/android" />
|
<option value="$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/file_picker-4.6.1/android" />
|
||||||
<option value="$PROJECT_DIR$/../../../lib/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-8.1.1+1/android" />
|
<option value="$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_local_notifications-8.1.1+1/android" />
|
||||||
<option value="$PROJECT_DIR$/../../../lib/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_timezone-2.0.0/android" />
|
<option value="$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_native_timezone_updated_gradle-2.0.3/android" />
|
||||||
<option value="$PROJECT_DIR$/../../../lib/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.3/android" />
|
<option value="$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.19/android" />
|
||||||
<option value="$PROJECT_DIR$/../../../lib/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_ringtone_player-3.0.0/android" />
|
<option value="$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/flutter_ringtone_player-3.2.0/android" />
|
||||||
<option value="$PROJECT_DIR$/../../../lib/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.3/android" />
|
<option value="$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/path_provider_android-2.2.4/android" />
|
||||||
<option value="$PROJECT_DIR$/../../../lib/flutter/.pub-cache/hosted/pub.dartlang.org/share_plus-2.1.4/android" />
|
<option value="$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/share_plus-2.2.0/android" />
|
||||||
<option value="$PROJECT_DIR$/../../../lib/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.9/android" />
|
<option value="$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/url_launcher_android-6.3.1/android" />
|
||||||
<option value="$PROJECT_DIR$/../../../lib/flutter/.pub-cache/hosted/pub.dartlang.org/vibration-1.7.4-nullsafety.0/android" />
|
<option value="$USER_HOME$/AppData/Local/Pub/Cache/hosted/pub.dev/vibration-1.7.7/android" />
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
<option value="$PROJECT_DIR$/app" />
|
<option value="$PROJECT_DIR$/app" />
|
||||||
|
<option value="$PROJECT_DIR$/../../../../../tools/flutter/packages/flutter_tools/gradle" />
|
||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
<option name="resolveModulePerSourceSet" value="false" />
|
<option name="resolveExternalAnnotations" value="false" />
|
||||||
</GradleProjectSettings>
|
</GradleProjectSettings>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
|
6
android/.idea/kotlinc.xml
generated
Normal file
6
android/.idea/kotlinc.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="KotlinJpsPluginSettings">
|
||||||
|
<option name="version" value="1.7.20" />
|
||||||
|
</component>
|
||||||
|
</project>
|
10
android/.idea/migrations.xml
generated
Normal file
10
android/.idea/migrations.xml
generated
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectMigrations">
|
||||||
|
<option name="MigrateToGradleLocalJavaHome">
|
||||||
|
<set>
|
||||||
|
<option value="$PROJECT_DIR$" />
|
||||||
|
</set>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
2
android/.idea/misc.xml
generated
2
android/.idea/misc.xml
generated
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="11" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
|
45
android/.idea/modules.xml
generated
45
android/.idea/modules.xml
generated
|
@ -2,7 +2,50 @@
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<modules>
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/android.iml" filepath="$PROJECT_DIR$/.idea/android.iml" />
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/android.iml" filepath="$PROJECT_DIR$/.idea/modules/android.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/app/android.app.iml" filepath="$PROJECT_DIR$/.idea/modules/app/android.app.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/app/android.app.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/app/android.app.androidTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/app/android.app.main.iml" filepath="$PROJECT_DIR$/.idea/modules/app/android.app.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/app/android.app.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/app/android.app.unitTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/664153905/android.file_picker.iml" filepath="$PROJECT_DIR$/.idea/modules/664153905/android.file_picker.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/664153905/android.file_picker.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/664153905/android.file_picker.androidTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/664153905/android.file_picker.main.iml" filepath="$PROJECT_DIR$/.idea/modules/664153905/android.file_picker.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/664153905/android.file_picker.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/664153905/android.file_picker.unitTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-189297514/android.flutter_local_notifications.iml" filepath="$PROJECT_DIR$/.idea/modules/-189297514/android.flutter_local_notifications.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-189297514/android.flutter_local_notifications.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-189297514/android.flutter_local_notifications.androidTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-189297514/android.flutter_local_notifications.main.iml" filepath="$PROJECT_DIR$/.idea/modules/-189297514/android.flutter_local_notifications.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-189297514/android.flutter_local_notifications.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-189297514/android.flutter_local_notifications.unitTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-1893818806/android.flutter_native_timezone_updated_gradle.iml" filepath="$PROJECT_DIR$/.idea/modules/-1893818806/android.flutter_native_timezone_updated_gradle.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-1893818806/android.flutter_native_timezone_updated_gradle.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-1893818806/android.flutter_native_timezone_updated_gradle.androidTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-1893818806/android.flutter_native_timezone_updated_gradle.main.iml" filepath="$PROJECT_DIR$/.idea/modules/-1893818806/android.flutter_native_timezone_updated_gradle.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-1893818806/android.flutter_native_timezone_updated_gradle.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-1893818806/android.flutter_native_timezone_updated_gradle.unitTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/383427052/android.flutter_plugin_android_lifecycle.iml" filepath="$PROJECT_DIR$/.idea/modules/383427052/android.flutter_plugin_android_lifecycle.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/383427052/android.flutter_plugin_android_lifecycle.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/383427052/android.flutter_plugin_android_lifecycle.androidTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/383427052/android.flutter_plugin_android_lifecycle.main.iml" filepath="$PROJECT_DIR$/.idea/modules/383427052/android.flutter_plugin_android_lifecycle.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/383427052/android.flutter_plugin_android_lifecycle.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/383427052/android.flutter_plugin_android_lifecycle.unitTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/399383413/android.flutter_ringtone_player.iml" filepath="$PROJECT_DIR$/.idea/modules/399383413/android.flutter_ringtone_player.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/399383413/android.flutter_ringtone_player.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/399383413/android.flutter_ringtone_player.androidTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/399383413/android.flutter_ringtone_player.main.iml" filepath="$PROJECT_DIR$/.idea/modules/399383413/android.flutter_ringtone_player.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/399383413/android.flutter_ringtone_player.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/399383413/android.flutter_ringtone_player.unitTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-529228936/android.path_provider_android.iml" filepath="$PROJECT_DIR$/.idea/modules/-529228936/android.path_provider_android.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-529228936/android.path_provider_android.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-529228936/android.path_provider_android.androidTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-529228936/android.path_provider_android.main.iml" filepath="$PROJECT_DIR$/.idea/modules/-529228936/android.path_provider_android.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-529228936/android.path_provider_android.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-529228936/android.path_provider_android.unitTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-804715113/android.share_plus.iml" filepath="$PROJECT_DIR$/.idea/modules/-804715113/android.share_plus.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-804715113/android.share_plus.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-804715113/android.share_plus.androidTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-804715113/android.share_plus.main.iml" filepath="$PROJECT_DIR$/.idea/modules/-804715113/android.share_plus.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-804715113/android.share_plus.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-804715113/android.share_plus.unitTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-2045426685/android.url_launcher_android.iml" filepath="$PROJECT_DIR$/.idea/modules/-2045426685/android.url_launcher_android.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-2045426685/android.url_launcher_android.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-2045426685/android.url_launcher_android.androidTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-2045426685/android.url_launcher_android.main.iml" filepath="$PROJECT_DIR$/.idea/modules/-2045426685/android.url_launcher_android.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-2045426685/android.url_launcher_android.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-2045426685/android.url_launcher_android.unitTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-508181482/android.vibration.iml" filepath="$PROJECT_DIR$/.idea/modules/-508181482/android.vibration.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-508181482/android.vibration.androidTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-508181482/android.vibration.androidTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-508181482/android.vibration.main.iml" filepath="$PROJECT_DIR$/.idea/modules/-508181482/android.vibration.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-508181482/android.vibration.unitTest.iml" filepath="$PROJECT_DIR$/.idea/modules/-508181482/android.vibration.unitTest.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-679872415/gradle.iml" filepath="$PROJECT_DIR$/.idea/modules/-679872415/gradle.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-679872415/gradle.main.iml" filepath="$PROJECT_DIR$/.idea/modules/-679872415/gradle.main.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/modules/-679872415/gradle.test.iml" filepath="$PROJECT_DIR$/.idea/modules/-679872415/gradle.test.iml" />
|
||||||
</modules>
|
</modules>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -8,7 +8,7 @@ if (localPropertiesFile.exists()) {
|
||||||
|
|
||||||
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
||||||
if (flutterRoot == null) {
|
if (flutterRoot == null) {
|
||||||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
throw new FileNotFoundException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
||||||
}
|
}
|
||||||
|
|
||||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||||
|
@ -32,7 +32,7 @@ if (keystorePropertiesFile.exists()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 30
|
compileSdkVersion 34
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main.java.srcDirs += 'src/main/kotlin'
|
main.java.srcDirs += 'src/main/kotlin'
|
||||||
|
@ -41,8 +41,8 @@ android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||||
applicationId "net.broodjeaap.pizzaplanner.pizzaplanner"
|
applicationId "net.broodjeaap.pizzaplanner.pizzaplanner"
|
||||||
minSdkVersion 16
|
minSdkVersion flutter.minSdkVersion
|
||||||
targetSdkVersion 30
|
targetSdkVersion 34
|
||||||
versionCode flutterVersionCode.toInteger()
|
versionCode flutterVersionCode.toInteger()
|
||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,7 @@ android {
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
buildToolsVersion '34.0.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
flutter {
|
flutter {
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
android:icon="@mipmap/app_icon">
|
android:icon="@mipmap/app_icon">
|
||||||
<activity
|
<activity
|
||||||
android:name=".MainActivity"
|
android:name=".MainActivity"
|
||||||
|
android:exported="true"
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleTop"
|
||||||
android:theme="@style/LaunchTheme"
|
android:theme="@style/LaunchTheme"
|
||||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||||
|
@ -33,12 +34,28 @@
|
||||||
<action android:name="android.intent.action.MAIN"/>
|
<action android:name="android.intent.action.MAIN"/>
|
||||||
<category android:name="android.intent.category.LAUNCHER"/>
|
<category android:name="android.intent.category.LAUNCHER"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
</activity>
|
</activity>
|
||||||
<!-- Don't delete the meta-data below.
|
<!-- Don't delete the meta-data below.
|
||||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="flutterEmbedding"
|
android:name="flutterEmbedding"
|
||||||
android:value="2" />
|
android:value="2" />
|
||||||
|
<receiver
|
||||||
|
android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver"
|
||||||
|
android:exported="true"
|
||||||
|
/>
|
||||||
|
<receiver
|
||||||
|
android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver"
|
||||||
|
android:exported="true"
|
||||||
|
>
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
||||||
|
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
|
||||||
|
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
|
||||||
|
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/>
|
||||||
|
</intent-filter>
|
||||||
|
</receiver>
|
||||||
</application>
|
</application>
|
||||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = '1.3.50'
|
ext.kotlin_version = '1.7.20'
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
|
@ -11,7 +11,6 @@ buildscript {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
@ -25,6 +24,6 @@ subprojects {
|
||||||
project.evaluationDependsOn(':app')
|
project.evaluationDependsOn(':app')
|
||||||
}
|
}
|
||||||
|
|
||||||
task clean(type: Delete) {
|
tasks.register("clean", Delete) {
|
||||||
delete rootProject.buildDir
|
delete rootProject.buildDir
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
|
||||||
|
|
|
@ -1,11 +1,25 @@
|
||||||
include ':app'
|
pluginManagement {
|
||||||
|
def flutterSdkPath = {
|
||||||
|
def properties = new Properties()
|
||||||
|
file("local.properties").withInputStream { properties.load(it) }
|
||||||
|
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||||
|
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||||
|
return flutterSdkPath
|
||||||
|
}()
|
||||||
|
|
||||||
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
|
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||||
def properties = new Properties()
|
|
||||||
|
|
||||||
assert localPropertiesFile.exists()
|
repositories {
|
||||||
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
|
mavenCentral()
|
||||||
|
gradlePluginPortal()
|
||||||
|
google()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
plugins {
|
||||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||||
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
|
id "com.android.application" version "7.4.2" apply false
|
||||||
|
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
|
||||||
|
}
|
||||||
|
|
||||||
|
include ":app"
|
|
@ -42,4 +42,4 @@ class Ingredient extends HiveObject {
|
||||||
}
|
}
|
||||||
return ingredientWeight.toStringAsFixed(0);
|
return ingredientWeight.toStringAsFixed(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
import 'package:pizzaplanner/util.dart';
|
|
||||||
|
|
||||||
import 'package:pizzaplanner/entities/PizzaRecipe/ingredient.dart';
|
import 'package:pizzaplanner/entities/PizzaRecipe/ingredient.dart';
|
||||||
import 'package:pizzaplanner/entities/PizzaRecipe/recipe_step.dart';
|
import 'package:pizzaplanner/entities/PizzaRecipe/recipe_step.dart';
|
||||||
import 'package:pizzaplanner/entities/PizzaRecipe/recipe_substep.dart';
|
import 'package:pizzaplanner/entities/PizzaRecipe/recipe_substep.dart';
|
||||||
|
import 'package:pizzaplanner/util.dart';
|
||||||
import 'package:yaml/yaml.dart';
|
import 'package:yaml/yaml.dart';
|
||||||
|
|
||||||
part 'pizza_recipe.g.dart';
|
part 'pizza_recipe.g.dart';
|
||||||
|
@ -64,7 +63,7 @@ class PizzaRecipe extends HiveObject {
|
||||||
TableCell(child: Center(child: Text("Per Ball"))),
|
TableCell(child: Center(child: Text("Per Ball"))),
|
||||||
TableCell(child: Center(child: Text("Total"))),
|
TableCell(child: Center(child: Text("Total"))),
|
||||||
]
|
]
|
||||||
)
|
),
|
||||||
|
|
||||||
] +
|
] +
|
||||||
ingredients.map((ingredient) =>
|
ingredients.map((ingredient) =>
|
||||||
|
@ -93,9 +92,10 @@ class PizzaRecipe extends HiveObject {
|
||||||
return fromParsedYaml(loadYaml(yamlString) as YamlMap);
|
return fromParsedYaml(loadYaml(yamlString) as YamlMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Future<PizzaRecipe> fromParsedYaml(YamlMap recipe) async {
|
static Future<PizzaRecipe> fromParsedYaml(YamlMap recipeIn) async {
|
||||||
if (recipe.containsKey("recipe")){
|
var recipe = recipeIn;
|
||||||
recipe = recipe["recipe"] as YamlMap;
|
if (!recipeIn.containsKey("recipe")){
|
||||||
|
recipe = recipeIn["recipe"] as YamlMap;
|
||||||
}
|
}
|
||||||
final String name = recipe["name"] as String;
|
final String name = recipe["name"] as String;
|
||||||
final String? image = recipe.containsKey("image") ? recipe["image"] as String : null;
|
final String? image = recipe.containsKey("image") ? recipe["image"] as String : null;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
||||||
import 'package:flutter_native_timezone/flutter_native_timezone.dart';
|
import 'package:flutter_native_timezone_updated_gradle/flutter_native_timezone.dart';
|
||||||
import 'package:pizzaplanner/entities/pizza_event.dart';
|
import 'package:pizzaplanner/entities/pizza_event.dart';
|
||||||
import 'package:pizzaplanner/entities/PizzaRecipe/ingredient.dart';
|
import 'package:pizzaplanner/entities/PizzaRecipe/ingredient.dart';
|
||||||
import 'package:pizzaplanner/entities/PizzaRecipe/pizza_recipe.dart';
|
import 'package:pizzaplanner/entities/PizzaRecipe/pizza_recipe.dart';
|
||||||
|
@ -121,7 +121,7 @@ class PizzaPlannerState extends State<PizzaPlanner> {
|
||||||
headline3: TextStyle(fontSize: 50, color: Color.fromARGB(255, 10, 10, 10)),
|
headline3: TextStyle(fontSize: 50, color: Color.fromARGB(255, 10, 10, 10)),
|
||||||
),
|
),
|
||||||
primaryColor: const Color.fromARGB(255, 200, 42, 53),
|
primaryColor: const Color.fromARGB(255, 200, 42, 53),
|
||||||
buttonColor: const Color.fromARGB(255, 200, 42, 53),
|
primaryColorDark: const Color.fromARGB(255, 200, 42, 53),
|
||||||
highlightColor: const Color.fromARGB(255, 53, 200, 42),
|
highlightColor: const Color.fromARGB(255, 53, 200, 42),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_datetime_picker/flutter_datetime_picker.dart';
|
import 'package:flutter_datetime_picker_plus/flutter_datetime_picker_plus.dart';
|
||||||
import 'package:fluttericon/font_awesome5_icons.dart';
|
import 'package:fluttericon/font_awesome5_icons.dart';
|
||||||
|
|
||||||
import 'package:pizzaplanner/entities/pizza_event.dart';
|
import 'package:pizzaplanner/entities/pizza_event.dart';
|
||||||
|
@ -150,7 +150,7 @@ class AddPizzaEventPageState extends State<AddPizzaEventPage> {
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: 70,
|
height: 70,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ class ConfirmPizzaEventState extends State<ConfirmPizzaEventDialog> {
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: 50,
|
height: 50,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
DatePicker.showDateTimePicker(context,
|
DatePicker.showDateTimePicker(context,
|
||||||
|
@ -293,7 +293,7 @@ class ConfirmPizzaEventState extends State<ConfirmPizzaEventDialog> {
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: 70,
|
height: 70,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.pop(context, eventTime);
|
Navigator.pop(context, eventTime);
|
||||||
|
|
|
@ -45,7 +45,7 @@ class AddRecipeURLPageState extends State<AddRecipeURLPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 5,
|
flex: 5,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:hive_flutter/hive_flutter.dart';
|
import 'package:hive_flutter/hive_flutter.dart';
|
||||||
import 'package:pizzaplanner/entities/pizza_event.dart';
|
import 'package:pizzaplanner/entities/pizza_event.dart';
|
||||||
import 'package:pizzaplanner/pages/pizza_event_page.dart';
|
|
||||||
import 'package:pizzaplanner/pages/scaffold.dart';
|
import 'package:pizzaplanner/pages/scaffold.dart';
|
||||||
import 'package:pizzaplanner/widgets/pizza_event_widget.dart';
|
import 'package:pizzaplanner/widgets/pizza_event_widget.dart';
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -108,7 +108,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -126,7 +126,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
||||||
),
|
),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
Container(
|
Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
@ -145,7 +145,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
||||||
child: Text("Steps")
|
child: Text("Steps")
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
@ -161,7 +161,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
||||||
] + pizzaRecipe.recipeSteps.map((recipeStep) => buildRecipeStepRow(recipeStep)).toList() + [
|
] + pizzaRecipe.recipeSteps.map((recipeStep) => buildRecipeStepRow(recipeStep)).toList() + [
|
||||||
const Divider(),
|
const Divider(),
|
||||||
Container(
|
Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -287,7 +287,7 @@ class EditRecipePageState extends State<EditRecipePage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 4,
|
flex: 4,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
FocusScope.of(context).unfocus();
|
FocusScope.of(context).unfocus();
|
||||||
|
|
|
@ -66,7 +66,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -87,7 +87,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -157,7 +157,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
|
||||||
const Divider(),
|
const Divider(),
|
||||||
const Center(child: Text("Sub Steps")),
|
const Center(child: Text("Sub Steps")),
|
||||||
Container(
|
Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
@ -185,7 +185,7 @@ class EditRecipeStepPageState extends State<EditRecipeStepPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 4,
|
flex: 4,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
FocusScope.of(context).unfocus();
|
FocusScope.of(context).unfocus();
|
||||||
|
|
|
@ -58,7 +58,7 @@ class EditRecipeSubStepPageState extends State<EditRecipeSubStepPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -79,7 +79,7 @@ class EditRecipeSubStepPageState extends State<EditRecipeSubStepPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_datetime_picker/flutter_datetime_picker.dart';
|
import 'package:flutter_datetime_picker_plus/flutter_datetime_picker_plus.dart';
|
||||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
|
||||||
import 'package:flutter_ringtone_player/flutter_ringtone_player.dart';
|
import 'package:flutter_ringtone_player/flutter_ringtone_player.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
@ -77,7 +77,7 @@ class PizzaEventNotificationState extends State<PizzaEventNotificationPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 10,
|
flex: 10,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -93,7 +93,7 @@ class PizzaEventNotificationState extends State<PizzaEventNotificationPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 30,
|
flex: 30,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -123,7 +123,7 @@ class PizzaEventNotificationState extends State<PizzaEventNotificationPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 40,
|
flex: 40,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
|
|
@ -51,7 +51,7 @@ class PizzaEventPageState extends State<PizzaEventPage> {
|
||||||
style: Theme.of(context).textTheme.subtitle1
|
style: Theme.of(context).textTheme.subtitle1
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pushNamed(context, RecipePage.route, arguments: widget.pizzaEvent.recipe);
|
Navigator.pushNamed(context, RecipePage.route, arguments: widget.pizzaEvent.recipe);
|
||||||
|
@ -104,7 +104,7 @@ class PizzaEventPageState extends State<PizzaEventPage> {
|
||||||
),
|
),
|
||||||
const Divider(),
|
const Divider(),
|
||||||
if (firstStepDue != null) Container(
|
if (firstStepDue != null) Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
|
@ -123,7 +123,7 @@ class PizzaEventsState extends State<PizzaEventsPage> {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tooltip: "Add Pizza Plans",
|
tooltip: "Add Pizza Plans",
|
||||||
backgroundColor: Theme.of(context).buttonColor,
|
backgroundColor: Theme.of(context).primaryColor,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Row(
|
child: Row(
|
||||||
children: const <Widget>[
|
children: const <Widget>[
|
||||||
|
|
|
@ -92,7 +92,7 @@ class RecipeStepInstructionState extends State<RecipeStepInstructionPage> {
|
||||||
flex: 15,
|
flex: 15,
|
||||||
child: Container(
|
child: Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (page == 0){
|
if (page == 0){
|
||||||
|
@ -116,7 +116,7 @@ class RecipeStepInstructionState extends State<RecipeStepInstructionPage> {
|
||||||
flex: 35,
|
flex: 35,
|
||||||
child: Container(
|
child: Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
if (page == widget.recipeStep.subSteps.length){
|
if (page == widget.recipeStep.subSteps.length){
|
||||||
|
|
|
@ -153,7 +153,7 @@ class RecipesPageState extends State<RecipesPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 5,
|
flex: 5,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -193,7 +193,7 @@ class RecipesPageState extends State<RecipesPage> {
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 5,
|
flex: 5,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Theme.of(context).buttonColor,
|
color: Theme.of(context).primaryColor,
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -216,9 +216,12 @@ class RecipesPageState extends State<RecipesPage> {
|
||||||
if (result == null){
|
if (result == null){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
final path = result.files.single.path ?? "";
|
||||||
|
if (path == "") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
File(result.files.single.path).readAsString().then((String contents) async {
|
File(path).readAsString().then((String contents) async {
|
||||||
final pizzaRecipe = await PizzaRecipe.fromYaml(contents);
|
final pizzaRecipe = await PizzaRecipe.fromYaml(contents);
|
||||||
final pizzaRecipeBox = Hive.box<PizzaRecipe>(PizzaRecipe.hiveName);
|
final pizzaRecipeBox = Hive.box<PizzaRecipe>(PizzaRecipe.hiveName);
|
||||||
pizzaRecipeBox.add(pizzaRecipe);
|
pizzaRecipeBox.add(pizzaRecipe);
|
||||||
|
|
|
@ -44,7 +44,6 @@ Future<List<PizzaRecipe>> getRecipesFromGithub() async {
|
||||||
returnRecipeList.add(await PizzaRecipe.fromParsedYaml(recipe as YamlMap));
|
returnRecipeList.add(await PizzaRecipe.fromParsedYaml(recipe as YamlMap));
|
||||||
}
|
}
|
||||||
return returnRecipeList;
|
return returnRecipeList;
|
||||||
return const [];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> loadAsset(String path) async {
|
Future<String> loadAsset(String path) async {
|
||||||
|
|
|
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 1.1.0
|
version: 1.2.0
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.12.0 <3.0.0"
|
sdk: ">=2.12.0 <3.0.0"
|
||||||
|
@ -29,10 +29,7 @@ dependencies:
|
||||||
# Use with the CupertinoIcons class for iOS style icons.
|
# Use with the CupertinoIcons class for iOS style icons.
|
||||||
cupertino_icons: ^1.0.3
|
cupertino_icons: ^1.0.3
|
||||||
fluttericon: ^2.0.0
|
fluttericon: ^2.0.0
|
||||||
flutter_datetime_picker:
|
flutter_datetime_picker_plus: ^2.2.0
|
||||||
git:
|
|
||||||
url: https://github.com/AlexHartford/flutter_datetime_picker.git
|
|
||||||
ref: "df4ed6fc2e24725604e90f79aedb98a7af7fb04d"
|
|
||||||
yaml: ^3.1.0
|
yaml: ^3.1.0
|
||||||
|
|
||||||
hive: ^2.0.4
|
hive: ^2.0.4
|
||||||
|
@ -41,7 +38,7 @@ dependencies:
|
||||||
rxdart: ^0.27.1
|
rxdart: ^0.27.1
|
||||||
|
|
||||||
timezone: ^0.7.0
|
timezone: ^0.7.0
|
||||||
flutter_native_timezone: ^2.0.0
|
flutter_native_timezone_updated_gradle: ^2.0.0
|
||||||
flutter_local_notifications: ^8.0.0
|
flutter_local_notifications: ^8.0.0
|
||||||
|
|
||||||
flutter_markdown: ^0.6.4
|
flutter_markdown: ^0.6.4
|
||||||
|
|
Loading…
Add table
Reference in a new issue