Skip to content

Commit 1b8b04e

Browse files
committed
first commit
0 parents  commit 1b8b04e

Some content is hidden

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

61 files changed

+2763
-0
lines changed

.gitignore

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
.dart_tool/
26+
.flutter-plugins
27+
.packages
28+
.pub-cache/
29+
.pub/
30+
/build/
31+
32+
# Android related
33+
**/android/**/gradle-wrapper.jar
34+
**/android/.gradle
35+
**/android/captures/
36+
**/android/gradlew
37+
**/android/gradlew.bat
38+
**/android/local.properties
39+
**/android/**/GeneratedPluginRegistrant.java
40+
41+
# iOS/XCode related
42+
**/ios/**/*.mode1v3
43+
**/ios/**/*.mode2v3
44+
**/ios/**/*.moved-aside
45+
**/ios/**/*.pbxuser
46+
**/ios/**/*.perspectivev3
47+
**/ios/**/*sync/
48+
**/ios/**/.sconsign.dblite
49+
**/ios/**/.tags*
50+
**/ios/**/.vagrant/
51+
**/ios/**/DerivedData/
52+
**/ios/**/Icon?
53+
**/ios/**/Pods/
54+
**/ios/**/.symlinks/
55+
**/ios/**/profile
56+
**/ios/**/xcuserdata
57+
**/ios/.generated/
58+
**/ios/Flutter/App.framework
59+
**/ios/Flutter/Flutter.framework
60+
**/ios/Flutter/Generated.xcconfig
61+
**/ios/Flutter/app.flx
62+
**/ios/Flutter/app.zip
63+
**/ios/Flutter/flutter_assets/
64+
**/ios/Flutter/flutter_export_environment.sh
65+
**/ios/ServiceDefinitions.json
66+
**/ios/Runner/GeneratedPluginRegistrant.*
67+
68+
# Exceptions to above rules.
69+
!**/ios/**/default.mode1v3
70+
!**/ios/**/default.mode2v3
71+
!**/ios/**/default.pbxuser
72+
!**/ios/**/default.perspectivev3
73+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

.metadata

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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: 2d2a1ffec95cc70a3218872a2cd3f8de4933c42f
8+
channel: stable
9+
10+
project_type: app

.talismanrc

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
fileignoreconfig:
2+
- filename: .metadata
3+
checksum: 6e9c9371108c70175fa73668d5b1a2d736dcb6a9113a5342a3191cf825475f9e
4+
ignore_detectors: []
5+
- filename: ios/Podfile.lock
6+
checksum: 53c96244d0d40e8a34466f0f4c98984164c3f478c55aaa0c4ce4ba34745a3dd6
7+
ignore_detectors: []
8+
- filename: ios/Runner.xcodeproj/project.pbxproj
9+
checksum: 966b204681c6cd3a3c0b33484c8798213dbd909dbb529f6d933a1dd3e824dd29
10+
ignore_detectors: []
11+
- filename: ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
12+
checksum: 493ace34b973ee9428f95e8e34fb9356bebef9c367eb6ea2064dc01e3c69b977
13+
ignore_detectors: []
14+
- filename: .metadata
15+
checksum: 6e9c9371108c70175fa73668d5b1a2d736dcb6a9113a5342a3191cf825475f9e
16+
ignore_detectors: []
17+
- filename: ios/Podfile.lock
18+
checksum: 53c96244d0d40e8a34466f0f4c98984164c3f478c55aaa0c4ce4ba34745a3dd6
19+
ignore_detectors: []
20+
- filename: ios/Runner.xcodeproj/project.pbxproj
21+
checksum: 966b204681c6cd3a3c0b33484c8798213dbd909dbb529f6d933a1dd3e824dd29
22+
ignore_detectors: []
23+
- filename: ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
24+
checksum: 493ace34b973ee9428f95e8e34fb9356bebef9c367eb6ea2064dc01e3c69b977
25+
ignore_detectors: []
26+
- filename: README.md
27+
checksum: 0871de1247d05db3a2da1e68135a4a13b9585750db77b5bf9ced3f01c06fe880
28+
ignore_detectors: []

