Skip to content

Commit 9bdd13c

Browse files
committed
Initial Flutter Notes project
0 parents  commit 9bdd13c

161 files changed

Lines changed: 11114 additions & 0 deletions

File tree

Some content is hidden

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

.gitignore

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

.metadata

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "67323de285b00232883f53b84095eb72be97d35c"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 67323de285b00232883f53b84095eb72be97d35c
17+
base_revision: 67323de285b00232883f53b84095eb72be97d35c
18+
- platform: android
19+
create_revision: 67323de285b00232883f53b84095eb72be97d35c
20+
base_revision: 67323de285b00232883f53b84095eb72be97d35c
21+
- platform: ios
22+
create_revision: 67323de285b00232883f53b84095eb72be97d35c
23+
base_revision: 67323de285b00232883f53b84095eb72be97d35c
24+
- platform: linux
25+
create_revision: 67323de285b00232883f53b84095eb72be97d35c
26+
base_revision: 67323de285b00232883f53b84095eb72be97d35c
27+
- platform: macos
28+
create_revision: 67323de285b00232883f53b84095eb72be97d35c
29+
base_revision: 67323de285b00232883f53b84095eb72be97d35c
30+
- platform: web
31+
create_revision: 67323de285b00232883f53b84095eb72be97d35c
32+
base_revision: 67323de285b00232883f53b84095eb72be97d35c
33+
- platform: windows
34+
create_revision: 67323de285b00232883f53b84095eb72be97d35c
35+
base_revision: 67323de285b00232883f53b84095eb72be97d35c
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# notes
2+
3+
A new Flutter project.
4+
5+
## Getting Started
6+
7+
This project is a starting point for a Flutter application.
8+
9+
A few resources to get you started if this is your first Flutter project:
10+
11+
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12+
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13+
14+
For help getting started with Flutter development, view the
15+
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16+
samples, guidance on mobile development, and a full API reference.

analysis_options.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
linter:
4+
rules:
5+
avoid_print: false
6+
prefer_const_constructors: false
7+
prefer_const_literals_to_create_immutables: false
8+
use_build_context_synchronously: false
9+
10+
analyzer:
11+
errors:
12+
# Downgrade to info to keep the project buildable while the API
13+
# for pencil_field is adapted at runtime.
14+
invalid_annotation_target: ignore
15+
exclude:
16+
- lib/models/notebook.g.dart
17+
- lib/models/note_page.g.dart

android/.gitignore

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

android/app/build.gradle.kts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
plugins {
2+
id("com.android.application")
3+
id("kotlin-android")
4+
id("dev.flutter.flutter-gradle-plugin")
5+
}
6+
7+
android {
8+
namespace = "com.example.notes"
9+
compileSdk = flutter.compileSdkVersion
10+
ndkVersion = flutter.ndkVersion
11+
12+
compileOptions {
13+
sourceCompatibility = JavaVersion.VERSION_17
14+
targetCompatibility = JavaVersion.VERSION_17
15+
}
16+
17+
kotlinOptions {
18+
jvmTarget = JavaVersion.VERSION_17.toString()
19+
}
20+
21+
defaultConfig {
22+
applicationId = "com.example.notes"
23+
// image_picker and share_plus require minSdk 21
24+
minSdk = flutter.minSdkVersion
25+
targetSdk = flutter.targetSdkVersion
26+
versionCode = flutter.versionCode
27+
versionName = flutter.versionName
28+
}
29+
30+
buildTypes {
31+
release {
32+
signingConfig = signingConfigs.getByName("debug")
33+
}
34+
}
35+
}
36+
37+
flutter {
38+
source = "../.."
39+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- The INTERNET permission is required for development. Specifically,
3+
the Flutter tool 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>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
3+
<!-- Permissions for image_picker and share_plus -->
4+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
5+
android:maxSdkVersion="32" />
6+
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
7+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
8+
android:maxSdkVersion="29" />
9+
10+
<application
11+
android:label="notes"
12+
android:name="${applicationName}"
13+
android:icon="@mipmap/ic_launcher"
14+
android:requestLegacyExternalStorage="true">
15+
<activity
16+
android:name=".MainActivity"
17+
android:exported="true"
18+
android:launchMode="singleTop"
19+
android:taskAffinity=""
20+
android:theme="@style/LaunchTheme"
21+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
22+
android:hardwareAccelerated="true"
23+
android:windowSoftInputMode="adjustResize">
24+
<meta-data
25+
android:name="io.flutter.embedding.android.NormalTheme"
26+
android:resource="@style/NormalTheme"
27+
/>
28+
<intent-filter>
29+
<action android:name="android.intent.action.MAIN"/>
30+
<category android:name="android.intent.category.LAUNCHER"/>
31+
</intent-filter>
32+
</activity>
33+
<!-- FileProvider for share_plus / image_picker -->
34+
<provider
35+
android:name="androidx.core.content.FileProvider"
36+
android:authorities="${applicationId}.fileprovider"
37+
android:exported="false"
38+
android:grantUriPermissions="true">
39+
<meta-data
40+
android:name="android.support.FILE_PROVIDER_PATHS"
41+
android:resource="@xml/file_provider_paths" />
42+
</provider>
43+
<meta-data
44+
android:name="flutterEmbedding"
45+
android:value="2" />
46+
</application>
47+
<queries>
48+
<intent>
49+
<action android:name="android.intent.action.PROCESS_TEXT"/>
50+
<data android:mimeType="text/plain"/>
51+
</intent>
52+
<intent>
53+
<action android:name="android.intent.action.VIEW" />
54+
<data android:scheme="https" />
55+
</intent>
56+
<intent>
57+
<action android:name="android.media.action.IMAGE_CAPTURE" />
58+
</intent>
59+
</queries>
60+
</manifest>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.example.notes
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity : FlutterActivity()
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="?android:colorBackground" />
5+
6+
<!-- You can insert your own image assets here -->
7+
<!-- <item>
8+
<bitmap
9+
android:gravity="center"
10+
android:src="@mipmap/launch_image" />
11+
</item> -->
12+
</layer-list>

0 commit comments

Comments
 (0)