Skip to content

Commit 8893bc9

Browse files
committed
initial commit
0 parents  commit 8893bc9

File tree

179 files changed

+6101
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+6101
-0
lines changed

.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
**/ios/Flutter/.last_build_id
26+
.dart_tool/
27+
.flutter-plugins
28+
.flutter-plugins-dependencies
29+
.packages
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Web related
35+
lib/generated_plugin_registrant.dart
36+
37+
# Symbolication related
38+
app.*.symbols
39+
40+
# Obfuscation related
41+
app.*.map.json
42+
43+
# Android Studio will place build artifacts here
44+
/android/app/debug
45+
/android/app/profile
46+
/android/app/release
47+
48+
pubspec.lock
49+
.metadata

README.md

+16

analysis_options.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
analyzer:
4+
enable-experiment:
5+
- non-nullable
6+
7+
language:
8+
strict-raw-types: true
9+
10+
errors:
11+
dead_code: error
12+
missing_required_param: error
13+
override_on_non_overriding_method: error
14+
unused_element: error
15+
unused_import: error
16+
unused_local_variable: error
17+
18+
linter:
19+
rules:
20+
- avoid_empty_else
21+
- avoid_function_literals_in_foreach_calls
22+
- avoid_init_to_null
23+
- avoid_null_checks_in_equality_operators
24+
- avoid_relative_lib_imports
25+
- avoid_renaming_method_parameters
26+
- avoid_return_types_on_setters
27+
- avoid_returning_null_for_void
28+
- avoid_shadowing_type_parameters
29+
- avoid_single_cascade_in_expression_statements
30+
- avoid_types_as_parameter_names
31+
- avoid_unused_constructor_parameters
32+
- await_only_futures
33+
- camel_case_types
34+
- cancel_subscriptions

android/.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties
12+
**/*.keystore
13+
**/*.jks