README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
SQFEntity
2+
3+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/1.%2520pubspec.yaml)
4+
5+
[**1. pubspec.yaml**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-1-pubspec-yaml)
6+
7+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/2.%2520myDbModel.dart)
8+
9+
[**2. myDbModel.dart**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-2-mydbmodel-dart)
10+
11+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/3.%2520Initiate%2520the%2520setup%2520to%2520generate%2520models.dart%2520with.dart)
12+
13+
[**3. Initiate the setup to generate models.dart with.dart**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-3-initiate-the-setup-to-generate-models-dart-with-dart)
14+
15+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/4.%2520paste%2520the%2520clipboard%2520to%2520models.py)
16+
17+
[**4. paste the clipboard to models.py**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-4-paste-the-clipboard-to-models-py)
18+
19+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/5.%2520check%2520if%2520The%2520database%2520is%2520ready%2520for%2520use)
20+
21+
[**5. check if The database is ready for use**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-5-check-if-the-database-is-ready-for-use)
22+
23+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/6.%2520Retrive)
24+
25+
[**6. Retrive**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-6-retrive)
26+
27+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/7.%2520Create)
28+
29+
[**7. Create**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-7-create)
30+
31+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/8.%2520Update)
32+
33+
[**8. Update**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-8-update)
34+
35+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/9.%2520Delete)
36+
37+
[**9. Delete**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-9-delete)
38+
39+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/9.1.%2520Sync%2520from%2520web)
40+
41+
[**9.1. Sync from web**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-9-1-sync-from-web)
42+
43+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/9.2.%2520ListView%2520builder%2520Sample)
44+
45+
[**9.2. ListView builder Sample**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-9-2-listview-builder-sample)
46+
47+
[Raw](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0/raw/ce3eabdecea4bf5fa753c8d161bfd0b1e46533e1/9.3.%2520Link%2520for%2520documentation)
48+
49+
[**9.3. Link for documentation**](https://gist.github.com/VJPranay/ae5ee07560455cbacf65c89fb12c87a0#file-9-3-link-for-documentation)

android/app/build.gradle

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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 plugin: 'kotlin-android'
26+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27+
28+
android {
29+
compileSdkVersion 28
30+
31+
sourceSets {
32+
main.java.srcDirs += 'src/main/kotlin'
33+
}
34+
35+
lintOptions {
36+
disable 'InvalidPackage'
37+
}
38+
39+
defaultConfig {
40+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41+
applicationId "com.godheadmedia.unfortunate"
42+
minSdkVersion 16
43+
targetSdkVersion 28
44+
versionCode flutterVersionCode.toInteger()
45+
versionName flutterVersionName
46+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
47+
}
48+
49+
buildTypes {
50+
release {
51+
// TODO: Add your own signing config for the release build.
52+
// Signing with the debug keys for now, so `flutter run --release` works.
53+
signingConfig signingConfigs.debug
54+
}
55+
}
56+
}
57+
58+
flutter {
59+
source '../..'
60+
}
61+
62+
dependencies {
63+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64+
testImplementation 'junit:junit:4.12'
65+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
66+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
67+
}
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.godheadmedia.unfortunate">
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>
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.godheadmedia.unfortunate">
3+
4+
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
5+
calls FlutterMain.startInitialization(this); in its onCreate method.
6+
In most cases you can leave this as-is, but you if you want to provide
7+
additional functionality it is fine to subclass or reimplement
8+
FlutterApplication and put your custom class here. -->
9+
<application
10+
android:name="io.flutter.app.FlutterApplication"
11+
android:label="unfortunate"
12+
android:icon="@mipmap/ic_launcher">
13+
<activity
14+
android:name=".MainActivity"
15+
android:launchMode="singleTop"
16+
android:theme="@style/LaunchTheme"
17+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
18+
android:hardwareAccelerated="true"
19+
android:windowSoftInputMode="adjustResize">
20+
<!-- This keeps the window background of the activity showing
21+
until Flutter renders its first frame. It can be removed if
22+
there is no splash screen (such as the default splash screen
23+
defined in @style/LaunchTheme). -->
24+
<meta-data
25+
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
26+
android:value="true" />
27+
<intent-filter>
28+
<action android:name="android.intent.action.MAIN"/>
29+
<category android:name="android.intent.category.LAUNCHER"/>
30+
</intent-filter>
31+
</activity>
32+
</application>
33+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.godheadmedia.unfortunate
2+
3+
import android.os.Bundle
4+
5+
import io.flutter.app.FlutterActivity
6+
import io.flutter.plugins.GeneratedPluginRegistrant
7+
8+
class MainActivity: FlutterActivity() {
9+
override fun onCreate(savedInstanceState: Bundle?) {
10+
super.onCreate(savedInstanceState)
11+
GeneratedPluginRegistrant.registerWith(this)
12+
}
13+
}
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:color/white" />
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>
Loading
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
4+
<!-- Show a splash screen on the activity. Automatically removed when
5+
Flutter draws its first frame -->
6+
<item name="android:windowBackground">@drawable/launch_background</item>
7+
</style>
8+
</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.godheadmedia.unfortunate">
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

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

android/gradle.properties

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.gradle.jvmargs=-Xmx1536M
2+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Fri Jun 23 08:50:38 CEST 2017
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

android/settings.gradle

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
include ':app'
2+
3+
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4+
5+
def plugins = new Properties()
6+
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7+
if (pluginsFile.exists()) {
8+
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9+
}
10+
11+
plugins.each { name, path ->
12+
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13+
include ":$name"
14+
project(":$name").projectDir = pluginDirectory
15+
}

0 commit comments

Comments
 (0)