├── .flutter-plugins ├── .flutter-plugins-dependencies ├── .gitattributes ├── .gitignore ├── .idea ├── libraries │ ├── Dart_SDK.xml │ └── KotlinJavaRuntime.xml ├── modules.xml ├── runConfigurations │ └── main_dart.xml └── workspace.xml ├── .metadata ├── LICENSE ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── wiki_art │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── wiki_art_android.iml ├── flutter_01.png ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── Api │ ├── src │ │ ├── models │ │ │ ├── artist.dart │ │ │ ├── artistDetails.dart │ │ │ ├── artistDictionary.dart │ │ │ ├── artistPainting.dart │ │ │ ├── gender.dart │ │ │ ├── mostViewedPaintings.dart │ │ │ ├── painting.dart │ │ │ ├── paintingDetails.dart │ │ │ └── period.dart │ │ └── wikiArtApi.dart │ └── wikiArtApi.dart ├── Routes │ ├── router_handlers.dart │ └── routes.dart ├── Theme │ └── theme.dart ├── Widgets │ ├── cachedImage.dart │ └── widget.dart ├── get_it.dart ├── main.dart └── pages │ ├── Artist │ ├── artist.dart │ └── models │ │ └── dataSource.dart │ ├── Favorite │ └── favorite.dart │ ├── Home │ ├── NavBar │ │ └── nav_bar.dart │ ├── cubit │ │ ├── home_nav_bar_cubit.dart │ │ └── home_nav_bar_state.dart │ └── home.dart │ ├── ImagePreview │ └── slideImage.dart │ ├── MostViewed │ ├── Widgets │ │ ├── paintingListItem.dart │ │ └── widgets.dart │ └── most_viewed.dart │ ├── Search │ ├── bloc │ │ ├── search_bloc.dart │ │ ├── search_event.dart │ │ └── search_state.dart │ ├── search.dart │ ├── view │ │ ├── search_form.dart │ │ ├── search_page.dart │ │ └── view.dart │ └── widgets │ │ ├── search_bar.dart │ │ ├── search_results.dart │ │ └── widgets.dart │ ├── Settings │ └── settings.dart │ └── pages.dart ├── pubspec.yaml ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ └── Icon-512.png ├── index.html └── manifest.json └── wiki_art.iml /.flutter-plugins: -------------------------------------------------------------------------------- 1 | # This is a generated file; do not edit or check into version control. 2 | path_provider=C:\\Users\\fam\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider-2.0.2\\ 3 | path_provider_linux=C:\\Users\\fam\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_linux-2.0.2\\ 4 | path_provider_macos=C:\\Users\\fam\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_macos-2.0.2\\ 5 | path_provider_windows=C:\\Users\\fam\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_windows-2.0.3\\ 6 | sqflite=C:\\Users\\fam\\Documents\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\sqflite-2.0.0+3\\ 7 | -------------------------------------------------------------------------------- /.flutter-plugins-dependencies: -------------------------------------------------------------------------------- 1 | {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"C:\\\\Users\\\\fam\\\\Documents\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.2\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\fam\\\\Documents\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-2.0.0+3\\\\","dependencies":[]}],"android":[{"name":"path_provider","path":"C:\\\\Users\\\\fam\\\\Documents\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-2.0.2\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\fam\\\\Documents\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-2.0.0+3\\\\","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"C:\\\\Users\\\\fam\\\\Documents\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-2.0.2\\\\","dependencies":[]},{"name":"sqflite","path":"C:\\\\Users\\\\fam\\\\Documents\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\sqflite-2.0.0+3\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\Users\\\\fam\\\\Documents\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-2.0.2\\\\","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\Users\\\\fam\\\\Documents\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-2.0.3\\\\","dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2021-08-22 16:33:56.233166","version":"2.4.0-4.0.pre"} -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://www.dartlang.org/guides/libraries/private-files 2 | 3 | # Files and directories created by pub 4 | .dart_tool/ 5 | .packages 6 | build/ 7 | # If you're building an application, you may want to check-in your pubspec.lock 8 | pubspec.lock 9 | 10 | # Directory created by dartdoc 11 | # If you don't generate documentation locally you can remove this line. 12 | doc/api/ 13 | 14 | # Avoid committing generated Javascript files: 15 | *.dart.js 16 | *.info.json # Produced by the --dump-info flag. 17 | *.js # When generated by dart2js. Don't specify *.js if your 18 | # project includes source files written in JavaScript. 19 | *.js_ 20 | *.js.deps 21 | *.js.map 22 | -------------------------------------------------------------------------------- /.idea/libraries/Dart_SDK.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/libraries/KotlinJavaRuntime.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/runConfigurations/main_dart.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: fba99f6cf9a14512e461e3122c8ddfaa25394e89 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 bigblackclock 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # A Flutter Wiki Art App 2 | 3 | 4 | **TODO** 5 | - [ ] Complete the Wiki-Art API + Documentation 6 | - [ ] Database 7 | - [ ] Like Functionality 8 | - [ ] Nav Bar 9 | - [ ] Search Page 10 | - [ ] Liked Page 11 | - [ ] Add Artist Story 12 | - [ ] Get Random Paint 13 | - [ ] Settings 14 | 15 | 16 | **Wiki-Art Api** 17 | 18 | 19 | https://www.wikiart.org/en/App/GetApi 20 | 21 | https://docs.google.com/document/d/1Vxi5lQnMCA21dvNm_7JVd6nQkDS3whV3YjRjbwWPfQU/edit# 22 | 23 | https://docs.google.com/document/d/1T926unU7mx9Blmx3c8UE0UQTnO3MrDbXTGYVerVQFDU/edit 24 | 25 | 26 | **Screenshots** 27 | 28 | 29 | Demo Demo 30 | 31 | 32 | Demo Demo 33 | 34 | 35 | Demo 36 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.example.wiki_art" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 63 | } 64 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 23 | 27 | 32 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/wiki_art/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.wiki_art 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /android/wiki_art_android.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /flutter_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/flutter_01.png -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | FRAMEWORK_SEARCH_PATHS = ( 293 | "$(inherited)", 294 | "$(PROJECT_DIR)/Flutter", 295 | ); 296 | INFOPLIST_FILE = Runner/Info.plist; 297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 298 | LIBRARY_SEARCH_PATHS = ( 299 | "$(inherited)", 300 | "$(PROJECT_DIR)/Flutter", 301 | ); 302 | PRODUCT_BUNDLE_IDENTIFIER = com.example.wikiArt; 303 | PRODUCT_NAME = "$(TARGET_NAME)"; 304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 305 | SWIFT_VERSION = 5.0; 306 | VERSIONING_SYSTEM = "apple-generic"; 307 | }; 308 | name = Profile; 309 | }; 310 | 97C147031CF9000F007C117D /* Debug */ = { 311 | isa = XCBuildConfiguration; 312 | buildSettings = { 313 | ALWAYS_SEARCH_USER_PATHS = NO; 314 | CLANG_ANALYZER_NONNULL = YES; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 320 | CLANG_WARN_BOOL_CONVERSION = YES; 321 | CLANG_WARN_COMMA = YES; 322 | CLANG_WARN_CONSTANT_CONVERSION = YES; 323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 325 | CLANG_WARN_EMPTY_BODY = YES; 326 | CLANG_WARN_ENUM_CONVERSION = YES; 327 | CLANG_WARN_INFINITE_RECURSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 334 | CLANG_WARN_STRICT_PROTOTYPES = YES; 335 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 339 | COPY_PHASE_STRIP = NO; 340 | DEBUG_INFORMATION_FORMAT = dwarf; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | ENABLE_TESTABILITY = YES; 343 | GCC_C_LANGUAGE_STANDARD = gnu99; 344 | GCC_DYNAMIC_NO_PIC = NO; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_OPTIMIZATION_LEVEL = 0; 347 | GCC_PREPROCESSOR_DEFINITIONS = ( 348 | "DEBUG=1", 349 | "$(inherited)", 350 | ); 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 358 | MTL_ENABLE_DEBUG_INFO = YES; 359 | ONLY_ACTIVE_ARCH = YES; 360 | SDKROOT = iphoneos; 361 | TARGETED_DEVICE_FAMILY = "1,2"; 362 | }; 363 | name = Debug; 364 | }; 365 | 97C147041CF9000F007C117D /* Release */ = { 366 | isa = XCBuildConfiguration; 367 | buildSettings = { 368 | ALWAYS_SEARCH_USER_PATHS = NO; 369 | CLANG_ANALYZER_NONNULL = YES; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_EMPTY_BODY = YES; 381 | CLANG_WARN_ENUM_CONVERSION = YES; 382 | CLANG_WARN_INFINITE_RECURSION = YES; 383 | CLANG_WARN_INT_CONVERSION = YES; 384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 389 | CLANG_WARN_STRICT_PROTOTYPES = YES; 390 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 391 | CLANG_WARN_UNREACHABLE_CODE = YES; 392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 394 | COPY_PHASE_STRIP = NO; 395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 396 | ENABLE_NS_ASSERTIONS = NO; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_NO_COMMON_BLOCKS = YES; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 407 | MTL_ENABLE_DEBUG_INFO = NO; 408 | SDKROOT = iphoneos; 409 | SUPPORTED_PLATFORMS = iphoneos; 410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 411 | TARGETED_DEVICE_FAMILY = "1,2"; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 97C147061CF9000F007C117D /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 419 | buildSettings = { 420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 421 | CLANG_ENABLE_MODULES = YES; 422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 423 | ENABLE_BITCODE = NO; 424 | FRAMEWORK_SEARCH_PATHS = ( 425 | "$(inherited)", 426 | "$(PROJECT_DIR)/Flutter", 427 | ); 428 | INFOPLIST_FILE = Runner/Info.plist; 429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 430 | LIBRARY_SEARCH_PATHS = ( 431 | "$(inherited)", 432 | "$(PROJECT_DIR)/Flutter", 433 | ); 434 | PRODUCT_BUNDLE_IDENTIFIER = com.example.wikiArt; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 438 | SWIFT_VERSION = 5.0; 439 | VERSIONING_SYSTEM = "apple-generic"; 440 | }; 441 | name = Debug; 442 | }; 443 | 97C147071CF9000F007C117D /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 446 | buildSettings = { 447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 448 | CLANG_ENABLE_MODULES = YES; 449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 450 | ENABLE_BITCODE = NO; 451 | FRAMEWORK_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | INFOPLIST_FILE = Runner/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 457 | LIBRARY_SEARCH_PATHS = ( 458 | "$(inherited)", 459 | "$(PROJECT_DIR)/Flutter", 460 | ); 461 | PRODUCT_BUNDLE_IDENTIFIER = com.example.wikiArt; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 464 | SWIFT_VERSION = 5.0; 465 | VERSIONING_SYSTEM = "apple-generic"; 466 | }; 467 | name = Release; 468 | }; 469 | /* End XCBuildConfiguration section */ 470 | 471 | /* Begin XCConfigurationList section */ 472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 97C147031CF9000F007C117D /* Debug */, 476 | 97C147041CF9000F007C117D /* Release */, 477 | 249021D3217E4FDB00AE95B9 /* Profile */, 478 | ); 479 | defaultConfigurationIsVisible = 0; 480 | defaultConfigurationName = Release; 481 | }; 482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | 97C147061CF9000F007C117D /* Debug */, 486 | 97C147071CF9000F007C117D /* Release */, 487 | 249021D4217E4FDB00AE95B9 /* Profile */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | /* End XCConfigurationList section */ 493 | }; 494 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 495 | } 496 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | 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. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | wiki_art 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/Api/src/models/artist.dart: -------------------------------------------------------------------------------- 1 | import 'package:wiki_art/Api/src/models/period.dart'; 2 | 3 | import 'gender.dart'; 4 | 5 | class Artist { 6 | Artist({ 7 | this.id, 8 | this.artistName, 9 | this.url, 10 | this.lastNameFirst, 11 | this.birthDay, 12 | this.deathDay, 13 | this.birthDayAsString, 14 | this.deathDayAsString, 15 | this.image, 16 | this.wikipediaUrl, 17 | this.dictionaries, 18 | this.periods, 19 | this.series, 20 | this.activeYearsStart, 21 | this.activeYearsCompletion, 22 | this.biography, 23 | this.gender, 24 | this.originalArtistName, 25 | this.relatedArtists, 26 | }); 27 | 28 | String id; 29 | String artistName; 30 | String url; 31 | String lastNameFirst; 32 | String birthDay; 33 | String deathDay; 34 | String birthDayAsString; 35 | String deathDayAsString; 36 | String image; 37 | dynamic wikipediaUrl; 38 | List dictionaries; 39 | List periods; 40 | List series; 41 | int activeYearsStart; 42 | int activeYearsCompletion; 43 | String biography; 44 | Gender gender; 45 | String originalArtistName; 46 | List relatedArtists; 47 | 48 | factory Artist.fromJson(Map json) => Artist( 49 | id: json["id"], 50 | artistName: json["artistName"], 51 | url: json["url"], 52 | lastNameFirst: 53 | json["lastNameFirst"] == null ? null : json["lastNameFirst"], 54 | birthDay: json["birthDay"], 55 | deathDay: json["deathDay"], 56 | birthDayAsString: json["birthDayAsString"], 57 | deathDayAsString: json["deathDayAsString"], 58 | image: json["image"], 59 | wikipediaUrl: json["wikipediaUrl"], 60 | dictionaries: List.from(json["dictionaries"].map((x) => x)), 61 | periods: 62 | List.from(json["periods"].map((x) => Period.fromJson(x))), 63 | series: 64 | List.from(json["series"].map((x) => Period.fromJson(x))), 65 | activeYearsStart: 66 | json["activeYearsStart"] == null ? null : json["activeYearsStart"], 67 | activeYearsCompletion: json["activeYearsCompletion"] == null 68 | ? null 69 | : json["activeYearsCompletion"], 70 | biography: json["biography"], 71 | gender: genderValues.map[json["gender"]], 72 | originalArtistName: json["originalArtistName"], 73 | relatedArtists: List.from(json["relatedArtists"].map((x) => x)), 74 | ); 75 | 76 | Map toJson() => { 77 | "id": id, 78 | "artistName": artistName, 79 | "url": url, 80 | "lastNameFirst": lastNameFirst == null ? null : lastNameFirst, 81 | "birthDay": birthDay, 82 | "deathDay": deathDay, 83 | "birthDayAsString": birthDayAsString, 84 | "deathDayAsString": deathDayAsString, 85 | "image": image, 86 | "wikipediaUrl": wikipediaUrl, 87 | "dictionaries": List.from(dictionaries.map((x) => x)), 88 | "periods": List.from(periods.map((x) => x.toJson())), 89 | "series": List.from(series.map((x) => x.toJson())), 90 | "activeYearsStart": activeYearsStart == null ? null : activeYearsStart, 91 | "activeYearsCompletion": 92 | activeYearsCompletion == null ? null : activeYearsCompletion, 93 | "biography": biography, 94 | "gender": genderValues.reverse[gender], 95 | "originalArtistName": originalArtistName, 96 | "relatedArtists": List.from(relatedArtists.map((x) => x)), 97 | }; 98 | } 99 | -------------------------------------------------------------------------------- /lib/Api/src/models/artistDetails.dart: -------------------------------------------------------------------------------- 1 | // To parse this JSON data, do 2 | // 3 | // final ArtistDetails = artistFromJson(jsonString); 4 | 5 | import 'dart:convert'; 6 | 7 | ArtistDetails artistDetailsFromJson(String str) => 8 | ArtistDetails.fromJson(json.decode(str)); 9 | 10 | String artistDetailsToJson(ArtistDetails data) => json.encode(data.toJson()); 11 | 12 | class ArtistDetails { 13 | ArtistDetails({ 14 | this.relatedArtistsIds, 15 | this.originalArtistName, 16 | this.gender, 17 | this.story, 18 | this.biography, 19 | this.activeYearsCompletion, 20 | this.activeYearsStart, 21 | this.series, 22 | this.themes, 23 | this.periodsOfWork, 24 | this.contentId, 25 | this.artistName, 26 | this.url, 27 | this.lastNameFirst, 28 | this.birthDay, 29 | this.deathDay, 30 | this.birthDayAsString, 31 | this.deathDayAsString, 32 | this.image, 33 | this.wikipediaUrl, 34 | this.dictonaries, 35 | }); 36 | 37 | List relatedArtistsIds; 38 | String originalArtistName; 39 | String gender; 40 | String story; 41 | String biography; 42 | int activeYearsCompletion; 43 | int activeYearsStart; 44 | String series; 45 | String themes; 46 | String periodsOfWork; 47 | int contentId; 48 | String artistName; 49 | String url; 50 | String lastNameFirst; 51 | String birthDay; 52 | String deathDay; 53 | String birthDayAsString; 54 | String deathDayAsString; 55 | String image; 56 | String wikipediaUrl; 57 | List dictonaries; 58 | 59 | factory ArtistDetails.fromJson(Map json) => ArtistDetails( 60 | relatedArtistsIds: 61 | List.from(json["relatedArtistsIds"].map((x) => x)), 62 | originalArtistName: json["OriginalArtistName"], 63 | gender: json["gender"], 64 | story: json["story"], 65 | biography: json["biography"], 66 | activeYearsCompletion: json["activeYearsCompletion"], 67 | activeYearsStart: json["activeYearsStart"], 68 | series: json["series"], 69 | themes: json["themes"], 70 | periodsOfWork: json["periodsOfWork"], 71 | contentId: json["contentId"], 72 | artistName: json["artistName"], 73 | url: json["url"], 74 | lastNameFirst: json["lastNameFirst"], 75 | birthDay: json["birthDay"], 76 | deathDay: json["deathDay"], 77 | birthDayAsString: json["birthDayAsString"], 78 | deathDayAsString: json["deathDayAsString"], 79 | image: json["image"], 80 | wikipediaUrl: json["wikipediaUrl"], 81 | dictonaries: List.from(json["dictonaries"].map((x) => x)), 82 | ); 83 | 84 | Map toJson() => { 85 | "relatedArtistsIds": 86 | List.from(relatedArtistsIds.map((x) => x)), 87 | "OriginalArtistName": originalArtistName, 88 | "gender": gender, 89 | "story": story, 90 | "biography": biography, 91 | "activeYearsCompletion": activeYearsCompletion, 92 | "activeYearsStart": activeYearsStart, 93 | "series": series, 94 | "themes": themes, 95 | "periodsOfWork": periodsOfWork, 96 | "contentId": contentId, 97 | "artistName": artistName, 98 | "url": url, 99 | "lastNameFirst": lastNameFirst, 100 | "birthDay": birthDay, 101 | "deathDay": deathDay, 102 | "birthDayAsString": birthDayAsString, 103 | "deathDayAsString": deathDayAsString, 104 | "image": image, 105 | "wikipediaUrl": wikipediaUrl, 106 | "dictonaries": List.from(dictonaries.map((x) => x)), 107 | }; 108 | 109 | String get getImage { 110 | String img = this.image ?? 111 | "https://us.123rf.com/450wm/pavelstasevich/pavelstasevich1811/pavelstasevich181101032/112815935-stock-vector-no-image-available-icon-flat-vector-illustration.jpg?ver=6"; 112 | return img; 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /lib/Api/src/models/artistDictionary.dart: -------------------------------------------------------------------------------- 1 | // To parse this JSON data, do 2 | // 3 | // final artistDictionary = artistDictionaryFromJson(jsonString); 4 | 5 | import 'dart:convert'; 6 | import 'artist.dart'; 7 | 8 | ArtistDictionary artistDictionaryFromJson(String str) => 9 | ArtistDictionary.fromJson(json.decode(str)); 10 | 11 | class ArtistDictionary { 12 | ArtistDictionary({ 13 | this.artists, 14 | this.paginationToken, 15 | this.hasMore, 16 | }); 17 | 18 | List artists; 19 | String paginationToken; 20 | bool hasMore; 21 | 22 | factory ArtistDictionary.fromJson(Map json) => 23 | ArtistDictionary( 24 | artists: List.from(json["data"].map((x) => Artist.fromJson(x))), 25 | paginationToken: json["paginationToken"], 26 | hasMore: json["hasMore"], 27 | ); 28 | 29 | Map toJson() => { 30 | "data": List.from(artists.map((x) => x.toJson())), 31 | "paginationToken": paginationToken, 32 | "hasMore": hasMore, 33 | }; 34 | } 35 | -------------------------------------------------------------------------------- /lib/Api/src/models/artistPainting.dart: -------------------------------------------------------------------------------- 1 | // To parse this JSON data, do 2 | // 3 | // final artistPainting = artistPaintingFromJson(jsonString); 4 | 5 | import 'dart:convert'; 6 | 7 | import 'package:wiki_art/Api/src/models/painting.dart'; 8 | 9 | ArtistPainting artistPaintingFromJson(String str) => 10 | ArtistPainting.fromJson(json.decode(str)); 11 | 12 | String artistPaintingToJson(ArtistPainting data) => json.encode(data.toJson()); 13 | 14 | class ArtistPainting { 15 | ArtistPainting({ 16 | this.painting, 17 | this.paginationToken, 18 | this.hasMore, 19 | }); 20 | 21 | List painting; 22 | String paginationToken; 23 | bool hasMore; 24 | 25 | factory ArtistPainting.fromJson(Map json) => ArtistPainting( 26 | painting: 27 | List.from(json["data"].map((x) => Painting.fromJson(x))), 28 | paginationToken: json["paginationToken"], 29 | hasMore: json["hasMore"], 30 | ); 31 | 32 | Map toJson() => { 33 | "data": List.from(painting.map((x) => x.toJson())), 34 | "paginationToken": paginationToken, 35 | "hasMore": hasMore, 36 | }; 37 | } 38 | -------------------------------------------------------------------------------- /lib/Api/src/models/gender.dart: -------------------------------------------------------------------------------- 1 | enum Gender { MALE, FEMALE } 2 | 3 | class EnumValues { 4 | Map map; 5 | Map reverseMap; 6 | 7 | EnumValues(this.map); 8 | 9 | Map get reverse { 10 | if (reverseMap == null) { 11 | reverseMap = map.map((k, v) => new MapEntry(v, k)); 12 | } 13 | return reverseMap; 14 | } 15 | } 16 | 17 | final genderValues = EnumValues({"female": Gender.FEMALE, "male": Gender.MALE}); 18 | -------------------------------------------------------------------------------- /lib/Api/src/models/mostViewedPaintings.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'painting.dart'; 4 | 5 | MostViewedPaintings mostViewedPaintingsFromJson(String str) => 6 | MostViewedPaintings.fromJson(json.decode(str)); 7 | 8 | class MostViewedPaintings { 9 | MostViewedPaintings({ 10 | this.painting, 11 | this.paginationToken, 12 | this.hasMore, 13 | }); 14 | List painting; 15 | String paginationToken; 16 | bool hasMore; 17 | 18 | factory MostViewedPaintings.fromJson(Map json) => 19 | MostViewedPaintings( 20 | painting: 21 | List.from(json["data"].map((x) => Painting.fromJson(x))), 22 | paginationToken: json["paginationToken"], 23 | hasMore: json["hasMore"], 24 | ); 25 | 26 | Map toJson() => { 27 | "data": List.from(painting.map((x) => x.toJson())), 28 | "paginationToken": paginationToken, 29 | "hasMore": hasMore, 30 | }; 31 | } 32 | -------------------------------------------------------------------------------- /lib/Api/src/models/painting.dart: -------------------------------------------------------------------------------- 1 | class Painting { 2 | Painting({ 3 | this.id, 4 | this.title, 5 | this.url, 6 | this.artistUrl, 7 | this.artistName, 8 | this.artistId, 9 | this.completitionYear, 10 | this.width, 11 | this.image, 12 | this.height, 13 | }); 14 | 15 | String id; 16 | String title; 17 | String url; 18 | String artistUrl; 19 | String artistName; 20 | String artistId; 21 | String completitionYear; 22 | double width; 23 | String image; 24 | double height; 25 | 26 | factory Painting.fromJson(Map json) => Painting( 27 | id: json["id"], 28 | title: json["title"], 29 | url: json["url"], 30 | artistUrl: json["artistUrl"], 31 | artistName: json["artistName"], 32 | artistId: json["artistId"], 33 | completitionYear: json["completitionYear"] == null 34 | ? null 35 | : json["completitionYear"].toString(), 36 | image: json["image"], 37 | width: json["width"].toDouble(), 38 | height: json["height"].toDouble(), 39 | ); 40 | 41 | Map toJson() => { 42 | "id": id, 43 | "title": title, 44 | "url": url, 45 | "artistUrl": artistUrl, 46 | "artistName": artistName, 47 | "artistId": artistId, 48 | "image": "no", 49 | "completitionYear": 50 | completitionYear == null ? "null" : completitionYear.toString(), 51 | "width": width, 52 | "height": height, 53 | }; 54 | } 55 | -------------------------------------------------------------------------------- /lib/Api/src/models/paintingDetails.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | PaintingDetails paintingDetailsFromJson(String str) => 4 | PaintingDetails.fromJson(json.decode(str)); 5 | 6 | class PaintingDetails { 7 | PaintingDetails({ 8 | this.id, 9 | this.title, 10 | this.url, 11 | this.artistUrl, 12 | this.artistName, 13 | this.artistId, 14 | this.completitionYear, 15 | this.dictionaries, 16 | this.location, 17 | this.period, 18 | this.serie, 19 | this.genres, 20 | this.styles, 21 | this.media, 22 | this.sizeX, 23 | this.sizeY, 24 | this.diameter, 25 | this.galleries, 26 | this.tags, 27 | this.description, 28 | this.width, 29 | this.image, 30 | this.height, 31 | }); 32 | 33 | String id; 34 | String title; 35 | String url; 36 | String artistUrl; 37 | String artistName; 38 | String artistId; 39 | int completitionYear; 40 | List dictionaries; 41 | String location; 42 | dynamic period; 43 | dynamic serie; 44 | List genres; 45 | List styles; 46 | List media; 47 | int sizeX; 48 | int sizeY; 49 | dynamic diameter; 50 | List galleries; 51 | List tags; 52 | String description; 53 | int width; 54 | String image; 55 | int height; 56 | 57 | factory PaintingDetails.fromJson(Map json) => 58 | PaintingDetails( 59 | id: json["id"], 60 | title: json["title"], 61 | url: json["url"], 62 | artistUrl: json["artistUrl"], 63 | artistName: json["artistName"], 64 | artistId: json["artistId"], 65 | completitionYear: json["completitionYear"], 66 | dictionaries: List.from(json["dictionaries"].map((x) => x)), 67 | location: json["location"], 68 | period: json["period"], 69 | serie: json["serie"], 70 | genres: List.from(json["genres"].map((x) => x)), 71 | styles: List.from(json["styles"].map((x) => x)), 72 | media: List.from(json["media"].map((x) => x)), 73 | sizeX: json["sizeX"], 74 | sizeY: json["sizeY"], 75 | diameter: json["diameter"], 76 | galleries: List.from(json["galleries"].map((x) => x)), 77 | tags: List.from(json["tags"].map((x) => x)), 78 | description: json["description"], 79 | width: json["width"], 80 | image: json["image"], 81 | height: json["height"], 82 | ); 83 | 84 | Map toJson() => { 85 | "id": id, 86 | "title": title, 87 | "url": url, 88 | "artistUrl": artistUrl, 89 | "artistName": artistName, 90 | "artistId": artistId, 91 | "completitionYear": completitionYear, 92 | "dictionaries": List.from(dictionaries.map((x) => x)), 93 | "location": location, 94 | "period": period, 95 | "serie": serie, 96 | "genres": List.from(genres.map((x) => x)), 97 | "styles": List.from(styles.map((x) => x)), 98 | "media": List.from(media.map((x) => x)), 99 | "sizeX": sizeX, 100 | "sizeY": sizeY, 101 | "diameter": diameter, 102 | "galleries": List.from(galleries.map((x) => x)), 103 | "tags": List.from(tags.map((x) => x)), 104 | "description": description, 105 | "width": width, 106 | "image": image, 107 | "height": height, 108 | }; 109 | } 110 | -------------------------------------------------------------------------------- /lib/Api/src/models/period.dart: -------------------------------------------------------------------------------- 1 | class Period { 2 | Period({ 3 | this.id, 4 | this.title, 5 | }); 6 | 7 | String id; 8 | String title; 9 | 10 | factory Period.fromJson(Map json) => Period( 11 | id: json["id"], 12 | title: json["title"], 13 | ); 14 | 15 | Map toJson() => { 16 | "id": id, 17 | "title": title, 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /lib/Api/src/wikiArtApi.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:wiki_art/Api/src/models/artistDetails.dart'; 3 | import 'package:wiki_art/Api/src/models/painting.dart'; 4 | import 'package:wiki_art/Api/src/models/paintingDetails.dart'; 5 | import 'models/artistPainting.dart'; 6 | import 'models/mostViewedPaintings.dart'; 7 | 8 | String v2ApiUrl = "https://www.wikiart.org/en/api/2"; 9 | String v1ApiUrl = "http://www.wikiart.org/en/"; 10 | 11 | class WikiArtApi { 12 | Dio v2 = new Dio(BaseOptions(baseUrl: v2ApiUrl)); 13 | Dio v1 = new Dio(BaseOptions(baseUrl: v1ApiUrl)); 14 | 15 | Future getMostViwedPaintings( 16 | {MostViewedPaintings mostViewedPaintings}) async { 17 | Response response; 18 | 19 | if (mostViewedPaintings.paginationToken == null) 20 | response = await v2.get("/MostViewedPaintings"); 21 | else if (mostViewedPaintings.hasMore == true && 22 | mostViewedPaintings.paginationToken != null) 23 | response = await v2.get( 24 | "/MostViewedPaintings?paginationToken=${mostViewedPaintings.paginationToken}"); 25 | 26 | mostViewedPaintings = mostViewedPaintingsFromJson(response.toString()); 27 | return mostViewedPaintings; 28 | } 29 | 30 | Future getPaintingDetails(Painting painting) async { 31 | Response response = await v2.get("/Painting?id=${painting.id}"); 32 | 33 | PaintingDetails _paintingDetails = 34 | paintingDetailsFromJson(response.toString()); 35 | return _paintingDetails; 36 | } 37 | 38 | Future getArtistDetails(String artistUrl) async { 39 | Response response = await v1.get("/$artistUrl?json=2"); 40 | return artistDetailsFromJson(response.toString()); 41 | } 42 | 43 | Future getArtistPaintings( 44 | {String artistId, ArtistPainting artistPainting}) async { 45 | Response response; 46 | if (artistPainting.paginationToken == null) 47 | response = await v2.get("/PaintingsByArtist?id=$artistId"); 48 | else if (artistPainting.hasMore == true && 49 | artistPainting.paginationToken != null) 50 | response = await v2.get( 51 | "/PaintingsByArtist?id=$artistId&paginationToken=${artistPainting.paginationToken}"); 52 | 53 | return artistPaintingFromJson(response.toString()); 54 | } 55 | 56 | Future searchForPainting(String keyword) async { 57 | Response response = await v2.get("/PaintingSearch?term=$keyword"); 58 | return artistPaintingFromJson(response.toString()); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /lib/Api/wikiArtApi.dart: -------------------------------------------------------------------------------- 1 | export 'src/wikiArtApi.dart'; 2 | export 'src/models/mostViewedPaintings.dart'; 3 | export 'src/models/painting.dart'; 4 | -------------------------------------------------------------------------------- /lib/Routes/router_handlers.dart: -------------------------------------------------------------------------------- 1 | // import 'dart:convert'; 2 | 3 | // import 'package:flutter/material.dart'; 4 | 5 | // import 'package:fluro/fluro.dart'; 6 | // import 'package:wiki_art/Api/wikiArtApi.dart'; 7 | // import 'package:wiki_art/pages/pages.dart'; 8 | 9 | // var splashPageHandler = 10 | // Handler(handlerFunc: (BuildContext context, Map params) { 11 | // return Container( 12 | // child: Text("splash"), 13 | // ); 14 | // }); 15 | 16 | // var mostViewedPaintingPageHandler = 17 | // Handler(handlerFunc: (BuildContext context, Map params) { 18 | // return HomePage(); 19 | // }); 20 | 21 | // var artistPageHandler = 22 | // Handler(handlerFunc: (BuildContext context, Map params) { 23 | // var json = jsonDecode(params["painting"][0]); 24 | // return ArtistPage( 25 | // painting: Painting.fromJson(json), 26 | // ); 27 | // }); 28 | 29 | // var demoFunctionHandler = Handler( 30 | // type: HandlerType.function, 31 | // // ignore: missing_return 32 | // handlerFunc: (BuildContext context, Map> params) { 33 | // String message = params["message"]?.first; 34 | // showDialog( 35 | // context: context, 36 | // builder: (context) { 37 | // return AlertDialog( 38 | // title: Text( 39 | // "Hey Hey!", 40 | // style: TextStyle( 41 | // color: const Color(0xFF00D6F7), 42 | // fontFamily: "Lazer84", 43 | // fontSize: 22.0, 44 | // ), 45 | // ), 46 | // content: Text("$message"), 47 | // actions: [ 48 | // Padding( 49 | // padding: EdgeInsets.only(bottom: 8.0, right: 8.0), 50 | // child: FlatButton( 51 | // onPressed: () { 52 | // Navigator.of(context).pop(true); 53 | // }, 54 | // child: Text("OK"), 55 | // ), 56 | // ), 57 | // ], 58 | // ); 59 | // }, 60 | // ); 61 | // }); 62 | -------------------------------------------------------------------------------- /lib/Routes/routes.dart: -------------------------------------------------------------------------------- 1 | // import 'package:fluro/fluro.dart'; 2 | // import 'package:wiki_art/Routes/router_handlers.dart'; 3 | 4 | // final router = Router(); 5 | 6 | // class Routes { 7 | // static const root = '/'; 8 | // static const mostViewed = '/mostViewed'; 9 | // static const search = '/search'; 10 | // static const splash = '/splash'; 11 | 12 | // static const artist = "/artist/:data"; 13 | 14 | // static const demoFunc = "/demo/func"; 15 | 16 | // static void defineRoutes(Router router) { 17 | // router.define(mostViewed, 18 | // handler: mostViewedPaintingPageHandler, 19 | // transitionType: TransitionType.cupertino); 20 | // router.define('artist/:painting', 21 | // handler: artistPageHandler, transitionType: TransitionType.cupertino); 22 | 23 | // // router.define(root, handler: rootAppHandler); 24 | // } 25 | // } 26 | -------------------------------------------------------------------------------- /lib/Theme/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | class AppTheme { 5 | AppTheme._(); 6 | static const Color pink = Color(0xFFF2389E); 7 | static const Color blue = Color(0xFF0122CA); 8 | static const Color grey = Color(0xFF7E7E7E); 9 | static const Color white = Color(0xFFFEFEFE); 10 | static const Color black = Color(0xFF0D0D0D); 11 | 12 | static final ThemeData themeData = ThemeData( 13 | primaryColor: blue, 14 | dialogBackgroundColor: black, 15 | accentColor: pink, 16 | primarySwatch: Colors.pink, 17 | backgroundColor: black, 18 | dividerColor: pink, 19 | scaffoldBackgroundColor: black, 20 | brightness: Brightness.dark, 21 | appBarTheme: AppBarTheme( 22 | elevation: 0, 23 | color: black, 24 | textTheme: AppTheme.textTheme.apply(bodyColor: white), 25 | iconTheme: IconThemeData( 26 | color: pink, 27 | )), 28 | textTheme: AppTheme.textTheme, 29 | visualDensity: VisualDensity.adaptivePlatformDensity, 30 | ); 31 | 32 | static final TextTheme textTheme = TextTheme( 33 | headline1: GoogleFonts.montserrat( 34 | fontSize: 97, fontWeight: FontWeight.w300, letterSpacing: -1.5), 35 | headline2: GoogleFonts.montserrat( 36 | fontSize: 61, fontWeight: FontWeight.w300, letterSpacing: -0.5), 37 | headline3: 38 | GoogleFonts.montserrat(fontSize: 48, fontWeight: FontWeight.w400), 39 | headline4: GoogleFonts.montserrat( 40 | fontSize: 34, fontWeight: FontWeight.w400, letterSpacing: 0.25), 41 | headline5: 42 | GoogleFonts.montserrat(fontSize: 24, fontWeight: FontWeight.w400), 43 | headline6: GoogleFonts.montserrat( 44 | fontSize: 20, fontWeight: FontWeight.w500, letterSpacing: 0.15), 45 | subtitle1: GoogleFonts.montserrat( 46 | fontSize: 16, fontWeight: FontWeight.w400, letterSpacing: 0.15), 47 | subtitle2: GoogleFonts.montserrat( 48 | fontSize: 14, fontWeight: FontWeight.w500, letterSpacing: 0.1), 49 | bodyText1: GoogleFonts.montserrat( 50 | fontSize: 16, fontWeight: FontWeight.w400, letterSpacing: 0.5), 51 | bodyText2: GoogleFonts.montserrat( 52 | fontSize: 14, fontWeight: FontWeight.w400, letterSpacing: 0.25), 53 | button: GoogleFonts.montserrat( 54 | fontSize: 14, fontWeight: FontWeight.w500, letterSpacing: 1.25), 55 | caption: GoogleFonts.montserrat( 56 | fontSize: 12, fontWeight: FontWeight.w400, letterSpacing: 0.4), 57 | overline: GoogleFonts.montserrat( 58 | fontSize: 10, fontWeight: FontWeight.w400, letterSpacing: 1.5), 59 | ); 60 | } 61 | -------------------------------------------------------------------------------- /lib/Widgets/cachedImage.dart: -------------------------------------------------------------------------------- 1 | import 'package:extended_image/extended_image.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/widgets.dart'; 4 | 5 | class CachedImageWidget extends StatelessWidget { 6 | const CachedImageWidget({ 7 | Key key, 8 | this.imageUrl, 9 | }) : super(key: key); 10 | final String imageUrl; 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return ExtendedImage.network(imageUrl, 15 | shape: BoxShape.rectangle, borderRadius: BorderRadius.circular(10), 16 | loadStateChanged: (ExtendedImageState state) { 17 | switch (state.extendedImageLoadState) { 18 | case LoadState.loading: 19 | return Container( 20 | decoration: BoxDecoration( 21 | borderRadius: BorderRadius.circular(10), 22 | border: Border.all(color: Theme.of(context).accentColor), 23 | color: Colors.black, 24 | )); 25 | break; 26 | case LoadState.completed: 27 | return ExtendedRawImage( 28 | scale: 5, 29 | fit: BoxFit.cover, 30 | alignment: Alignment.topCenter, 31 | image: state.extendedImageInfo?.image, 32 | ); 33 | break; 34 | case LoadState.failed: 35 | return Icon(Icons.error); 36 | break; 37 | default: 38 | return Container( 39 | decoration: BoxDecoration( 40 | borderRadius: BorderRadius.circular(10), 41 | border: Border.all(color: Theme.of(context).accentColor), 42 | color: Colors.black, 43 | )); 44 | break; 45 | } 46 | }); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /lib/Widgets/widget.dart: -------------------------------------------------------------------------------- 1 | export 'cachedImage.dart'; 2 | -------------------------------------------------------------------------------- /lib/get_it.dart: -------------------------------------------------------------------------------- 1 | import 'package:get_it/get_it.dart'; 2 | import 'package:wiki_art/Api/src/wikiArtApi.dart'; 3 | 4 | final getIt = GetIt.instance; 5 | 6 | void setup() { 7 | getIt.registerSingleton(WikiArtApi()); 8 | } 9 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:wiki_art/pages/pages.dart'; 3 | import 'Theme/theme.dart'; 4 | import 'get_it.dart'; 5 | 6 | void main() async { 7 | WidgetsFlutterBinding.ensureInitialized(); 8 | 9 | setup(); 10 | 11 | runApp(MyApp()); 12 | } 13 | 14 | class MyApp extends StatelessWidget { 15 | const MyApp({Key key}) : super(key: key); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return MaterialApp( 20 | debugShowCheckedModeBanner: false, 21 | theme: AppTheme.themeData, 22 | home: HomePage(), 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/pages/Artist/artist.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter/widgets.dart'; 6 | import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; 7 | import 'package:peek_and_pop_dialog/peek_and_pop_dialog.dart'; 8 | import 'package:wiki_art/Api/src/models/artistDetails.dart'; 9 | import 'package:wiki_art/Api/wikiArtApi.dart'; 10 | import 'package:wiki_art/Widgets/widget.dart'; 11 | import 'package:wiki_art/get_it.dart'; 12 | import 'package:wiki_art/pages/pages.dart'; 13 | 14 | import 'models/dataSource.dart'; 15 | 16 | class ArtistPage extends StatefulWidget { 17 | const ArtistPage({Key key, @required this.painting}) : super(key: key); 18 | final Painting painting; 19 | 20 | static CupertinoPageRoute route(Painting painting) => CupertinoPageRoute( 21 | builder: (context) => ArtistPage(painting: painting), 22 | ); 23 | 24 | @override 25 | _ArtistPageState createState() => _ArtistPageState(); 26 | } 27 | 28 | class _ArtistPageState extends State { 29 | @override 30 | Widget build(BuildContext context) { 31 | return Scaffold( 32 | appBar: AppBar( 33 | title: Text(widget.painting.artistName ?? "uknown"), 34 | ), 35 | body: FutureBuilder( 36 | future: 37 | getIt().getArtistDetails(widget.painting.artistUrl), 38 | builder: (BuildContext context, AsyncSnapshot snapshot) { 39 | if (snapshot.hasData) { 40 | ArtistDetails _artistDetails = snapshot.data; 41 | return Stack( 42 | children: [ 43 | CustomScrollView( 44 | slivers: [ 45 | SliverToBoxAdapter( 46 | child: _ProfileWidget( 47 | artistDetails: _artistDetails, 48 | ), 49 | ), 50 | SliverToBoxAdapter( 51 | child: Container( 52 | child: Text( 53 | "Art Work", 54 | textAlign: TextAlign.center, 55 | style: Theme.of(context).textTheme.headline5, 56 | ), 57 | ), 58 | ), 59 | SliverPadding( 60 | padding: const EdgeInsets.all(10.0), 61 | sliver: PagedSliverGrid( 62 | pagingController: PaintingGridDataSource( 63 | wikiArtApi: getIt(), 64 | artistId: widget.painting.artistId, 65 | ), 66 | gridDelegate: 67 | const SliverGridDelegateWithFixedCrossAxisCount( 68 | childAspectRatio: 100 / 150, 69 | crossAxisSpacing: 10, 70 | mainAxisSpacing: 10, 71 | crossAxisCount: 3, 72 | ), 73 | builderDelegate: PagedChildBuilderDelegate( 74 | itemBuilder: (context, item, index) => 75 | ArtistPaintingGridItem( 76 | painting: item, 77 | )), 78 | ), 79 | ), 80 | ], 81 | ), 82 | ], 83 | ); 84 | } else 85 | return Center( 86 | child: CircularProgressIndicator(), 87 | ); 88 | }, 89 | )); 90 | } 91 | } 92 | 93 | class _ProfileWidget extends StatelessWidget { 94 | const _ProfileWidget({Key key, this.artistDetails}) : super(key: key); 95 | final ArtistDetails artistDetails; 96 | @override 97 | Widget build(BuildContext context) { 98 | return Container( 99 | padding: const EdgeInsets.all(20.0), 100 | margin: const EdgeInsets.all(20.0), 101 | decoration: BoxDecoration( 102 | color: Theme.of(context).accentColor, 103 | borderRadius: BorderRadius.circular(20)), 104 | child: Row( 105 | mainAxisAlignment: MainAxisAlignment.start, 106 | crossAxisAlignment: CrossAxisAlignment.start, 107 | children: [ 108 | Container( 109 | decoration: BoxDecoration( 110 | borderRadius: BorderRadius.circular(10), 111 | ), 112 | height: 85, 113 | width: 85, 114 | child: Center( 115 | child: CachedImageWidget( 116 | imageUrl: artistDetails.getImage, 117 | ), 118 | ), 119 | ), 120 | Flexible( 121 | child: Padding( 122 | padding: const EdgeInsets.only(left: 20.0), 123 | child: Column( 124 | mainAxisAlignment: MainAxisAlignment.start, 125 | crossAxisAlignment: CrossAxisAlignment.start, 126 | children: [ 127 | Padding( 128 | padding: const EdgeInsets.symmetric(vertical: 5), 129 | child: Text(artistDetails.artistName), 130 | ), 131 | Container( 132 | padding: const EdgeInsets.symmetric(vertical: 5.0), 133 | width: 200, 134 | child: Text( 135 | "${artistDetails.birthDayAsString} - ${artistDetails.deathDayAsString}", 136 | maxLines: 3, 137 | overflow: TextOverflow.ellipsis, 138 | ), 139 | ), 140 | ], 141 | ), 142 | ), 143 | ) 144 | ], 145 | ), 146 | ); 147 | } 148 | } 149 | 150 | class ArtistPaintingGridItem extends StatelessWidget { 151 | const ArtistPaintingGridItem({ 152 | @required this.painting, 153 | Key key, 154 | }) : assert(painting != null), 155 | super(key: key); 156 | final Painting painting; 157 | 158 | @override 159 | Widget build(BuildContext context) { 160 | return PeekAndPopDialog( 161 | child: GestureDetector( 162 | onTap: () { 163 | Navigator.of(context).push(MaterialPageRoute( 164 | builder: (context) => SlidePage( 165 | painting: painting, 166 | ))); 167 | }, 168 | child: Hero( 169 | tag: "${painting.image}", 170 | child: CachedImageWidget( 171 | imageUrl: painting.image, 172 | ), 173 | ), 174 | ), 175 | dialog: Align( 176 | alignment: Alignment.center, 177 | child: Container( 178 | height: 300, 179 | width: 300, 180 | child: CachedImageWidget( 181 | imageUrl: painting.image, 182 | ), 183 | ), 184 | ), 185 | ); 186 | } 187 | } 188 | /* 189 | // 190 | */ 191 | -------------------------------------------------------------------------------- /lib/pages/Artist/models/dataSource.dart: -------------------------------------------------------------------------------- 1 | import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; 2 | import 'package:wiki_art/Api/src/models/artistPainting.dart'; 3 | import 'package:wiki_art/Api/wikiArtApi.dart'; 4 | 5 | class PaintingGridDataSource extends PagingController { 6 | PaintingGridDataSource({ 7 | this.wikiArtApi, 8 | this.artistId, 9 | }) : super(firstPageKey: 0) { 10 | this.addPageRequestListener( 11 | (pageKey) { 12 | fetchItems(pageKey); 13 | }, 14 | ); 15 | } 16 | Object _activeCallbackIdentity; 17 | final WikiArtApi wikiArtApi; 18 | 19 | final String artistId; 20 | ArtistPainting _artistPainting = ArtistPainting(); 21 | 22 | void fetchItems(int pageKey) { 23 | final callbackIdentity = Object(); 24 | 25 | _activeCallbackIdentity = callbackIdentity; 26 | 27 | wikiArtApi 28 | .getArtistPaintings(artistId: artistId, artistPainting: _artistPainting) 29 | .then((newItems) { 30 | _artistPainting = newItems; 31 | final nextPageKey = 32 | _artistPainting.hasMore ? pageKey + newItems.painting.length : null; 33 | if (callbackIdentity == _activeCallbackIdentity) { 34 | appendPage(newItems.painting, nextPageKey); 35 | } 36 | }).catchError((error) { 37 | if (callbackIdentity == _activeCallbackIdentity) { 38 | error = (error); 39 | } 40 | }); 41 | } 42 | 43 | @override 44 | void dispose() { 45 | _activeCallbackIdentity = null; 46 | super.dispose(); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /lib/pages/Favorite/favorite.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FavoritePage extends StatelessWidget { 4 | const FavoritePage({Key key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: Text("Favorite"), 11 | ), 12 | body: Center( 13 | child: Text("Favorite"), 14 | ), 15 | ); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/pages/Home/NavBar/nav_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:wiki_art/pages/Home/cubit/home_nav_bar_cubit.dart'; 4 | 5 | class NavBar extends StatelessWidget { 6 | const NavBar({Key key}) : super(key: key); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return BlocBuilder( 11 | builder: (context, state) { 12 | var bloc = context.read(); 13 | 14 | return BottomNavigationBar( 15 | onTap: (index) => bloc.changeTo(index), 16 | currentIndex: state.currentIndex, 17 | backgroundColor: Theme.of(context).backgroundColor, 18 | items: [ 19 | BottomNavigationBarItem( 20 | icon: Icon(Icons.favorite), 21 | label: "Favorite", 22 | ), 23 | BottomNavigationBarItem( 24 | icon: Icon(Icons.star_outline), 25 | label: "Most Viewed", 26 | ), 27 | BottomNavigationBarItem( 28 | icon: Icon(Icons.search), 29 | label: "Search", 30 | ) 31 | ], 32 | ); 33 | }, 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /lib/pages/Home/cubit/home_nav_bar_cubit.dart: -------------------------------------------------------------------------------- 1 | import 'package:bloc/bloc.dart'; 2 | import 'package:equatable/equatable.dart'; 3 | 4 | part 'home_nav_bar_state.dart'; 5 | 6 | class HomeNavBarCubit extends Cubit { 7 | HomeNavBarCubit() : super(HomeNavBarState(1)); 8 | void changeTo(int index) => emit(HomeNavBarState(index)); 9 | } 10 | -------------------------------------------------------------------------------- /lib/pages/Home/cubit/home_nav_bar_state.dart: -------------------------------------------------------------------------------- 1 | part of 'home_nav_bar_cubit.dart'; 2 | 3 | class HomeNavBarState extends Equatable { 4 | const HomeNavBarState(this.currentIndex); 5 | final int currentIndex; 6 | @override 7 | List get props => [currentIndex]; 8 | } 9 | -------------------------------------------------------------------------------- /lib/pages/Home/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:wiki_art/pages/Home/NavBar/nav_bar.dart'; 4 | import 'package:wiki_art/pages/Home/cubit/home_nav_bar_cubit.dart'; 5 | import 'package:wiki_art/pages/Search/view/view.dart'; 6 | import './../pages.dart'; 7 | 8 | class HomePage extends StatefulWidget { 9 | const HomePage({Key key}) : super(key: key); 10 | 11 | @override 12 | _HomePageState createState() => _HomePageState(); 13 | } 14 | 15 | class _HomePageState extends State { 16 | final MostViewedPage _mostViewedPage = MostViewedPage(); 17 | final SearchPage _searchPage = SearchPage(); 18 | final FavoritePage _favoritePage = FavoritePage(); 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return BlocProvider( 23 | create: (context) => HomeNavBarCubit(), 24 | child: BlocBuilder( 25 | builder: (context, state) { 26 | return Scaffold( 27 | body: IndexedStack( 28 | index: state.currentIndex, 29 | children: [ 30 | _favoritePage, 31 | _mostViewedPage, 32 | _searchPage, 33 | ], 34 | ), 35 | bottomNavigationBar: NavBar(), 36 | ); 37 | }, 38 | ), 39 | ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /lib/pages/ImagePreview/slideImage.dart: -------------------------------------------------------------------------------- 1 | import 'package:extended_image/extended_image.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter/widgets.dart'; 4 | import 'package:wiki_art/Api/src/models/painting.dart'; 5 | 6 | class SlidePage extends StatefulWidget { 7 | const SlidePage({this.painting}); 8 | final Painting painting; 9 | @override 10 | _SlidePageState createState() => _SlidePageState(); 11 | } 12 | 13 | class _SlidePageState extends State { 14 | bool _isDetailsVisible = true; 15 | GlobalKey slidePagekey = 16 | GlobalKey(); 17 | void _showHideDetials() { 18 | _isDetailsVisible = !_isDetailsVisible; 19 | setState(() {}); 20 | } 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | return ExtendedImageSlidePage( 25 | key: slidePagekey, 26 | child: GestureDetector( 27 | child: Stack( 28 | children: [ 29 | Positioned.fill( 30 | child: ExtendedImage.network( 31 | widget.painting.image, 32 | enableSlideOutPage: true, 33 | mode: ExtendedImageMode.gesture, 34 | 35 | ///make hero better when slide out 36 | heroBuilderForSlidingPage: (Widget result) { 37 | return Hero( 38 | tag: widget.painting.image, 39 | child: result, 40 | flightShuttleBuilder: (BuildContext flightContext, 41 | Animation animation, 42 | HeroFlightDirection flightDirection, 43 | BuildContext fromHeroContext, 44 | BuildContext toHeroContext) { 45 | final Hero hero = 46 | (flightDirection == HeroFlightDirection.pop 47 | ? fromHeroContext.widget 48 | : toHeroContext.widget) as Hero; 49 | return hero.child; 50 | }, 51 | ); 52 | }, 53 | ), 54 | ), 55 | Align( 56 | alignment: Alignment.bottomCenter, 57 | child: AnimatedOpacity( 58 | opacity: _isDetailsVisible ? 1 : 0, 59 | duration: Duration(milliseconds: 200), 60 | child: Container( 61 | color: Colors.grey.withOpacity(0.3), 62 | padding: const EdgeInsets.all(10.0), 63 | height: widget.painting.title.length < 25 ? 75 : 110, 64 | width: double.infinity, 65 | child: Column( 66 | children: [ 67 | Flexible( 68 | child: Text( 69 | widget.painting.title, 70 | style: Theme.of(context).textTheme.headline6, 71 | textAlign: TextAlign.center, 72 | maxLines: 2, 73 | overflow: TextOverflow.ellipsis, 74 | ), 75 | ), 76 | Padding( 77 | padding: const EdgeInsets.only(top: 8.0), 78 | child: Text( 79 | widget.painting.completitionYear, 80 | style: Theme.of(context).textTheme.subtitle1, 81 | textAlign: TextAlign.center, 82 | ), 83 | ) 84 | ], 85 | ))), 86 | ), 87 | ], 88 | ), 89 | onTap: () { 90 | _showHideDetials(); 91 | }, 92 | ), 93 | slideAxis: SlideAxis.vertical, 94 | slideType: SlideType.onlyImage, 95 | ); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /lib/pages/MostViewed/Widgets/paintingListItem.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/widgets.dart'; 3 | import 'package:overlay_dialog/overlay_dialog.dart'; 4 | import 'package:wiki_art/Api/wikiArtApi.dart'; 5 | import 'package:wiki_art/Widgets/widget.dart'; 6 | 7 | import '../../pages.dart'; 8 | 9 | class PaintingListItem extends StatefulWidget { 10 | const PaintingListItem({ 11 | @required this.painting, 12 | Key key, 13 | }) : assert(painting != null), 14 | super(key: key); 15 | 16 | final Painting painting; 17 | 18 | @override 19 | _PaintingListItemState createState() => _PaintingListItemState(); 20 | } 21 | 22 | class _PaintingListItemState extends State { 23 | @override 24 | Widget build(BuildContext context) { 25 | return GestureDetector( 26 | child: Column( 27 | children: [ 28 | _Painting( 29 | painting: widget.painting, 30 | ), 31 | _Details( 32 | painting: widget.painting, 33 | ), 34 | ], 35 | ), 36 | ); 37 | } 38 | } 39 | 40 | class _Details extends StatelessWidget { 41 | const _Details({Key key, this.painting}) : super(key: key); 42 | final Painting painting; 43 | 44 | @override 45 | Widget build(BuildContext context) { 46 | return Container( 47 | width: double.maxFinite, 48 | margin: EdgeInsets.all(20), 49 | padding: EdgeInsets.all(20), 50 | decoration: BoxDecoration( 51 | borderRadius: BorderRadius.circular(10), 52 | color: Theme.of(context).accentColor, 53 | ), 54 | child: Center( 55 | child: RichText( 56 | textAlign: TextAlign.center, 57 | text: new TextSpan( 58 | text: "${painting.title} \n", 59 | style: Theme.of(context) 60 | .textTheme 61 | .headline5 62 | .apply(fontSizeFactor: painting.title.length > 25 ? 0.75 : 1), 63 | children: [ 64 | new TextSpan( 65 | text: "${painting.artistName ?? "unknown"} \n", 66 | style: Theme.of(context).textTheme.bodyText1, 67 | ), 68 | new TextSpan( 69 | text: "${painting.completitionYear}", 70 | style: Theme.of(context).textTheme.bodyText2, 71 | ), 72 | ], 73 | ), 74 | ), 75 | ), 76 | ); 77 | } 78 | } 79 | 80 | class _Painting extends StatelessWidget { 81 | const _Painting({Key key, this.painting}) : super(key: key); 82 | final Painting painting; 83 | 84 | @override 85 | Widget build(BuildContext context) { 86 | return GestureDetector( 87 | onLongPress: () => _showCustom(context, painting), 88 | onDoubleTap: () => print("Save"), 89 | onTap: () => Navigator.of(context).push( 90 | MaterialPageRoute( 91 | builder: (context) => SlidePage( 92 | painting: painting, 93 | ), 94 | ), 95 | ), 96 | child: Hero( 97 | tag: painting.image, 98 | child: Container( 99 | height: 400, 100 | width: MediaQuery.of(context).size.width, 101 | padding: EdgeInsets.all(20), 102 | child: CachedImageWidget( 103 | imageUrl: painting.image, 104 | ), 105 | ), 106 | ), 107 | ); 108 | } 109 | } 110 | 111 | void _showCustom(BuildContext context, Painting painting) { 112 | DialogHelper().show( 113 | context, 114 | DialogWidget.custom( 115 | closable: true, 116 | child: Material( 117 | color: Colors.transparent, 118 | child: Container( 119 | margin: const EdgeInsets.symmetric(horizontal: 20.0), 120 | height: 200, 121 | width: double.infinity, 122 | decoration: BoxDecoration( 123 | color: Theme.of(context).backgroundColor, 124 | border: Border.all( 125 | color: Theme.of(context).accentColor, 126 | ), 127 | borderRadius: BorderRadius.circular(10.0), 128 | ), 129 | child: Column( 130 | children: [ 131 | Padding( 132 | padding: const EdgeInsets.symmetric(vertical: 10.0), 133 | child: Text( 134 | "Option", 135 | style: Theme.of(context).textTheme.headline5, 136 | ), 137 | ), 138 | Divider(), 139 | FlatButton( 140 | child: Text( 141 | "Save", 142 | style: Theme.of(context).textTheme.headline6, 143 | ), 144 | onPressed: () => print("Save"), 145 | ), 146 | Divider(), 147 | FlatButton( 148 | child: Text( 149 | "View Artis", 150 | style: Theme.of(context).textTheme.headline6, 151 | ), 152 | onPressed: () { 153 | DialogHelper().hide(context); 154 | Navigator.push( 155 | context, 156 | ArtistPage.route(painting), 157 | ); 158 | }, 159 | ) 160 | ], 161 | ), 162 | ), 163 | ), 164 | ), 165 | ); 166 | } 167 | -------------------------------------------------------------------------------- /lib/pages/MostViewed/Widgets/widgets.dart: -------------------------------------------------------------------------------- 1 | export 'paintingListItem.dart'; 2 | -------------------------------------------------------------------------------- /lib/pages/MostViewed/most_viewed.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/widgets.dart'; 3 | import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart'; 4 | import 'package:wiki_art/Api/wikiArtApi.dart'; 5 | import 'package:wiki_art/get_it.dart'; 6 | 7 | import 'Widgets/widgets.dart'; 8 | 9 | class MostViewedPage extends StatefulWidget { 10 | MostViewedPage({Key key}) : super(key: key); 11 | 12 | @override 13 | _MostViewedPageState createState() => _MostViewedPageState(); 14 | } 15 | 16 | class _MostViewedPageState extends State { 17 | ScrollController controller; 18 | MostViewedPaintings _mostViewedPaintings = MostViewedPaintings(); 19 | 20 | final PagingController _pagingController = 21 | PagingController(firstPageKey: 0); 22 | @override 23 | void initState() { 24 | _pagingController.addPageRequestListener((pageKey) { 25 | fetchItems(pageKey); 26 | }); 27 | controller = ScrollController(); 28 | super.initState(); 29 | } 30 | 31 | void fetchItems(int pageKey) async { 32 | await getIt() 33 | .getMostViwedPaintings(mostViewedPaintings: _mostViewedPaintings) 34 | .then((newItems) { 35 | _mostViewedPaintings = newItems; 36 | final nextPageKey = _mostViewedPaintings.hasMore 37 | ? pageKey + newItems.painting.length 38 | : null; 39 | if (nextPageKey == null) { 40 | _pagingController.appendLastPage( 41 | newItems.painting, 42 | ); 43 | } else { 44 | _pagingController.appendPage(newItems.painting, nextPageKey); 45 | } 46 | }).catchError((error) { 47 | print(error); 48 | _pagingController.error = (error); 49 | }); 50 | } 51 | 52 | @override 53 | Widget build(BuildContext context) { 54 | return Scaffold( 55 | backgroundColor: Colors.black, 56 | appBar: AppBar( 57 | title: Text("WikiArt"), 58 | ), 59 | body: WillPopScope( 60 | onWillPop: () async { 61 | if (controller.offset == 0) 62 | return true; 63 | else 64 | controller.animateTo( 65 | 0.0, 66 | curve: Curves.easeOut, 67 | duration: const Duration(milliseconds: 300), 68 | ); 69 | return false; 70 | }, 71 | child: PagedListView.separated( 72 | pagingController: _pagingController, 73 | builderDelegate: PagedChildBuilderDelegate( 74 | itemBuilder: (context, item, index) => PaintingListItem( 75 | painting: item, 76 | ), 77 | ), 78 | separatorBuilder: (context, index) => const Divider(), 79 | ), 80 | ), 81 | ); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /lib/pages/Search/bloc/search_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:bloc/bloc.dart'; 4 | import 'package:equatable/equatable.dart'; 5 | 6 | import 'package:rxdart/rxdart.dart'; 7 | import 'package:wiki_art/Api/src/models/painting.dart'; 8 | import 'package:wiki_art/Api/src/wikiArtApi.dart'; 9 | 10 | part 'search_event.dart'; 11 | part 'search_state.dart'; 12 | 13 | class SearchBloc extends Bloc { 14 | SearchBloc(this._wikiArtApi) 15 | : assert(_wikiArtApi != null), 16 | super(const SearchState.initial()); 17 | 18 | final WikiArtApi _wikiArtApi; 19 | 20 | @override 21 | Stream> transformEvents( 22 | Stream events, 23 | TransitionFunction transitionFn, 24 | ) { 25 | return events 26 | .debounceTime(const Duration(milliseconds: 350)) 27 | .switchMap(transitionFn); 28 | } 29 | 30 | @override 31 | Stream mapEventToState(SearchEvent event) async* { 32 | if (event is SearchTermChanged) { 33 | yield* _mapSearchTermChangedToState(event, state); 34 | } 35 | } 36 | 37 | Stream _mapSearchTermChangedToState( 38 | SearchTermChanged event, 39 | SearchState state, 40 | ) async* { 41 | if (event.term.isEmpty) { 42 | yield const SearchState.initial(); 43 | return; 44 | } 45 | 46 | if (state.status != SearchStatus.success) { 47 | yield const SearchState.loading(); 48 | } 49 | 50 | try { 51 | final results = await _wikiArtApi.searchForPainting(event.term); 52 | yield SearchState.success(results.painting); 53 | } on Exception { 54 | yield const SearchState.failure(); 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /lib/pages/Search/bloc/search_event.dart: -------------------------------------------------------------------------------- 1 | part of 'search_bloc.dart'; 2 | 3 | abstract class SearchEvent extends Equatable { 4 | const SearchEvent(); 5 | } 6 | 7 | class SearchTermChanged extends SearchEvent { 8 | const SearchTermChanged(this.term); 9 | final String term; 10 | 11 | @override 12 | List get props => [term]; 13 | } 14 | -------------------------------------------------------------------------------- /lib/pages/Search/bloc/search_state.dart: -------------------------------------------------------------------------------- 1 | part of 'search_bloc.dart'; 2 | 3 | enum SearchStatus { initial, loading, success, failure } 4 | 5 | class SearchState extends Equatable { 6 | const SearchState._({ 7 | this.status = SearchStatus.initial, 8 | this.paintings = const [], 9 | }); 10 | 11 | const SearchState.initial() : this._(); 12 | 13 | const SearchState.loading() : this._(status: SearchStatus.loading); 14 | 15 | const SearchState.success(List paintings) 16 | : this._(status: SearchStatus.success, paintings: paintings); 17 | 18 | const SearchState.failure() : this._(status: SearchStatus.failure); 19 | 20 | final SearchStatus status; 21 | final List paintings; 22 | 23 | @override 24 | List get props => [status, paintings]; 25 | } 26 | -------------------------------------------------------------------------------- /lib/pages/Search/search.dart: -------------------------------------------------------------------------------- 1 | // import 'package:flutter/material.dart'; 2 | 3 | // class SearchPage extends StatelessWidget { 4 | // const SearchPage({Key key}) : super(key: key); 5 | 6 | // @override 7 | // Widget build(BuildContext context) { 8 | // return SafeArea( 9 | // top: true, 10 | // child: Scaffold( 11 | // body: CustomScrollView( 12 | // slivers: [_SearchBar()], 13 | // ), 14 | // ), 15 | // ); 16 | // } 17 | // } 18 | -------------------------------------------------------------------------------- /lib/pages/Search/view/search_form.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:wiki_art/Api/src/models/painting.dart'; 4 | import 'package:wiki_art/pages/Search/bloc/search_bloc.dart'; 5 | import 'package:wiki_art/pages/Search/widgets/widgets.dart'; 6 | 7 | class SearchForm extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return CustomScrollView( 11 | slivers: [ 12 | SearchBar( 13 | onChanged: (term) { 14 | context.read().add(SearchTermChanged(term)); 15 | }, 16 | ), 17 | _SearchContent() 18 | ], 19 | ); 20 | } 21 | } 22 | 23 | class _SearchContent extends StatelessWidget { 24 | @override 25 | Widget build(BuildContext context) { 26 | return BlocConsumer( 27 | listenWhen: (previous, current) => previous.status != current.status, 28 | listener: (context, state) { 29 | if (state.status == SearchStatus.failure) { 30 | Scaffold.of(context) 31 | ..hideCurrentSnackBar() 32 | ..showSnackBar( 33 | const SnackBar(content: Text('oops try again!')), 34 | ); 35 | } 36 | }, 37 | builder: (context, state) { 38 | switch (state.status) { 39 | case SearchStatus.loading: 40 | return const _SearchLoading(); 41 | case SearchStatus.success: 42 | return _SearchSuccess(paintings: state.paintings); 43 | default: 44 | return const _SearchInitial(); 45 | } 46 | }, 47 | ); 48 | } 49 | } 50 | 51 | class _SearchLoading extends StatelessWidget { 52 | const _SearchLoading({Key key}) : super(key: key); 53 | 54 | @override 55 | Widget build(BuildContext context) { 56 | return SliverToBoxAdapter( 57 | child: Center( 58 | child: CircularProgressIndicator(), 59 | ), 60 | ); 61 | } 62 | } 63 | 64 | class _SearchSuccess extends StatelessWidget { 65 | const _SearchSuccess({Key key, @required this.paintings}) : super(key: key); 66 | 67 | final List paintings; 68 | 69 | @override 70 | Widget build(BuildContext context) { 71 | return SearchResults( 72 | paintings: paintings, 73 | ); 74 | } 75 | } 76 | 77 | class _SearchInitial extends StatelessWidget { 78 | const _SearchInitial({Key key}) : super(key: key); 79 | 80 | @override 81 | Widget build(BuildContext context) { 82 | final textTheme = Theme.of(context).textTheme; 83 | return SliverToBoxAdapter( 84 | child: Center( 85 | child: Text( 86 | 'Find some Art ✨', 87 | key: const Key('search_initial_text'), 88 | style: textTheme.headline6, 89 | ), 90 | ), 91 | ); 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /lib/pages/Search/view/search_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:wiki_art/Api/src/wikiArtApi.dart'; 4 | import 'package:wiki_art/get_it.dart'; 5 | import 'package:wiki_art/pages/Search/bloc/search_bloc.dart'; 6 | import 'package:wiki_art/pages/Search/view/view.dart'; 7 | 8 | class SearchPage extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | return SafeArea( 12 | top: true, 13 | child: Scaffold( 14 | body: Padding( 15 | padding: const EdgeInsets.symmetric(horizontal: 20.0), 16 | child: BlocProvider( 17 | create: (context) => SearchBloc( 18 | getIt(), 19 | ), 20 | child: SearchForm(), 21 | ), 22 | ), 23 | ), 24 | ); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /lib/pages/Search/view/view.dart: -------------------------------------------------------------------------------- 1 | export 'search_form.dart'; 2 | export 'search_page.dart'; 3 | -------------------------------------------------------------------------------- /lib/pages/Search/widgets/search_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SearchBar extends StatelessWidget { 4 | const SearchBar({Key key, this.onChanged}) : super(key: key); 5 | final ValueSetter onChanged; 6 | 7 | @override 8 | Widget build(BuildContext context) { 9 | return SliverAppBar( 10 | backgroundColor: Colors.transparent, 11 | pinned: false, 12 | snap: false, 13 | floating: true, 14 | bottom: PreferredSize( 15 | preferredSize: Size.fromHeight(15.0), 16 | child: Container( 17 | height: 50, 18 | decoration: BoxDecoration( 19 | border: Border.all(color: Theme.of(context).accentColor, width: 2), 20 | borderRadius: BorderRadius.circular(10.0), 21 | ), 22 | child: TextField( 23 | cursorColor: Theme.of(context).accentColor, 24 | decoration: InputDecoration( 25 | filled: true, 26 | fillColor: Theme.of(context).backgroundColor, 27 | enabledBorder: UnderlineInputBorder( 28 | borderRadius: BorderRadius.circular(10.0), 29 | borderSide: BorderSide.none, 30 | ), 31 | focusedBorder: OutlineInputBorder( 32 | borderRadius: BorderRadius.circular(10.0), 33 | borderSide: BorderSide.none, 34 | ), 35 | suffixIcon: IconButton( 36 | icon: Icon( 37 | Icons.search, 38 | color: Theme.of(context).accentColor, 39 | ), 40 | onPressed: () => print('Search')), 41 | border: InputBorder.none, 42 | hintText: "Search", 43 | contentPadding: EdgeInsets.all(10.0)), 44 | onChanged: onChanged, 45 | ), 46 | ), 47 | ), 48 | ); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /lib/pages/Search/widgets/search_results.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:wiki_art/Api/src/models/painting.dart'; 3 | import 'package:wiki_art/Widgets/cachedImage.dart'; 4 | import 'package:wiki_art/pages/ImagePreview/slideImage.dart'; 5 | 6 | class SearchResults extends StatelessWidget { 7 | const SearchResults({ 8 | Key key, 9 | this.paintings = const [], 10 | }) : super(key: key); 11 | 12 | final List paintings; 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | final textTheme = Theme.of(context).textTheme; 17 | 18 | if (paintings.isEmpty) 19 | return SliverToBoxAdapter( 20 | child: Center( 21 | child: Text( 22 | 'No resulte found', 23 | style: textTheme.headline6, 24 | ), 25 | ), 26 | ); 27 | return SliverList( 28 | delegate: SliverChildListDelegate( 29 | List.generate( 30 | paintings.length, 31 | (index) => _SearchResult( 32 | painting: paintings[index], 33 | onTap: () => Navigator.push( 34 | context, 35 | MaterialPageRoute( 36 | builder: (context) => SlidePage( 37 | painting: paintings[index], 38 | ), 39 | ), 40 | ), 41 | ), 42 | ), 43 | ), 44 | ); 45 | } 46 | } 47 | 48 | class _SearchResult extends StatelessWidget { 49 | const _SearchResult({ 50 | Key key, 51 | this.painting, 52 | this.onTap, 53 | }) : super(key: key); 54 | 55 | final Painting painting; 56 | final VoidCallback onTap; 57 | 58 | @override 59 | Widget build(BuildContext context) { 60 | var textTheme = Theme.of(context).textTheme; 61 | return InkWell( 62 | onTap: onTap, 63 | child: Container( 64 | margin: const EdgeInsets.symmetric(vertical: 10.0), 65 | height: 100, 66 | child: Row( 67 | children: [ 68 | SizedBox( 69 | height: 100, 70 | width: 75, 71 | child: CachedImageWidget( 72 | imageUrl: painting.image, 73 | ), 74 | ), 75 | SizedBox( 76 | width: 10.0, 77 | ), 78 | Flexible( 79 | child: RichText( 80 | text: TextSpan(children: [ 81 | TextSpan( 82 | text: painting.title + '\n \n', style: textTheme.bodyText1), 83 | TextSpan( 84 | text: painting.artistName, 85 | style: textTheme.subtitle2 86 | .apply(color: Theme.of(context).accentColor)), 87 | ])), 88 | ) 89 | ], 90 | ), 91 | ), 92 | ); 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /lib/pages/Search/widgets/widgets.dart: -------------------------------------------------------------------------------- 1 | export 'search_bar.dart'; 2 | export 'search_results.dart'; 3 | -------------------------------------------------------------------------------- /lib/pages/Settings/settings.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/lib/pages/Settings/settings.dart -------------------------------------------------------------------------------- /lib/pages/pages.dart: -------------------------------------------------------------------------------- 1 | export 'home/home.dart'; 2 | export 'Artist/artist.dart'; 3 | export 'ImagePreview/slideImage.dart'; 4 | export 'MostViewed/most_viewed.dart'; 5 | export 'Search/search.dart'; 6 | export 'Settings/settings.dart'; 7 | export 'Favorite/favorite.dart'; 8 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: wiki_art 2 | description: A new Flutter project. 3 | 4 | publish_to: "none" 5 | 6 | version: 1.0.0+1 7 | 8 | environment: 9 | sdk: ">=2.7.0 <3.0.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | dio: ^4.0.0 15 | infinite_scroll_pagination: ^3.1.0 16 | google_fonts: ^2.1.0 17 | hive: ^2.0.4 18 | hive_flutter: ^1.1.0 19 | flutter_bloc: ^7.1.0 20 | flutter_svg: ^0.22.0 21 | eva_icons_flutter: ^3.0.0 22 | get_it: ^7.2.0 23 | 24 | equatable: ^2.0.3 25 | shimmer: ^2.0.0 26 | flutter_cache_manager: ^3.1.2 27 | extended_image: ^4.1.0 28 | overlay_dialog: ^0.2.0 29 | peek_and_pop_dialog: ^0.0.2 30 | 31 | 32 | 33 | cupertino_icons: ^1.0.3 34 | 35 | dev_dependencies: 36 | flutter_test: 37 | sdk: flutter 38 | 39 | flutter: 40 | uses-material-design: true 41 | 42 | 43 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hadi-codes/wiki_art_app/0d8fc949b5d2dd77c92119bfaf298358fdcf9169/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | wiki_art 30 | 31 | 32 | 33 | 36 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wiki_art", 3 | "short_name": "wiki_art", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /wiki_art.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | --------------------------------------------------------------------------------