android/app/build.gradle

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
def localProperties = new Properties()
2+
def localPropertiesFile = rootProject.file('local.properties')
3+
if (localPropertiesFile.exists()) {
4+
localPropertiesFile.withReader('UTF-8') { reader ->
5+
localProperties.load(reader)
6+
}
7+
}
8+
9+
def flutterRoot = localProperties.getProperty('flutter.sdk')
10+
if (flutterRoot == null) {
11+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12+
}
13+
14+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15+
if (flutterVersionCode == null) {
16+
flutterVersionCode = '1'
17+
}
18+
19+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
20+
if (flutterVersionName == null) {
21+
flutterVersionName = '1.0'
22+
}
23+
24+
apply plugin: 'com.android.application'
25+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26+
27+
android {
28+
compileSdkVersion 31
29+
30+
lintOptions {
31+
disable 'InvalidPackage'
32+
}
33+
34+
compileOptions {
35+
sourceCompatibility JavaVersion.VERSION_1_8
36+
targetCompatibility JavaVersion.VERSION_1_8
37+
}
38+
39+
defaultConfig {
40+
applicationId "com.nixlab.grocery_list_maker"
41+
minSdkVersion 20
42+
targetSdkVersion 31
43+
versionCode flutterVersionCode.toInteger()
44+
versionName flutterVersionName
45+
multiDexEnabled true
46+
}
47+
48+
buildTypes {
49+
release {
50+
minifyEnabled false
51+
shrinkResources false
52+
signingConfig signingConfigs.debug
53+
}
54+
}
55+
}
56+
57+
flutter {
58+
source '../..'
59+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.nixlab.grocery_list_maker">
3+
<!-- Flutter needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET" />
7+
</manifest>
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.nixlab.grocery_list_maker">
3+
4+
<uses-permission android:name="android.permission.INTERNET" />
5+
6+
<application
7+
android:name="${applicationName}"
8+
android:icon="@mipmap/launcher_icon"
9+
android:label="Grocery List Maker">
10+
<activity
11+
android:name=".MainActivity"
12+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
13+
android:exported="true"
14+
android:hardwareAccelerated="true"
15+
android:launchMode="singleTop"
16+
android:theme="@style/LaunchTheme"
17+
android:windowSoftInputMode="adjustResize">
18+
19+
<meta-data
20+
android:name="io.flutter.embedding.android.NormalTheme"
21+
android:resource="@style/NormalTheme" />
22+
<intent-filter>
23+
<action android:name="android.intent.action.MAIN" />
24+
<category android:name="android.intent.category.LAUNCHER" />
25+
</intent-filter>
26+
</activity>
27+
28+
<meta-data
29+
android:name="flutterEmbedding"
30+
android:value="2" />
31+
</application>
32+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.nixlab.grocery_list_maker;
2+
3+
import io.flutter.embedding.android.FlutterActivity;
4+
5+
public class MainActivity extends FlutterActivity {
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.nixlab.grocery_list_maker
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity : FlutterActivity() {
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<bitmap
5+
android:gravity="fill"
6+
android:src="@drawable/background" />
7+
</item>
8+
<item>
9+
<bitmap
10+
android:gravity="center"
11+
android:src="@drawable/splash" />
12+
</item>
13+
<item>
14+
<bitmap
15+
android:gravity="bottom"
16+
android:src="@drawable/branding" />
17+
</item>
18+
</layer-list>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<bitmap
5+
android:gravity="fill"
6+
android:src="@drawable/background" />
7+
</item>
8+
<item>
9+
<bitmap
10+
android:gravity="center"
11+
android:src="@drawable/splash" />
12+
</item>
13+
<item>
14+
<bitmap
15+
android:gravity="bottom"
16+
android:src="@drawable/branding" />
17+
</item>
18+
</layer-list>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<bitmap
5+
android:gravity="fill"
6+
android:src="@drawable/background" />
7+
</item>
8+
<item>
9+
<bitmap
10+
android:gravity="center"
11+
android:src="@drawable/splash" />
12+
</item>
13+
<item>
14+
<bitmap
15+
android:gravity="bottom"
16+
android:src="@drawable/branding" />
17+
</item>
18+
</layer-list>
70 Bytes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<bitmap
5+
android:gravity="fill"
6+
android:src="@drawable/background" />
7+
</item>
8+
<item>
9+
<bitmap
10+
android:gravity="center"
11+
android:src="@drawable/splash" />
12+
</item>
13+
<item>
14+
<bitmap
15+
android:gravity="bottom"
16+
android:src="@drawable/branding" />
17+
</item>
18+
</layer-list>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
Flutter draws its first frame -->
7+
<item name="android:windowBackground">@drawable/launch_background</item>
8+
<item name="android:windowFullscreen">true</item>
9+
</style>
10+
<!-- Theme applied to the Android Window as soon as the process has started.
11+
This theme determines the color of the Android Window while your
12+
Flutter UI initializes, as well as behind your Flutter UI while its
13+
running.
14+
15+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
16+
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
17+
<item name="android:windowBackground">?android:colorBackground</item>
18+
</style>
19+
</resources>
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
Flutter draws its first frame -->
7+
<item name="android:windowBackground">@drawable/launch_background</item>
8+
<item name="android:windowFullscreen">true</item>
9+
</style>
10+
<!-- Theme applied to the Android Window as soon as the process has started.
11+
This theme determines the color of the Android Window while your
12+
Flutter UI initializes, as well as behind your Flutter UI while its
13+
running.
14+
15+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
16+
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
17+
<item name="android:windowBackground">?android:colorBackground</item>
18+
</style>
19+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.nixlab.grocery_list_maker">
3+
<!-- Flutter needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET" />
7+
</manifest>

android/build.gradle

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
mavenCentral()
5+
}
6+
7+
dependencies {
8+
classpath 'com.android.tools.build:gradle:4.1.0'
9+
}
10+
}
11+
12+
allprojects {
13+
repositories {
14+
google()
15+
mavenCentral()
16+
}
17+
}
18+
19+
rootProject.buildDir = '../build'
20+
subprojects {
21+
project.buildDir = "${rootProject.buildDir}/${project.name}"
22+
}
23+
subprojects {
24+
project.evaluationDependsOn(':app')
25+
}
26+
27+
task clean(type: Delete) {
28+
delete rootProject.buildDir
29+
}

android/gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
org.gradle.jvmargs=-Xmx1536M
2+
android.useAndroidX=true
3+
android.enableJetifier=true

0 commit comments

Comments
 (0)