summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2022-02-17 05:25:02 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2022-02-17 05:25:02 +0900
commitbf92a0bbfdee7be31cbbaa650af1fba15bb2d989 (patch)
tree452c10ea2a6e4afee9d36677a182ae1418b85022
initial commitHEADmaster
-rw-r--r--.gitignore46
-rw-r--r--.metadata10
-rw-r--r--README.md16
-rw-r--r--analysis_options.yaml29
-rw-r--r--android/.gitignore13
-rw-r--r--android/app/build.gradle68
-rw-r--r--android/app/src/debug/AndroidManifest.xml7
-rw-r--r--android/app/src/main/AndroidManifest.xml41
-rw-r--r--android/app/src/main/kotlin/com/example/doujinsea/MainActivity.kt6
-rw-r--r--android/app/src/main/res/drawable-v21/launch_background.xml12
-rw-r--r--android/app/src/main/res/drawable/launch_background.xml12
-rw-r--r--android/app/src/main/res/mipmap-hdpi/ic_launcher.pngbin0 -> 544 bytes
-rw-r--r--android/app/src/main/res/mipmap-mdpi/ic_launcher.pngbin0 -> 442 bytes
-rw-r--r--android/app/src/main/res/mipmap-xhdpi/ic_launcher.pngbin0 -> 721 bytes
-rw-r--r--android/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngbin0 -> 1031 bytes
-rw-r--r--android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngbin0 -> 1443 bytes
-rw-r--r--android/app/src/main/res/values-night/styles.xml18
-rw-r--r--android/app/src/main/res/values/styles.xml18
-rw-r--r--android/app/src/profile/AndroidManifest.xml7
-rw-r--r--android/build.gradle29
-rw-r--r--android/gradle.properties3
-rw-r--r--android/gradle/wrapper/gradle-wrapper.properties6
-rw-r--r--android/settings.gradle11
-rw-r--r--ios/.gitignore34
-rw-r--r--ios/Flutter/AppFrameworkInfo.plist26
-rw-r--r--ios/Flutter/Debug.xcconfig2
-rw-r--r--ios/Flutter/Release.xcconfig2
-rw-r--r--ios/Podfile41
-rw-r--r--ios/Runner.xcodeproj/project.pbxproj471
-rw-r--r--ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata7
-rw-r--r--ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist8
-rw-r--r--ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings8
-rw-r--r--ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme91
-rw-r--r--ios/Runner.xcworkspace/contents.xcworkspacedata7
-rw-r--r--ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist8
-rw-r--r--ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings8
-rw-r--r--ios/Runner/AppDelegate.swift13
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json122
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.pngbin0 -> 10932 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.pngbin0 -> 564 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.pngbin0 -> 1283 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.pngbin0 -> 1588 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.pngbin0 -> 1025 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.pngbin0 -> 1716 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.pngbin0 -> 1920 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.pngbin0 -> 1283 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.pngbin0 -> 1895 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.pngbin0 -> 2665 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.pngbin0 -> 2665 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.pngbin0 -> 3831 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.pngbin0 -> 1888 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.pngbin0 -> 3294 bytes
-rw-r--r--ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.pngbin0 -> 3612 bytes
-rw-r--r--ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json23
-rw-r--r--ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.pngbin0 -> 68 bytes
-rw-r--r--ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.pngbin0 -> 68 bytes
-rw-r--r--ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.pngbin0 -> 68 bytes
-rw-r--r--ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md5
-rw-r--r--ios/Runner/Base.lproj/LaunchScreen.storyboard37
-rw-r--r--ios/Runner/Base.lproj/Main.storyboard26
-rw-r--r--ios/Runner/Info.plist45
-rw-r--r--ios/Runner/Runner-Bridging-Header.h1
-rw-r--r--lib/main.dart1265
-rw-r--r--pubspec.lock427
-rw-r--r--pubspec.yaml102
-rw-r--r--test/widget_test.dart30
-rw-r--r--web/favicon.pngbin0 -> 917 bytes
-rw-r--r--web/icons/Icon-192.pngbin0 -> 5292 bytes
-rw-r--r--web/icons/Icon-512.pngbin0 -> 8252 bytes
-rw-r--r--web/icons/Icon-maskable-192.pngbin0 -> 5594 bytes
-rw-r--r--web/icons/Icon-maskable-512.pngbin0 -> 20998 bytes
-rw-r--r--web/index.html101
-rw-r--r--web/manifest.json35
73 files changed, 3297 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0fa6b67
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,46 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Web related
+lib/generated_plugin_registrant.dart
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/.metadata b/.metadata
new file mode 100644
index 0000000..a5584fc
--- /dev/null
+++ b/.metadata
@@ -0,0 +1,10 @@
+# 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.
+
+version:
+ revision: 18116933e77adc82f80866c928266a5b4f1ed645
+ channel: stable
+
+project_type: app
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..1152bf9
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+# doujinsea
+
+A new Flutter project.
+
+## Getting Started
+
+This project is a starting point for a Flutter application.
+
+A few resources to get you started if this is your first Flutter project:
+
+- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
+- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
+
+For help getting started with Flutter, view our
+[online documentation](https://flutter.dev/docs), which offers tutorials,
+samples, guidance on mobile development, and a full API reference.
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..61b6c4d
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,29 @@
+# This file configures the analyzer, which statically analyzes Dart code to
+# check for errors, warnings, and lints.
+#
+# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
+# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
+# invoked from the command line by running `flutter analyze`.
+
+# The following line activates a set of recommended lints for Flutter apps,
+# packages, and plugins designed to encourage good coding practices.
+include: package:flutter_lints/flutter.yaml
+
+linter:
+ # The lint rules applied to this project can be customized in the
+ # section below to disable rules from the `package:flutter_lints/flutter.yaml`
+ # included above or to enable additional rules. A list of all available lints
+ # and their documentation is published at
+ # https://dart-lang.github.io/linter/lints/index.html.
+ #
+ # Instead of disabling a lint rule for the entire project in the
+ # section below, it can also be suppressed for a single line of code
+ # or a specific dart file by using the `// ignore: name_of_lint` and
+ # `// ignore_for_file: name_of_lint` syntax on the line or in the file
+ # producing the lint.
+ rules:
+ # avoid_print: false # Uncomment to disable the `avoid_print` rule
+ # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
+
+# Additional information about this file can be found at
+# https://dart.dev/guides/language/analysis-options
diff --git a/android/.gitignore b/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+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/android/app/build.gradle b/android/app/build.gradle
new file mode 100644
index 0000000..5b5ec01
--- /dev/null
+++ b/android/app/build.gradle
@@ -0,0 +1,68 @@
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterRoot = localProperties.getProperty('flutter.sdk')
+if (flutterRoot == null) {
+ throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+apply plugin: 'com.android.application'
+apply plugin: 'kotlin-android'
+apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+
+android {
+ compileSdkVersion 30
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ 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.doujinsea"
+ minSdkVersion 16
+ targetSdkVersion 30
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..b9a8d98
--- /dev/null
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.example.doujinsea">
+ <!-- Flutter needs it to communicate with the running application
+ to allow setting breakpoints, to provide hot reload, etc.
+ -->
+ <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..307ad4b
--- /dev/null
+++ b/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,41 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.example.doujinsea">
+ <application
+ android:label="doujinsea"
+ android:icon="@mipmap/ic_launcher">
+ <activity
+ android:name=".MainActivity"
+ android:launchMode="singleTop"
+ android:theme="@style/LaunchTheme"
+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
+ android:hardwareAccelerated="true"
+ android:windowSoftInputMode="adjustResize">
+ <!-- Specifies an Android theme to apply to this Activity as soon as
+ the Android process has started. This theme is visible to the user
+ while the Flutter UI initializes. After that, this theme continues
+ to determine the Window background behind the Flutter UI. -->
+ <meta-data
+ android:name="io.flutter.embedding.android.NormalTheme"
+ android:resource="@style/NormalTheme"
+ />
+ <!-- Displays an Android View that continues showing the launch screen
+ Drawable until Flutter paints its first frame, then this splash
+ screen fades out. A splash screen is useful to avoid any visual
+ gap between the end of Android's launch screen and the painting of
+ Flutter's first frame. -->
+ <meta-data
+ android:name="io.flutter.embedding.android.SplashScreenDrawable"
+ android:resource="@drawable/launch_background"
+ />
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN"/>
+ <category android:name="android.intent.category.LAUNCHER"/>
+ </intent-filter>
+ </activity>
+ <!-- Don't delete the meta-data below.
+ This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
+ <meta-data
+ android:name="flutterEmbedding"
+ android:value="2" />
+ </application>
+</manifest>
diff --git a/android/app/src/main/kotlin/com/example/doujinsea/MainActivity.kt b/android/app/src/main/kotlin/com/example/doujinsea/MainActivity.kt
new file mode 100644
index 0000000..143b7b5
--- /dev/null
+++ b/android/app/src/main/kotlin/com/example/doujinsea/MainActivity.kt
@@ -0,0 +1,6 @@
+package com.example.doujinsea
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Modify this file to customize your launch splash screen -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="?android:colorBackground" />
+
+ <!-- You can insert your own image assets here -->
+ <!-- <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@mipmap/launch_image" />
+ </item> -->
+</layer-list>
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Modify this file to customize your launch splash screen -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@android:color/white" />
+
+ <!-- You can insert your own image assets here -->
+ <!-- <item>
+ <bitmap
+ android:gravity="center"
+ android:src="@mipmap/launch_image" />
+ </item> -->
+</layer-list>
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
--- /dev/null
+++ b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
--- /dev/null
+++ b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
--- /dev/null
+++ b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
--- /dev/null
+++ b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
--- /dev/null
+++ b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary files differ
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..449a9f9
--- /dev/null
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
+ <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
+ <!-- Show a splash screen on the activity. Automatically removed when
+ Flutter draws its first frame -->
+ <item name="android:windowBackground">@drawable/launch_background</item>
+ </style>
+ <!-- Theme applied to the Android Window as soon as the process has started.
+ This theme determines the color of the Android Window while your
+ Flutter UI initializes, as well as behind your Flutter UI while its
+ running.
+
+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
+ <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
+ <item name="android:windowBackground">?android:colorBackground</item>
+ </style>
+</resources>
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..d74aa35
--- /dev/null
+++ b/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
+ <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
+ <!-- Show a splash screen on the activity. Automatically removed when
+ Flutter draws its first frame -->
+ <item name="android:windowBackground">@drawable/launch_background</item>
+ </style>
+ <!-- Theme applied to the Android Window as soon as the process has started.
+ This theme determines the color of the Android Window while your
+ Flutter UI initializes, as well as behind your Flutter UI while its
+ running.
+
+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
+ <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
+ <item name="android:windowBackground">?android:colorBackground</item>
+ </style>
+</resources>
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..b9a8d98
--- /dev/null
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.example.doujinsea">
+ <!-- Flutter needs it to communicate with the running application
+ to allow setting breakpoints, to provide hot reload, etc.
+ -->
+ <uses-permission android:name="android.permission.INTERNET"/>
+</manifest>
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..ed45c65
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,29 @@
+buildscript {
+ ext.kotlin_version = '1.3.50'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:4.1.0'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+ project.evaluationDependsOn(':app')
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/android/gradle.properties b/android/gradle.properties
new file mode 100644
index 0000000..94adc3a
--- /dev/null
+++ b/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..bc6a58a
--- /dev/null
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri Jun 23 08:50:38 CEST 2017
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..44e62bc
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1,11 @@
+include ':app'
+
+def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
+def properties = new Properties()
+
+assert localPropertiesFile.exists()
+localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
+
+def flutterSdkPath = properties.getProperty("flutter.sdk")
+assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/ios/.gitignore b/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/ios/Flutter/AppFrameworkInfo.plist b/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..8d4492f
--- /dev/null
+++ b/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleExecutable</key>
+ <string>App</string>
+ <key>CFBundleIdentifier</key>
+ <string>io.flutter.flutter.app</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>App</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>MinimumOSVersion</key>
+ <string>9.0</string>
+</dict>
+</plist>
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..ec97fc6
--- /dev/null
+++ b/ios/Flutter/Debug.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..c4855bf
--- /dev/null
+++ b/ios/Flutter/Release.xcconfig
@@ -0,0 +1,2 @@
+#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
+#include "Generated.xcconfig"
diff --git a/ios/Podfile b/ios/Podfile
new file mode 100644
index 0000000..1e8c3c9
--- /dev/null
+++ b/ios/Podfile
@@ -0,0 +1,41 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '9.0'
+
+# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
+ENV['COCOAPODS_DISABLE_STATS'] = 'true'
+
+project 'Runner', {
+ 'Debug' => :debug,
+ 'Profile' => :release,
+ 'Release' => :release,
+}
+
+def flutter_root
+ generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+
+ File.foreach(generated_xcode_build_settings_path) do |line|
+ matches = line.match(/FLUTTER_ROOT\=(.*)/)
+ return matches[1].strip if matches
+ end
+ raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
+end
+
+require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
+
+flutter_ios_podfile_setup
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
+end
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ flutter_additional_ios_build_settings(target)
+ end
+end
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..c73dec6
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,471 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "<group>";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1020;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "<group>";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.doujinsea;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 9.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.doujinsea;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = com.example.doujinsea;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:">
+ </FileRef>
+</Workspace>
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IDEDidComputeMac32BitWarning</key>
+ <true/>
+</dict>
+</plist>
diff --git a/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>PreviewsEnabled</key>
+ <false/>
+</dict>
+</plist>
diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..a28140c
--- /dev/null
+++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "1020"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES">
+ <Testables>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </TestAction>
+ <LaunchAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ debugServiceExtension = "internal"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable
+ runnableDebuggingMode = "0">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ buildConfiguration = "Profile"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable
+ runnableDebuggingMode = "0">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "97C146ED1CF9000F007C117D"
+ BuildableName = "Runner.app"
+ BlueprintName = "Runner"
+ ReferencedContainer = "container:Runner.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "group:Runner.xcodeproj">
+ </FileRef>
+</Workspace>
diff --git a/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IDEDidComputeMac32BitWarning</key>
+ <true/>
+</dict>
+</plist>
diff --git a/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>PreviewsEnabled</key>
+ <false/>
+</dict>
+</plist>
diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..70693e4
--- /dev/null
+++ b/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..dc9ada4
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..28c6bf0
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..2ccbfd9
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..f091b6b
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..4cde121
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..d0ef06e
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..dcdc230
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..2ccbfd9
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..c8f9ed8
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..a6d6b86
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..a6d6b86
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..75b2d16
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..c4df70d
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..6a84f41
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000..d0e1f58
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
Binary files differ
diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file
diff --git a/ios/Runner/Base.lproj/LaunchScreen.storyboard b/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
+ <dependencies>
+ <deployment identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
+ </dependencies>
+ <scenes>
+ <!--View Controller-->
+ <scene sceneID="EHf-IW-A2E">
+ <objects>
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
+ <layoutGuides>
+ <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
+ <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
+ </layoutGuides>
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <subviews>
+ <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
+ </imageView>
+ </subviews>
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+ <constraints>
+ <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
+ <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
+ </constraints>
+ </view>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="53" y="375"/>
+ </scene>
+ </scenes>
+ <resources>
+ <image name="LaunchImage" width="168" height="185"/>
+ </resources>
+</document>
diff --git a/ios/Runner/Base.lproj/Main.storyboard b/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
+ <dependencies>
+ <deployment identifier="iOS"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
+ </dependencies>
+ <scenes>
+ <!--Flutter View Controller-->
+ <scene sceneID="tne-QT-ifu">
+ <objects>
+ <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
+ <layoutGuides>
+ <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
+ <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
+ </layoutGuides>
+ <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
+ <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ </view>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
+ </objects>
+ </scene>
+ </scenes>
+</document>
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
new file mode 100644
index 0000000..c0dac02
--- /dev/null
+++ b/ios/Runner/Info.plist
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>doujinsea</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>$(FLUTTER_BUILD_NAME)</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>$(FLUTTER_BUILD_NUMBER)</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UILaunchStoryboardName</key>
+ <string>LaunchScreen</string>
+ <key>UIMainStoryboardFile</key>
+ <string>Main</string>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UIViewControllerBasedStatusBarAppearance</key>
+ <false/>
+</dict>
+</plist>
diff --git a/ios/Runner/Runner-Bridging-Header.h b/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/lib/main.dart b/lib/main.dart
new file mode 100644
index 0000000..3dbbbdb
--- /dev/null
+++ b/lib/main.dart
@@ -0,0 +1,1265 @@
+import 'dart:async';
+import 'dart:math';
+import 'dart:convert';
+import 'package:http/http.dart' as http;
+import 'package:google_fonts/google_fonts.dart';
+import 'package:font_awesome_flutter/font_awesome_flutter.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_hooks/flutter_hooks.dart';
+import 'package:qlevar_router/qlevar_router.dart';
+import 'package:flutter_svg/flutter_svg.dart';
+import 'package:flutter_blurhash/flutter_blurhash.dart';
+import 'package:flutter_rating_bar/flutter_rating_bar.dart';
+import 'package:smooth_page_indicator/smooth_page_indicator.dart';
+import 'package:flutter_zoom_drawer/flutter_zoom_drawer.dart';
+import 'package:like_button/like_button.dart';
+import 'package:styled_text/styled_text.dart';
+
+final int kBlurHashDecodingSize = 18;
+final double kThumbWidth = 460;
+final double kThumbHeight = 215;
+
+class DSColors {
+ static const MaterialColor light = const MaterialColor(
+ 0xfffcfcfc,
+ const <int, Color>{
+ 50: const Color(0xfffcfcfc),
+ 100: const Color(0xfffcfcfc),
+ 200: const Color(0xfffcfcfc),
+ 300: const Color(0xfffcfcfc),
+ 400: const Color(0xfffcfcfc),
+ 500: const Color(0xfffcfcfc),
+ 600: const Color(0xfffcfcfc),
+ 700: const Color(0xfffcfcfc),
+ 800: const Color(0xfffcfcfc),
+ 900: const Color(0xfffcfcfc),
+ },
+ );
+ static const MaterialColor dark = const MaterialColor(
+ 0xff221e1f,
+ const <int, Color>{
+ 50: const Color(0xff221e1f),
+ 100: const Color(0xff221e1f),
+ 200: const Color(0xff221e1f),
+ 300: const Color(0xff221e1f),
+ 400: const Color(0xff221e1f),
+ 500: const Color(0xff221e1f),
+ 600: const Color(0xff221e1f),
+ 700: const Color(0xff221e1f),
+ 800: const Color(0xff221e1f),
+ 900: const Color(0xff221e1f),
+ },
+ );
+}
+
+class StoreItem {
+ final int id;
+ final String cover;
+ final String thumb;
+ final String name;
+ final String body;
+ final String category;
+ final String creator;
+ final int price;
+
+ const StoreItem({
+ required this.id,
+ required this.cover,
+ required this.thumb,
+ required this.name,
+ required this.body,
+ required this.category,
+ required this.creator,
+ required this.price,
+ });
+
+ const StoreItem.empty()
+ : id = 0,
+ cover = '',
+ thumb = '',
+ name = '',
+ body = '',
+ category = '',
+ creator = '',
+ price = 0;
+
+ factory StoreItem.fromJson(Map<String, dynamic> json) {
+ return StoreItem(
+ id: json['id'],
+ name: json['title'],
+ body: json['body'],
+ price: json['price'],
+ cover: json['header'],
+ thumb: json['header'],
+ category: 'RPG',
+ creator: 'Unknown',
+ );
+ }
+}
+
+class StoreQuery {
+ final List<StoreItem> data;
+ final int page_num;
+ final int page_size;
+ final int total_elements;
+
+ const StoreQuery({
+ required this.data,
+ required this.page_num,
+ required this.page_size,
+ required this.total_elements,
+ });
+
+ factory StoreQuery.fromJson(Map<String, dynamic> json) {
+ return StoreQuery(
+ data:
+ List<StoreItem>.from(json['data'].map((p) => StoreItem.fromJson(p))),
+ page_num: json['page_num'],
+ page_size: json['page_size'],
+ total_elements: json['total_elements'],
+ );
+ }
+}
+
+class Backend {
+ final String url;
+ const Backend(this.url);
+
+ Future<StoreQuery> products(String query) async {
+ final uri = Uri.http(this.url, '/products', {"prefix": query});
+ final response = await http.get(uri);
+ if (response.statusCode == 200) {
+ return StoreQuery.fromJson(jsonDecode(response.body));
+ } else {
+ throw Exception('Failed');
+ }
+ }
+
+ Future<StoreItem> product(String id) async {
+ final uri = Uri.http(this.url, '/product/${id}');
+ final response = await http.get(uri);
+ if (response.statusCode == 200) {
+ return StoreItem.fromJson(jsonDecode(response.body));
+ } else {
+ throw Exception('Failed');
+ }
+ }
+}
+
+final API = Backend('127.0.0.1:8000');
+
+class HiButton extends HookWidget {
+ final Widget child;
+ final VoidCallback onTap;
+ final Icon? icon;
+ final double? width;
+ final double? height;
+ final BorderRadius? borderRadius;
+ const HiButton({
+ Key? key,
+ required this.child,
+ required this.onTap,
+ this.icon,
+ this.width,
+ this.height,
+ this.borderRadius,
+ }) : super(key: key);
+ HiButton.text(
+ String text, {
+ Key? key,
+ required this.onTap,
+ this.icon,
+ this.width,
+ this.height,
+ this.borderRadius,
+ }) : child = Text(
+ text,
+ textAlign: TextAlign.center,
+ style: TextStyle(
+ fontSize: 14.0,
+ color: Colors.white,
+ fontWeight: FontWeight.w700,
+ ),
+ ),
+ super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ late final combined;
+ if (icon != null) {
+ combined = Row(mainAxisSize: MainAxisSize.min, children: [
+ icon!,
+ const SizedBox(width: 8.0),
+ child,
+ ]);
+ } else {
+ combined = child;
+ }
+ return InkWrapper(
+ child: Container(
+ width: width ?? double.infinity,
+ height: height,
+ decoration: BoxDecoration(
+ borderRadius: borderRadius,
+ boxShadow: [
+ BoxShadow(
+ color: Colors.black.withOpacity(0.25),
+ offset: Offset(0, 1),
+ blurRadius: 3,
+ spreadRadius: 0,
+ ),
+ ],
+ gradient: LinearGradient(
+ begin: Alignment.topCenter,
+ end: Alignment.bottomCenter,
+ colors: [
+ Colors.green.shade400,
+ Colors.green,
+ ],
+ ),
+ ),
+ padding: const EdgeInsets.all(12.0),
+ child: Center(child: combined),
+ ),
+ onTap: onTap,
+ );
+ }
+}
+
+class Markup extends StatelessWidget {
+ final String markup;
+ final bool selectable;
+ final int? maxLines;
+ final TextOverflow overflow;
+ final TextStyle? style;
+ final TextAlign textAlign;
+ final TextDirection? textDirection;
+ const Markup(this.markup,
+ {Key? key,
+ this.selectable = false,
+ this.maxLines,
+ this.overflow = TextOverflow.fade,
+ this.style,
+ this.textAlign = TextAlign.start,
+ this.textDirection})
+ : super(key: key);
+ const Markup.selectable(this.markup,
+ {Key? key,
+ this.maxLines,
+ this.style,
+ this.textAlign = TextAlign.start,
+ this.textDirection})
+ : selectable = true,
+ overflow = TextOverflow.clip,
+ super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ final tags = {
+ 'h1': StyledTextTag(),
+ 'ul': StyledTextTag(),
+ 'li': StyledTextTag(),
+ 'p': StyledTextTag(),
+ 'bold': StyledTextTag(style: TextStyle(fontWeight: FontWeight.bold)),
+ 'img': StyledTextActionTag(
+ (text, attrs) {
+ final String link = attrs['src'] ?? '';
+ print('The "$link" link is tapped.');
+ },
+ style: TextStyle(decoration: TextDecoration.underline),
+ ),
+ 'a': StyledTextActionTag(
+ (text, attrs) {
+ final String link = attrs['href'] ?? '';
+ print('The "$link" link is tapped.');
+ },
+ style: TextStyle(decoration: TextDecoration.underline),
+ ),
+ 'color': StyledTextCustomTag(
+ baseStyle: TextStyle(fontStyle: FontStyle.italic),
+ parse: (baseStyle, attributes) {
+ if (attributes.containsKey('text') &&
+ (attributes['text']!.substring(0, 1) == '#') &&
+ attributes['text']!.length >= 6) {
+ final String hexColor = attributes['text']!.substring(1);
+ final String alphaChannel =
+ (hexColor.length == 8) ? hexColor.substring(6, 8) : 'FF';
+ final Color color =
+ Color(int.parse('0x$alphaChannel' + hexColor.substring(0, 6)));
+ return baseStyle?.copyWith(color: color);
+ } else {
+ return baseStyle;
+ }
+ },
+ ),
+ };
+
+ if (selectable) {
+ return StyledText.selectable(
+ text: markup.replaceAll('<br>', '\n'),
+ newLineAsBreaks: true,
+ maxLines: maxLines,
+ style: style,
+ textAlign: textAlign,
+ textDirection: textDirection,
+ tags: tags,
+ );
+ } else {
+ return StyledText(
+ text: markup.replaceAll('<br>', '\n'),
+ newLineAsBreaks: true,
+ maxLines: maxLines,
+ overflow: overflow,
+ style: style,
+ textAlign: textAlign,
+ textDirection: textDirection,
+ tags: tags,
+ );
+ }
+ }
+}
+
+class HeaderTab extends StatelessWidget {
+ final Widget child;
+ final bool selected;
+ final VoidCallback onTap;
+ const HeaderTab(
+ {Key? key,
+ required this.child,
+ required this.selected,
+ required this.onTap})
+ : super(key: key);
+ HeaderTab.text(String text, this.selected, this.onTap, {Key? key})
+ : child = Text(text),
+ super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ late final Widget layout;
+ if (this.selected) {
+ layout = IntrinsicWidth(
+ child: Column(mainAxisSize: MainAxisSize.min, children: [
+ Flexible(child: child),
+ Container(height: 2.0, color: Colors.blue),
+ ]),
+ );
+ } else {
+ layout = child;
+ }
+
+ return InkWrapper(
+ child: Container(
+ padding: const EdgeInsets.all(12.0),
+ child: layout,
+ ),
+ onTap: onTap,
+ );
+ }
+}
+
+class HeaderNav extends StatelessWidget {
+ const HeaderNav({Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ final tab = QR.currentPath.split('/')[1];
+ print('tab: ${QR.currentPath} : $tab');
+ return Row(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
+ HeaderTab.text('STORE', tab == 'store', () => QR.to('/store')),
+ const SizedBox(width: 1.0),
+ HeaderTab.text('LIBRARY', tab == 'library', () => QR.to('/library')),
+ const SizedBox(width: 1.0),
+ HeaderTab(
+ child: Padding(
+ padding: EdgeInsets.all(1.0),
+ child: Icon(Icons.search),
+ ),
+ selected: false,
+ onTap: () => {},
+ ),
+ ]);
+ }
+}
+
+class ProfilePicture extends HookWidget {
+ final double size;
+ final VoidCallback onTap;
+ const ProfilePicture({Key? key, required this.size, required this.onTap})
+ : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ final imageDownloaded = useState(false);
+
+ final url =
+ 'https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/avatars/ba/baa7f4330ccbb009709c840182c743bb853a826b_full.jpg';
+ late final child;
+ if (imageDownloaded.value) {
+ child = Image.network(url, fit: BoxFit.fill);
+ } else {
+ child = BlurHash(
+ hash: 'LsG*BvEeM{n#-tR%W9oI5Tw[xCay',
+ image: url,
+ imageFit: BoxFit.fill,
+ decodingWidth: size.toInt(),
+ decodingHeight: size.toInt(),
+ onReady: () => Future.delayed(const Duration(milliseconds: 1),
+ () => imageDownloaded.value = true),
+ decodingMode: DecodingMode.isolate,
+ );
+ }
+
+ return Container(
+ padding: const EdgeInsets.all(2.0),
+ color: Colors.green,
+ child: SizedBox.square(
+ dimension: size - 4.0,
+ child: InkWrapper(
+ child: child,
+ onTap: onTap,
+ ),
+ ),
+ );
+ }
+}
+
+class DoujinSeaScaffold extends StatelessWidget {
+ final Widget child;
+ DoujinSeaScaffold({Key? key, required this.child}) : super(key: key);
+
+ final _profilePictureKey = GlobalKey();
+ final _zoomDrawerController = ZoomDrawerController();
+ final double _height = 48.0;
+
+ @override
+ Widget build(BuildContext context) {
+ final slideWidth = min(MediaQuery.of(context).size.width * 0.55, 250.0);
+ return WillPopScope(
+ onWillPop: () async => !Navigator.of(context).userGestureInProgress,
+ child: ZoomDrawer(
+ controller: _zoomDrawerController,
+ slideWidth: slideWidth,
+ style: DrawerStyle.Style2,
+ isRtl: true,
+ backgroundColor: Colors.grey.shade300,
+ menuScreen: Theme(
+ data: ThemeData.dark(),
+ child: Material(
+ child: SafeArea(
+ child: Align(
+ alignment: Alignment.topRight,
+ child: SizedBox(
+ width: slideWidth,
+ child: Column(children: [
+ Padding(
+ padding:
+ EdgeInsets.symmetric(horizontal: 12.0, vertical: 4.0),
+ child: HiButton.text(
+ 'Online',
+ borderRadius: BorderRadius.all(Radius.circular(4.0)),
+ height: _height - 8.0,
+ onTap: () => {},
+ ),
+ ),
+ const SizedBox(height: 8.0),
+ ListTile(
+ trailing: Icon(Icons.account_circle),
+ title: Text('Profile'),
+ ),
+ ListTile(
+ trailing: Icon(Icons.people),
+ title: Text('Friends'),
+ ),
+ ListTile(
+ trailing: Icon(Icons.shopping_cart),
+ title: Text('Cart'),
+ ),
+ Expanded(child: SizedBox.shrink()),
+ ListTile(
+ trailing: Icon(Icons.help),
+ title: Text('Help'),
+ ),
+ ListTile(
+ trailing: Icon(Icons.info),
+ title: Text('About'),
+ ),
+ ListTile(
+ trailing: Icon(Icons.settings),
+ title: Text('Settings'),
+ ),
+ const SizedBox(height: 24.0),
+ Row(children: [
+ Expanded(child: SizedBox.shrink()),
+ Text('Terms of Service',
+ style: TextStyle(fontSize: 10.0)),
+ const SizedBox(width: 8.0),
+ Text('|', style: TextStyle(fontSize: 10.0)),
+ const SizedBox(width: 8.0),
+ Text('Privacy Policy', style: TextStyle(fontSize: 10.0)),
+ Expanded(child: SizedBox.shrink()),
+ ]),
+ const SizedBox(height: 24.0),
+ ]),
+ ),
+ ),
+ ),
+ ),
+ ),
+ mainScreen: Scaffold(
+ appBar: PreferredSize(
+ preferredSize: Size.fromHeight(_height),
+ child: AppBar(
+ primary: true,
+ centerTitle: false,
+ automaticallyImplyLeading: false,
+ titleSpacing: 0.0,
+ title: Container(
+ height: _height,
+ child: HeaderNav(),
+ ),
+ actions: [
+ ProfilePicture(
+ key: _profilePictureKey,
+ size: _height,
+ onTap: () {
+ _zoomDrawerController.toggle?.call();
+ },
+ ),
+ ],
+ ),
+ ),
+ body: child,
+ ),
+ ),
+ );
+ }
+}
+
+class InkWrapper extends StatelessWidget {
+ final Color? splashColor;
+ final Widget child;
+ final VoidCallback onTap;
+ final ValueChanged<bool>? onHover;
+
+ const InkWrapper({
+ Key? key,
+ this.splashColor,
+ required this.child,
+ required this.onTap,
+ this.onHover,
+ }) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Stack(
+ children: <Widget>[
+ child,
+ Positioned.fill(
+ child: Material(
+ color: Colors.transparent,
+ child: InkWell(
+ splashColor: splashColor,
+ onTap: onTap,
+ onHover: onHover,
+ ),
+ ),
+ ),
+ ],
+ );
+ }
+}
+
+final colors = const [
+ Colors.red,
+ Colors.green,
+ Colors.greenAccent,
+ Colors.amberAccent,
+ Colors.blue,
+ Colors.amber,
+];
+
+void useInterval(VoidCallback callback, Duration delay, bool enabled) {
+ final savedCallback = useRef(callback);
+ final savedEnabled = useRef(enabled);
+ savedCallback.value = callback;
+ savedEnabled.value = enabled;
+
+ useEffect(() {
+ if (savedEnabled.value) {
+ final timer = Timer.periodic(delay, (_) => savedCallback.value());
+ return timer.cancel;
+ }
+ return () => {};
+ }, [delay]);
+}
+
+class Carousel extends HookWidget {
+ final int itemCount;
+ final int itemsPerPage;
+ final IndexedWidgetBuilder itemBuilder;
+ final double height;
+ final bool showIndicator;
+ final bool infinite;
+ final Color? color;
+ Carousel({
+ Key? key,
+ required this.itemCount,
+ required this.itemBuilder,
+ required this.height,
+ this.itemsPerPage = 4,
+ this.showIndicator = true,
+ this.infinite = true,
+ this.color,
+ }) : super(key: key);
+
+ final _flipDuration = Duration(seconds: 4);
+ final _transDuration = Duration(seconds: 1);
+ final _transCurve = Curves.easeInOutCirc;
+
+ @override
+ Widget build(BuildContext context) {
+ final calculatedItemsPerPage = min(itemCount, itemsPerPage);
+ final pageCount = (itemCount / calculatedItemsPerPage).ceil();
+ final shouldShowIndicator = showIndicator && pageCount > 1;
+ final controller =
+ usePageController(keepPage: true, initialPage: pageCount * 100 + 1);
+ final userInteracted = useState(pageCount == 1);
+ final animating = useState(false);
+ final isMounted = useIsMounted();
+
+ useInterval(() {
+ if (!isMounted() || userInteracted.value) return;
+ animating.value = true;
+ controller
+ .nextPage(duration: _transDuration, curve: _transCurve)
+ .then((_) {
+ if (!isMounted()) return;
+ animating.value = false;
+ });
+ }, _flipDuration, !userInteracted.value);
+
+ final pageView = Container(
+ color: color,
+ height: height,
+ child: PageView.builder(
+ scrollDirection: Axis.horizontal,
+ physics: (pageCount == 1 ? NeverScrollableScrollPhysics() : null),
+ onPageChanged: (_) {
+ if (!isMounted() || animating.value) return;
+ userInteracted.value = true;
+ },
+ controller: controller,
+ itemCount: (infinite ? null : pageCount),
+ itemBuilder: (_, index) {
+ return LayoutBuilder(
+ builder: (BuildContext context, BoxConstraints constraints) {
+ final width = constraints.maxWidth / calculatedItemsPerPage;
+ List<Widget> items = [];
+ final first = index * calculatedItemsPerPage;
+ for (int i = 0; i < calculatedItemsPerPage; ++i) {
+ items.add(SizedBox(
+ width: width,
+ height: height,
+ child: itemBuilder(_, (first + i) % itemCount)));
+ }
+ return Row(
+ mainAxisSize: MainAxisSize.max,
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
+ children: items,
+ );
+ });
+ },
+ ),
+ );
+
+ if (shouldShowIndicator) {
+ return Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ pageView,
+ SizedBox(height: 8.0),
+ SmoothPageIndicator(
+ controller: controller,
+ count: pageCount,
+ effect: SlideEffect(dotWidth: 6.0, dotHeight: 6.0),
+ onDotClicked: (index) {
+ if (animating.value) return;
+ userInteracted.value = true;
+ final page = controller.page?.toInt() ?? 0;
+ final from = page % pageCount;
+ final to = page + (index - from);
+ controller.animateToPage(to,
+ duration: _transDuration, curve: _transCurve);
+ },
+ ),
+ ],
+ );
+ }
+
+ return pageView;
+ }
+}
+
+class StaticFooterScrollView extends StatelessWidget {
+ final Widget child;
+ final Widget footer;
+ const StaticFooterScrollView(
+ {Key? key, required this.child, required this.footer})
+ : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Stack(
+ children: [
+ SingleChildScrollView(
+ child: child,
+ ),
+ Column(
+ mainAxisAlignment: MainAxisAlignment.end,
+ children: [
+ footer,
+ ],
+ )
+ ],
+ );
+ }
+}
+
+class StoreItemPage extends HookWidget {
+ const StoreItemPage({Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ final item = useState(StoreItem.empty());
+ useEffect(() {
+ API.product(QR.params['itemId'].toString()).then((v) => item.value = v);
+ }, []);
+
+ if (item.value.id == 0) {
+ return SizedBox.shrink();
+ }
+
+ final mobile = MediaQuery.of(context).size.width <= 640;
+ final itemsPerPage = max(MediaQuery.of(context).size.width ~/ 356, 1);
+ late final header, header2, footer;
+ if (mobile) {
+ header = Carousel(
+ height: kThumbHeight,
+ color: Colors.black,
+ itemCount: 4,
+ itemsPerPage: 1,
+ itemBuilder: (_, index) => BlurHash(
+ hash: 'LsG*BvEeM{n#-tR%W9oI5Tw[xCay',
+ image: item.value.cover,
+ imageFit: BoxFit.contain,
+ decodingWidth: kBlurHashDecodingSize,
+ decodingHeight: kBlurHashDecodingSize,
+ decodingMode: DecodingMode.isolate,
+ ),
+ );
+ header2 = SizedBox.shrink();
+ footer = HiButton.text(
+ 'Add To Cart',
+ icon: Icon(Icons.shopping_cart, color: Colors.white),
+ height: 48.0,
+ onTap: () => {},
+ );
+ } else {
+ header = Stack(
+ children: [
+ SizedBox(
+ height: max(MediaQuery.of(context).size.width * 0.28, kThumbHeight),
+ child: BlurHash(
+ hash: 'LsG*BvEeM{n#-tR%W9oI5Tw[xCay',
+ imageFit: BoxFit.cover,
+ decodingWidth: kBlurHashDecodingSize,
+ decodingHeight: kBlurHashDecodingSize,
+ decodingMode: DecodingMode.isolate,
+ ),
+ ),
+ Positioned.fill(
+ child: Center(
+ child: SizedBox(
+ width: 560,
+ height: 420,
+ child: BlurHash(
+ hash: 'LsG*BvEeM{n#-tR%W9oI5Tw[xCay',
+ image: item.value.cover,
+ imageFit: BoxFit.contain,
+ decodingWidth: kBlurHashDecodingSize,
+ decodingHeight: kBlurHashDecodingSize,
+ decodingMode: DecodingMode.isolate,
+ ),
+ ),
+ ),
+ ),
+ ],
+ );
+ header2 = Carousel(
+ height: 152.0,
+ itemCount: 4,
+ itemsPerPage: itemsPerPage,
+ itemBuilder: (_, index) => BlurHash(
+ hash: 'LsG*BvEeM{n#-tR%W9oI5Tw[xCay',
+ image: item.value.cover,
+ imageFit: BoxFit.contain,
+ decodingWidth: kBlurHashDecodingSize,
+ decodingHeight: kBlurHashDecodingSize,
+ decodingMode: DecodingMode.isolate,
+ ),
+ );
+ footer = Align(
+ alignment: Alignment.bottomRight,
+ child: Container(
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(4),
+ color: Theme.of(context).scaffoldBackgroundColor,
+ ),
+ padding: EdgeInsets.all(12.0),
+ child: IntrinsicWidth(
+ child: Column(
+ mainAxisAlignment: MainAxisAlignment.end,
+ crossAxisAlignment: CrossAxisAlignment.end,
+ children: [
+ SelectableText(
+ '12,000円',
+ style: TextStyle(
+ fontSize: 24.0 / 2,
+ decoration: TextDecoration.lineThrough,
+ height: 1.2,
+ ),
+ ),
+ const SizedBox(height: 4.0),
+ Row(mainAxisAlignment: MainAxisAlignment.end, children: [
+ Badge.text('SALE -50%', margin: EdgeInsets.only(top: 4.0)),
+ const SizedBox(width: 8.0),
+ SelectableText(
+ item.value.price.toString(),
+ style: TextStyle(
+ fontSize: 24.0,
+ fontWeight: FontWeight.w700,
+ height: 1.2,
+ ),
+ ),
+ ]),
+ const SizedBox(height: 4.0),
+ HiButton.text(
+ 'Add To Cart',
+ icon: Icon(Icons.shopping_cart, color: Colors.white),
+ height: 48.0,
+ onTap: () => {},
+ )
+ ],
+ ),
+ ),
+ ),
+ );
+ }
+
+ return DoujinSeaScaffold(
+ child: StaticFooterScrollView(
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ header,
+ Padding(
+ padding: EdgeInsets.symmetric(
+ horizontal:
+ (mobile ? 8.0 : MediaQuery.of(context).size.width * 0.18),
+ vertical: 8.0,
+ ),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.stretch,
+ children: [
+ Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
+ Expanded(
+ child: SelectableText(
+ item.value.name,
+ style: TextStyle(
+ fontSize: 24.0,
+ fontWeight: FontWeight.w700,
+ ),
+ ),
+ ),
+ LikeButton(),
+ ]),
+ const SizedBox(height: 8.0),
+ Row(children: [
+ RatingBarIndicator(
+ rating: 3,
+ itemCount: 5,
+ itemSize: 12.0,
+ itemBuilder: (context, _) => Icon(
+ Icons.star,
+ color: Colors.amber,
+ ),
+ ),
+ const SizedBox(width: 8.0),
+ Container(color: Colors.black, width: 1, height: 12.0),
+ const SizedBox(width: 8.0),
+ const FaIcon(FontAwesomeIcons.windows, size: 12.0),
+ const SizedBox(width: 8.0),
+ const FaIcon(FontAwesomeIcons.apple, size: 12.0),
+ const SizedBox(width: 8.0),
+ const FaIcon(FontAwesomeIcons.linux, size: 12.0),
+ const SizedBox(width: 8.0),
+ const FaIcon(FontAwesomeIcons.android, size: 12.0),
+ const Expanded(child: const SizedBox.shrink()),
+ SelectableText(
+ '12,000円',
+ style: TextStyle(
+ fontSize: 24.0 / 2,
+ decoration: TextDecoration.lineThrough,
+ height: 1.2,
+ ),
+ ),
+ ]),
+ const SizedBox(height: 4.0),
+ Row(mainAxisAlignment: MainAxisAlignment.start, children: [
+ Badge.text('RPG', margin: EdgeInsets.only(top: 4.0)),
+ const Expanded(child: const SizedBox.shrink()),
+ Badge.text('SALE -50%', margin: EdgeInsets.only(top: 4.0)),
+ const SizedBox(width: 8.0),
+ SelectableText(
+ item.value.price.toString(),
+ style: TextStyle(
+ fontSize: 24.0,
+ fontWeight: FontWeight.w700,
+ height: 1.2,
+ ),
+ ),
+ ]),
+ const SizedBox(height: 20.0),
+ header2,
+ const SizedBox(height: 20.0),
+ Markup.selectable(item.value.body),
+ const SizedBox(height: 20.0),
+ Container(
+ color: Colors.black, width: double.infinity, height: 1.0),
+ const SizedBox(height: 12.0),
+ Row(mainAxisAlignment: MainAxisAlignment.start, children: [
+ SelectableText(
+ 'Reviews',
+ style: TextStyle(
+ fontSize: 24.0,
+ fontWeight: FontWeight.w700,
+ height: 1.2,
+ ),
+ ),
+ const SizedBox(width: 8.0),
+ RatingBarIndicator(
+ rating: 3,
+ itemCount: 5,
+ itemSize: 18.0,
+ itemBuilder: (context, _) => Icon(
+ Icons.star,
+ color: Colors.amber,
+ ),
+ ),
+ ]),
+ const SizedBox(height: 8.0),
+ Carousel(
+ height: kThumbHeight,
+ showIndicator: false,
+ itemCount: 24,
+ itemsPerPage: itemsPerPage,
+ itemBuilder: (_, index) => Container(
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(16),
+ color: Theme.of(context).canvasColor,
+ ),
+ margin: EdgeInsets.symmetric(horizontal: 10, vertical: 4),
+ padding: EdgeInsets.all(18.0),
+ child: Container(
+ height: 280,
+ child: Center(child: Markup(item.value.body)),
+ ),
+ ),
+ ),
+ const SizedBox(height: 20.0),
+ Container(
+ color: Colors.black, width: double.infinity, height: 1.0),
+ const SizedBox(height: 12.0),
+ SelectableText(
+ 'System Requirements',
+ style: TextStyle(
+ fontSize: 24.0,
+ fontWeight: FontWeight.w700,
+ height: 1.2,
+ ),
+ ),
+ const SizedBox(height: 20.0),
+ Container(
+ color: Colors.black, width: double.infinity, height: 1.0),
+ const SizedBox(height: 12.0),
+ SelectableText(
+ 'Developer',
+ style: TextStyle(
+ fontSize: 24.0,
+ fontWeight: FontWeight.w700,
+ height: 1.2,
+ ),
+ ),
+ const SizedBox(height: 20.0),
+ Container(
+ color: Colors.black, width: double.infinity, height: 1.0),
+ const SizedBox(height: 12.0),
+ SelectableText(
+ 'You may also like',
+ style: TextStyle(
+ fontSize: 24.0,
+ fontWeight: FontWeight.w700,
+ height: 1.2,
+ ),
+ ),
+ const SizedBox(height: 8.0),
+ /*
+ Carousel(
+ height: kThumbHeight,
+ itemCount: 8,
+ itemsPerPage: itemsPerPage,
+ itemBuilder: (_, index) => StorePanel(
+ item: kStoreItems[index % kStoreItems.length],
+ alwaysShowDetails: true,
+ ),
+ ),
+ */
+ const SizedBox(height: 66.0),
+ ],
+ ),
+ )
+ ],
+ ),
+ footer: footer,
+ ),
+ );
+ }
+}
+
+class Badge extends StatelessWidget {
+ final Widget child;
+ final EdgeInsets? margin;
+ const Badge({Key? key, required this.child, this.margin}) : super(key: key);
+ Badge.text(String text, {Key? key, this.margin})
+ : child = Text(
+ text,
+ style: TextStyle(color: Colors.white, fontSize: 10.0),
+ ),
+ super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Container(
+ margin: margin,
+ padding: EdgeInsets.all(8),
+ decoration: BoxDecoration(
+ color: Colors.black.withOpacity(0.8),
+ borderRadius: BorderRadius.all(Radius.circular(8)),
+ ),
+ child: child,
+ );
+ }
+}
+
+class StoreThumb extends StatelessWidget {
+ final StoreItem item;
+ const StoreThumb({Key? key, required this.item}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return Image.network(
+ item.thumb,
+ width: double.infinity,
+ height: double.infinity,
+ fit: BoxFit.contain,
+ );
+ return BlurHash(
+ hash: 'LsG*BvEeM{n#-tR%W9oI5Tw[xCay',
+ image: item.thumb,
+ decodingWidth: kBlurHashDecodingSize,
+ decodingHeight: kBlurHashDecodingSize,
+ decodingMode: DecodingMode.isolate,
+ );
+ }
+}
+
+class StorePanel extends HookWidget {
+ final StoreItem item;
+ final bool alwaysShowDetails;
+ const StorePanel(
+ {Key? key, required this.item, this.alwaysShowDetails = false})
+ : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ final hover = useState(false);
+ if (!hover.value && !alwaysShowDetails) {
+ return InkWrapper(
+ child: StoreThumb(item: item),
+ onTap: () => QR.to('/store/item/${item.id}'),
+ onHover: (v) => hover.value = v,
+ );
+ }
+ return InkWrapper(
+ child: Stack(children: [
+ StoreThumb(item: item),
+ Container(
+ padding: EdgeInsets.all(8),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.end,
+ mainAxisSize: MainAxisSize.max,
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Badge.text('RPG'),
+ Badge(
+ child: RatingBarIndicator(
+ rating: 3,
+ itemCount: 5,
+ itemSize: 12.0,
+ itemBuilder: (context, _) => Icon(
+ Icons.star,
+ color: Colors.amber,
+ ),
+ ),
+ ),
+ Badge.text(item.price.toString()),
+ ]),
+ Badge.text(item.name),
+ ])),
+ ]),
+ onTap: () => QR.to('/store/item/${item.id}'),
+ onHover: (alwaysShowDetails ? (_) => {} : (v) => hover.value = v),
+ );
+ }
+}
+
+class StorePage extends HookWidget {
+ const StorePage({Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ final items = useState(List<StoreItem>.empty());
+ useEffect(() {
+ API.products('Fin').then((v) => items.value = v.data);
+ }, []);
+
+ return DoujinSeaScaffold(
+ child: LayoutBuilder(
+ builder: (BuildContext context, BoxConstraints constraints) {
+ return GridView.builder(
+ gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(
+ crossAxisCount: constraints.maxWidth ~/ kThumbWidth,
+ childAspectRatio: kThumbWidth / kThumbHeight,
+ ),
+ itemCount: items.value.length,
+ itemBuilder: (_, index) => StorePanel(item: items.value[index]),
+ );
+ },
+ ),
+ );
+ }
+}
+
+class LibraryPage extends HookWidget {
+ const LibraryPage({Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ final items = useState(List<StoreItem>.empty());
+ useEffect(() {
+ API.products('Dark Souls').then((v) => items.value = v.data);
+ }, []);
+
+ return DoujinSeaScaffold(
+ child: LayoutBuilder(
+ builder: (BuildContext context, BoxConstraints constraints) {
+ return GridView.builder(
+ gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(
+ crossAxisCount: constraints.maxWidth ~/ kThumbWidth,
+ childAspectRatio: kThumbWidth / kThumbHeight,
+ ),
+ itemCount: items.value.length,
+ itemBuilder: (_, index) => StorePanel(item: items.value[index]),
+ );
+ },
+ ),
+ );
+ }
+}
+
+class MainPage extends StatelessWidget {
+ const MainPage({Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ QR.navigator.replaceAll('/store');
+ return SizedBox.shrink();
+ }
+}
+
+class AppRoutes {
+ final routes = [
+ QRoute(path: '/', builder: () => const MainPage()),
+ QRoute(
+ path: '/store',
+ builder: () => const StorePage(),
+ children: [
+ QRoute(
+ path: '/item/:itemId',
+ builder: () => const StoreItemPage(),
+ ),
+ ],
+ ),
+ QRoute(
+ path: '/library',
+ builder: () => const LibraryPage(),
+ children: [
+ QRoute(
+ path: '/item/:itemId',
+ builder: () => DoujinSeaScaffold(child: SizedBox.shrink()),
+ ),
+ ],
+ ),
+ ];
+}
+
+class DoujinSeaApp extends StatelessWidget {
+ const DoujinSeaApp({Key? key}) : super(key: key);
+
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp.router(
+ title: 'DoujinSea',
+ debugShowCheckedModeBanner: false,
+ theme: ThemeData(
+ appBarTheme: AppBarTheme(color: DSColors.dark),
+ brightness: Brightness.light,
+ colorScheme: ColorScheme.light(),
+ textTheme: GoogleFonts.latoTextTheme(
+ Typography.blackHelsinki,
+ ),
+ ),
+ darkTheme: ThemeData(
+ appBarTheme: AppBarTheme(color: DSColors.dark),
+ brightness: Brightness.dark,
+ colorScheme: ColorScheme.dark(),
+ textTheme: GoogleFonts.latoTextTheme(
+ Typography.whiteHelsinki,
+ ),
+ ),
+ themeMode: ThemeMode.light,
+ routeInformationParser: QRouteInformationParser(),
+ routerDelegate: QRouterDelegate(AppRoutes().routes, withWebBar: false),
+ );
+ }
+}
+
+void main() {
+ QR.settings.enableDebugLog = true;
+ QR.setUrlStrategy();
+ QR.settings.pagesType = QFadePage();
+ runApp(const DoujinSeaApp());
+}
diff --git a/pubspec.lock b/pubspec.lock
new file mode 100644
index 0000000..fbd3fcb
--- /dev/null
+++ b/pubspec.lock
@@ -0,0 +1,427 @@
+# Generated by pub
+# See https://dart.dev/tools/pub/glossary#lockfile
+packages:
+ async:
+ dependency: transitive
+ description:
+ name: async
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.8.2"
+ boolean_selector:
+ dependency: transitive
+ description:
+ name: boolean_selector
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.0"
+ characters:
+ dependency: transitive
+ description:
+ name: characters
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.2.0"
+ charcode:
+ dependency: transitive
+ description:
+ name: charcode
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.3.1"
+ clock:
+ dependency: transitive
+ description:
+ name: clock
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
+ collection:
+ dependency: transitive
+ description:
+ name: collection
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.15.0"
+ crypto:
+ dependency: transitive
+ description:
+ name: crypto
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.0.1"
+ cupertino_icons:
+ dependency: "direct main"
+ description:
+ name: cupertino_icons
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.4"
+ fake_async:
+ dependency: transitive
+ description:
+ name: fake_async
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.2.0"
+ ffi:
+ dependency: transitive
+ description:
+ name: ffi
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.2"
+ file:
+ dependency: transitive
+ description:
+ name: file
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "6.1.2"
+ flutter:
+ dependency: "direct main"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_blurhash:
+ dependency: "direct main"
+ description:
+ path: "."
+ ref: HEAD
+ resolved-ref: f4f19e180ba3f689abb7a047c21100c4cfe83fb7
+ url: "https://github.com/AndriiHalunetsSl8/flutter_blurhash.git"
+ source: git
+ version: "0.6.0"
+ flutter_hooks:
+ dependency: "direct main"
+ description:
+ name: flutter_hooks
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.18.2+1"
+ flutter_lints:
+ dependency: "direct dev"
+ description:
+ name: flutter_lints
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.4"
+ flutter_rating_bar:
+ dependency: "direct main"
+ description:
+ name: flutter_rating_bar
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.0.0"
+ flutter_svg:
+ dependency: "direct main"
+ description:
+ name: flutter_svg
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.23.0+1"
+ flutter_test:
+ dependency: "direct dev"
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_web_plugins:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.0"
+ flutter_zoom_drawer:
+ dependency: "direct main"
+ description:
+ name: flutter_zoom_drawer
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.3.1"
+ font_awesome_flutter:
+ dependency: "direct main"
+ description:
+ name: font_awesome_flutter
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "9.2.0"
+ google_fonts:
+ dependency: "direct main"
+ description:
+ name: google_fonts
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.3.1"
+ http:
+ dependency: transitive
+ description:
+ name: http
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.13.4"
+ http_parser:
+ dependency: transitive
+ description:
+ name: http_parser
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.0.0"
+ js:
+ dependency: transitive
+ description:
+ name: js
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.6.3"
+ like_button:
+ dependency: "direct main"
+ description:
+ name: like_button
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.4"
+ lints:
+ dependency: transitive
+ description:
+ name: lints
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.1"
+ matcher:
+ dependency: transitive
+ description:
+ name: matcher
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.12.11"
+ material_color_utilities:
+ dependency: transitive
+ description:
+ name: material_color_utilities
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.1.3"
+ meta:
+ dependency: transitive
+ description:
+ name: meta
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.7.0"
+ path:
+ dependency: transitive
+ description:
+ name: path
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.8.0"
+ path_drawing:
+ dependency: transitive
+ description:
+ name: path_drawing
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.5.1+1"
+ path_parsing:
+ dependency: transitive
+ description:
+ name: path_parsing
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.2.1"
+ path_provider:
+ dependency: transitive
+ description:
+ name: path_provider
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.9"
+ path_provider_android:
+ dependency: transitive
+ description:
+ name: path_provider_android
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.11"
+ path_provider_ios:
+ dependency: transitive
+ description:
+ name: path_provider_ios
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.7"
+ path_provider_linux:
+ dependency: transitive
+ description:
+ name: path_provider_linux
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.5"
+ path_provider_macos:
+ dependency: transitive
+ description:
+ name: path_provider_macos
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.5"
+ path_provider_platform_interface:
+ dependency: transitive
+ description:
+ name: path_provider_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.3"
+ path_provider_windows:
+ dependency: transitive
+ description:
+ name: path_provider_windows
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.0.5"
+ pedantic:
+ dependency: transitive
+ description:
+ name: pedantic
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.11.1"
+ petitparser:
+ dependency: transitive
+ description:
+ name: petitparser
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.4.0"
+ platform:
+ dependency: transitive
+ description:
+ name: platform
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.1.0"
+ plugin_platform_interface:
+ dependency: transitive
+ description:
+ name: plugin_platform_interface
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.2"
+ process:
+ dependency: transitive
+ description:
+ name: process
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.2.4"
+ qlevar_router:
+ dependency: "direct main"
+ description:
+ name: qlevar_router
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.5.9"
+ sky_engine:
+ dependency: transitive
+ description: flutter
+ source: sdk
+ version: "0.0.99"
+ smooth_page_indicator:
+ dependency: "direct main"
+ description:
+ name: smooth_page_indicator
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.0+2"
+ source_span:
+ dependency: transitive
+ description:
+ name: source_span
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.8.1"
+ stack_trace:
+ dependency: transitive
+ description:
+ name: stack_trace
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.10.0"
+ stream_channel:
+ dependency: transitive
+ description:
+ name: stream_channel
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.0"
+ string_scanner:
+ dependency: transitive
+ description:
+ name: string_scanner
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.1.0"
+ styled_text:
+ dependency: "direct main"
+ description:
+ name: styled_text
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "4.0.0+1"
+ term_glyph:
+ dependency: transitive
+ description:
+ name: term_glyph
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.2.0"
+ test_api:
+ dependency: transitive
+ description:
+ name: test_api
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.4.8"
+ typed_data:
+ dependency: transitive
+ description:
+ name: typed_data
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.3.0"
+ vector_math:
+ dependency: transitive
+ description:
+ name: vector_math
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.1.1"
+ win32:
+ dependency: transitive
+ description:
+ name: win32
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "2.4.0"
+ xdg_directories:
+ dependency: transitive
+ description:
+ name: xdg_directories
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.2.0+1"
+ xml:
+ dependency: transitive
+ description:
+ name: xml
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "5.3.1"
+ xmlstream:
+ dependency: transitive
+ description:
+ name: xmlstream
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "1.0.0"
+sdks:
+ dart: ">=2.15.0 <3.0.0"
+ flutter: ">=2.10.0-0"
diff --git a/pubspec.yaml b/pubspec.yaml
new file mode 100644
index 0000000..b022d1f
--- /dev/null
+++ b/pubspec.yaml
@@ -0,0 +1,102 @@
+name: doujinsea
+description: A new Flutter project.
+
+# The following line prevents the package from being accidentally published to
+# pub.dev using `flutter pub publish`. This is preferred for private packages.
+publish_to: 'none' # Remove this line if you wish to publish to pub.dev
+
+# The following defines the version and build number for your application.
+# A version number is three numbers separated by dots, like 1.2.43
+# followed by an optional build number separated by a +.
+# Both the version and the builder number may be overridden in flutter
+# build by specifying --build-name and --build-number, respectively.
+# In Android, build-name is used as versionName while build-number used as versionCode.
+# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
+# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
+# Read more about iOS versioning at
+# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
+version: 1.0.0+1
+
+environment:
+ sdk: ">=2.12.0 <3.0.0"
+
+# Dependencies specify other packages that your package needs in order to work.
+# To automatically upgrade your package dependencies to the latest versions
+# consider running `flutter pub upgrade --major-versions`. Alternatively,
+# dependencies can be manually updated by changing the version numbers below to
+# the latest version available on pub.dev. To see which dependencies have newer
+# versions available, run `flutter pub outdated`.
+dependencies:
+ flutter:
+ sdk: flutter
+
+
+ # The following adds the Cupertino Icons font to your application.
+ # Use with the CupertinoIcons class for iOS style icons.
+ cupertino_icons: ^1.0.2
+ flutter_svg: ^0.23.0+1
+ flutter_blurhash:
+ git:
+ url: https://github.com/AndriiHalunetsSl8/flutter_blurhash.git
+ qlevar_router: ^1.5.8
+ flutter_rating_bar: ^4.0.0
+ google_fonts: ^2.1.1
+ font_awesome_flutter: ^9.2.0
+ flutter_hooks: ^0.18.1
+ smooth_page_indicator: ^1.0.0+2
+ styled_text: ^4.0.0+1
+ like_button: ^2.0.4
+ flutter_zoom_drawer: ^2.1.2
+
+dev_dependencies:
+ flutter_test:
+ sdk: flutter
+
+ # The "flutter_lints" package below contains a set of recommended lints to
+ # encourage good coding practices. The lint set provided by the package is
+ # activated in the `analysis_options.yaml` file located at the root of your
+ # package. See that file for information about deactivating specific lint
+ # rules and activating additional ones.
+ flutter_lints: ^1.0.0
+
+# For information on the generic Dart part of this file, see the
+# following page: https://dart.dev/tools/pub/pubspec
+
+# The following section is specific to Flutter.
+flutter:
+
+ # The following line ensures that the Material Icons font is
+ # included with your application, so that you can use the icons in
+ # the material Icons class.
+ uses-material-design: true
+
+ # To add assets to your application, add an assets section, like this:
+ # assets:
+ # - images/a_dot_burr.jpeg
+ # - images/a_dot_ham.jpeg
+
+ # An image asset can refer to one or more resolution-specific "variants", see
+ # https://flutter.dev/assets-and-images/#resolution-aware.
+
+ # For details regarding adding assets from package dependencies, see
+ # https://flutter.dev/assets-and-images/#from-packages
+
+ # To add custom fonts to your application, add a fonts section here,
+ # in this "flutter" section. Each entry in this list should have a
+ # "family" key with the font family name, and a "fonts" key with a
+ # list giving the asset and other descriptors for the font. For
+ # example:
+ # fonts:
+ # - family: Schyler
+ # fonts:
+ # - asset: fonts/Schyler-Regular.ttf
+ # - asset: fonts/Schyler-Italic.ttf
+ # style: italic
+ # - family: Trajan Pro
+ # fonts:
+ # - asset: fonts/TrajanPro.ttf
+ # - asset: fonts/TrajanPro_Bold.ttf
+ # weight: 700
+ #
+ # For details regarding fonts from package dependencies,
+ # see https://flutter.dev/custom-fonts/#from-packages
diff --git a/test/widget_test.dart b/test/widget_test.dart
new file mode 100644
index 0000000..44aa230
--- /dev/null
+++ b/test/widget_test.dart
@@ -0,0 +1,30 @@
+// This is a basic Flutter widget test.
+//
+// To perform an interaction with a widget in your test, use the WidgetTester
+// utility that Flutter provides. For example, you can send tap and scroll
+// gestures. You can also use WidgetTester to find child widgets in the widget
+// tree, read text, and verify that the values of widget properties are correct.
+
+import 'package:flutter/material.dart';
+import 'package:flutter_test/flutter_test.dart';
+
+import 'package:doujinsea/main.dart';
+
+void main() {
+ testWidgets('Counter increments smoke test', (WidgetTester tester) async {
+ // Build our app and trigger a frame.
+ await tester.pumpWidget(const MyApp());
+
+ // Verify that our counter starts at 0.
+ expect(find.text('0'), findsOneWidget);
+ expect(find.text('1'), findsNothing);
+
+ // Tap the '+' icon and trigger a frame.
+ await tester.tap(find.byIcon(Icons.add));
+ await tester.pump();
+
+ // Verify that our counter has incremented.
+ expect(find.text('0'), findsNothing);
+ expect(find.text('1'), findsOneWidget);
+ });
+}
diff --git a/web/favicon.png b/web/favicon.png
new file mode 100644
index 0000000..8aaa46a
--- /dev/null
+++ b/web/favicon.png
Binary files differ
diff --git a/web/icons/Icon-192.png b/web/icons/Icon-192.png
new file mode 100644
index 0000000..b749bfe
--- /dev/null
+++ b/web/icons/Icon-192.png
Binary files differ
diff --git a/web/icons/Icon-512.png b/web/icons/Icon-512.png
new file mode 100644
index 0000000..88cfd48
--- /dev/null
+++ b/web/icons/Icon-512.png
Binary files differ
diff --git a/web/icons/Icon-maskable-192.png b/web/icons/Icon-maskable-192.png
new file mode 100644
index 0000000..eb9b4d7
--- /dev/null
+++ b/web/icons/Icon-maskable-192.png
Binary files differ
diff --git a/web/icons/Icon-maskable-512.png b/web/icons/Icon-maskable-512.png
new file mode 100644
index 0000000..d69c566
--- /dev/null
+++ b/web/icons/Icon-maskable-512.png
Binary files differ
diff --git a/web/index.html b/web/index.html
new file mode 100644
index 0000000..db1cbe6
--- /dev/null
+++ b/web/index.html
@@ -0,0 +1,101 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <!--
+ If you are serving your web app in a path other than the root, change the
+ href value below to reflect the base path you are serving from.
+
+ The path provided below has to start and end with a slash "/" in order for
+ it to work correctly.
+
+ For more details:
+ * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
+
+ This is a placeholder for base href that will be replaced by the value of
+ the `--base-href` argument provided to `flutter build`.
+ -->
+ <base href="$FLUTTER_BASE_HREF">
+
+ <meta charset="UTF-8">
+ <meta content="IE=Edge" http-equiv="X-UA-Compatible">
+ <meta name="description" content="A new Flutter project.">
+
+ <!-- iOS meta tags & icons -->
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
+ <meta name="apple-mobile-web-app-title" content="doujinsea">
+ <link rel="apple-touch-icon" href="icons/Icon-192.png">
+
+ <title>doujinsea</title>
+ <link rel="manifest" href="manifest.json">
+</head>
+<body>
+ <!-- This script installs service_worker.js to provide PWA functionality to
+ application. For more information, see:
+ https://developers.google.com/web/fundamentals/primers/service-workers -->
+ <script>
+ var serviceWorkerVersion = null;
+ var scriptLoaded = false;
+ function loadMainDartJs() {
+ if (scriptLoaded) {
+ return;
+ }
+ scriptLoaded = true;
+ var scriptTag = document.createElement('script');
+ scriptTag.src = 'main.dart.js';
+ scriptTag.type = 'application/javascript';
+ document.body.append(scriptTag);
+ }
+
+ if ('serviceWorker' in navigator) {
+ // Service workers are supported. Use them.
+ window.addEventListener('load', function () {
+ // Wait for registration to finish before dropping the <script> tag.
+ // Otherwise, the browser will load the script multiple times,
+ // potentially different versions.
+ var serviceWorkerUrl = 'flutter_service_worker.js?v=' + serviceWorkerVersion;
+ navigator.serviceWorker.register(serviceWorkerUrl)
+ .then((reg) => {
+ function waitForActivation(serviceWorker) {
+ serviceWorker.addEventListener('statechange', () => {
+ if (serviceWorker.state == 'activated') {
+ console.log('Installed new service worker.');
+ loadMainDartJs();
+ }
+ });
+ }
+ if (!reg.active && (reg.installing || reg.waiting)) {
+ // No active web worker and we have installed or are installing
+ // one for the first time. Simply wait for it to activate.
+ waitForActivation(reg.installing || reg.waiting);
+ } else if (!reg.active.scriptURL.endsWith(serviceWorkerVersion)) {
+ // When the app updates the serviceWorkerVersion changes, so we
+ // need to ask the service worker to update.
+ console.log('New service worker available.');
+ reg.update();
+ waitForActivation(reg.installing);
+ } else {
+ // Existing service worker is still good.
+ console.log('Loading app from service worker.');
+ loadMainDartJs();
+ }
+ });
+
+ // If service worker doesn't succeed in a reasonable amount of time,
+ // fallback to plaint <script> tag.
+ setTimeout(() => {
+ if (!scriptLoaded) {
+ console.warn(
+ 'Failed to load app from service worker. Falling back to plain <script> tag.',
+ );
+ loadMainDartJs();
+ }
+ }, 4000);
+ });
+ } else {
+ // Service workers not supported. Just drop the <script> tag.
+ loadMainDartJs();
+ }
+ </script>
+</body>
+</html>
diff --git a/web/manifest.json b/web/manifest.json
new file mode 100644
index 0000000..e44d434
--- /dev/null
+++ b/web/manifest.json
@@ -0,0 +1,35 @@
+{
+ "name": "doujinsea",
+ "short_name": "doujinsea",
+ "start_url": ".",
+ "display": "standalone",
+ "background_color": "#0175C2",
+ "theme_color": "#0175C2",
+ "description": "A new Flutter project.",
+ "orientation": "portrait-primary",
+ "prefer_related_applications": false,
+ "icons": [
+ {
+ "src": "icons/Icon-192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "icons/Icon-512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ },
+ {
+ "src": "icons/Icon-maskable-192.png",
+ "sizes": "192x192",
+ "type": "image/png",
+ "purpose": "maskable"
+ },
+ {
+ "src": "icons/Icon-maskable-512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "maskable"
+ }
+ ]
+}