├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── 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-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist └── .gitignore ├── assets └── wamo.png ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ ├── Icon-512.png │ ├── Icon-maskable-192.png │ └── Icon-maskable-512.png ├── manifest.json └── index.html ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launcher_icon.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launcher_icon.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launcher_icon.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launcher_icon.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── launcher_icon.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── wamo │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── .metadata ├── .github └── workflows │ └── flutter-test.yml ├── test └── widget_test.dart ├── README.md ├── .gitignore ├── lib ├── model │ ├── wallpaper.dart │ └── wallpaper.g.dart ├── main.dart ├── bloc │ └── wallpaper_bloc.dart └── view │ ├── search_page.dart │ ├── detail_page.dart │ └── main_page.dart ├── LICENSE ├── analysis_options.yaml ├── pubspec.yaml └── pubspec.lock /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /assets/wamo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/assets/wamo.png -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/android/app/src/main/res/mipmap-hdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/android/app/src/main/res/mipmap-mdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/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/athallahmaajid/wamo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/athallahmaajid/wamo/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/wamo/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.wamo 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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-6.7-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.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/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.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: 18116933e77adc82f80866c928266a5b4f1ed645 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /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 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /.github/workflows/flutter-test.yml: -------------------------------------------------------------------------------- 1 | name: flutter-test 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | flutter: 7 | runs-on: ubuntu-latest 8 | 9 | steps: 10 | - uses: actions/checkout@v3 11 | - uses: actions/setup-java@v1 12 | with: 13 | java-version: '12.x' 14 | 15 | - uses: subosito/flutter-action@v1 16 | with: 17 | channel: 'stable' 18 | 19 | - name: get packages 20 | run: flutter pub get 21 | 22 | - name: testing 23 | run: flutter test --coverage 24 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:wamo/main.dart'; 12 | 13 | void main() {} 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Wamo 2 | 3 | ### Collections of mobile wallpapers go to your phone! 4 | 5 | 6 |
7 | 8 |
9 | 10 | ## How to Install 11 | 12 | ### Install from releases 13 | 1. Download from releases 14 | 2. Open it and install 15 | 16 | ### Build it yourself 17 | 1. Make sure you have flutter SDK installed on your computer 18 | 2. Clone this project 19 | 3. `flutter pub get` 20 | 4. Build 21 | * Android: `flutter build apk --release` 22 | * iOS: `flutter build ipa --release` 23 | 5. get the app 24 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 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 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wamo", 3 | "short_name": "wamo", 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 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /lib/model/wallpaper.dart: -------------------------------------------------------------------------------- 1 | import 'package:http/http.dart' as http; 2 | import 'dart:convert'; 3 | import 'package:hive/hive.dart'; 4 | part 'wallpaper.g.dart'; 5 | 6 | @HiveType(typeId: 1) 7 | class WallpaperImage { 8 | @HiveField(0) 9 | String url; 10 | WallpaperImage(this.url); 11 | 12 | static Future> searchWallpaper({required String query, int page = 1}) async { 13 | var response = 14 | await http.get(Uri.parse("http://maajid-wallpaper-api.deta.dev/wallpapers/search?query=$query&mobile=true&page=${page.toString()}")); 15 | var jsonObject = json.decode(response.body)["result"] as List; 16 | return jsonObject.map((item) => WallpaperImage(item)).toList(); 17 | } 18 | 19 | static Future> getWallpaper(int page) async { 20 | var response = await http.get(Uri.parse("http://maajid-wallpaper-api.deta.dev/wallpapers?mobile=true&page=$page")); 21 | var jsonObject = json.decode(response.body)["result"] as List; 22 | return jsonObject.map((item) => WallpaperImage(item)).toList(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Athallah Muhammad Maajid 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 | -------------------------------------------------------------------------------- /lib/model/wallpaper.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'wallpaper.dart'; 4 | 5 | // ************************************************************************** 6 | // TypeAdapterGenerator 7 | // ************************************************************************** 8 | 9 | class WallpaperImageAdapter extends TypeAdapter { 10 | @override 11 | final int typeId = 1; 12 | 13 | @override 14 | WallpaperImage read(BinaryReader reader) { 15 | final numOfFields = reader.readByte(); 16 | final fields = { 17 | for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(), 18 | }; 19 | return WallpaperImage( 20 | fields[0] as String, 21 | ); 22 | } 23 | 24 | @override 25 | void write(BinaryWriter writer, WallpaperImage obj) { 26 | writer 27 | ..writeByte(1) 28 | ..writeByte(0) 29 | ..write(obj.url); 30 | } 31 | 32 | @override 33 | int get hashCode => typeId.hashCode; 34 | 35 | @override 36 | bool operator ==(Object other) => 37 | identical(this, other) || 38 | other is WallpaperImageAdapter && 39 | runtimeType == other.runtimeType && 40 | typeId == other.typeId; 41 | } 42 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:hive_flutter/hive_flutter.dart'; 4 | import 'package:wamo/bloc/wallpaper_bloc.dart'; 5 | import 'package:flutter_downloader/flutter_downloader.dart'; 6 | import 'model/wallpaper.dart'; 7 | import 'view/main_page.dart'; 8 | 9 | void main() async { 10 | await Hive.initFlutter(); 11 | WidgetsFlutterBinding.ensureInitialized(); 12 | Hive.registerAdapter(WallpaperImageAdapter()); 13 | WidgetsFlutterBinding.ensureInitialized(); 14 | await FlutterDownloader.initialize(debug: false // optional: set false to disable printing logs to console 15 | ); 16 | runApp(const MyApp()); 17 | } 18 | 19 | class MyApp extends StatelessWidget { 20 | const MyApp({Key? key}) : super(key: key); 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | return MaterialApp( 25 | debugShowCheckedModeBanner: false, 26 | home: BlocProvider( 27 | create: (context) => WallpaperBloc()..add(WallpaperEvent()), 28 | child: const MainPage(), 29 | ), 30 | theme: ThemeData( 31 | backgroundColor: Colors.white, 32 | textTheme: const TextTheme( 33 | bodyText1: TextStyle(color: Colors.black), 34 | ), 35 | ), 36 | darkTheme: ThemeData( 37 | backgroundColor: const Color(0xFF202124), 38 | cardColor: const Color(0xFF303134), 39 | textTheme: const TextTheme( 40 | bodyText1: TextStyle(color: Colors.white), 41 | ), 42 | ), 43 | themeMode: ThemeMode.system, 44 | ); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /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 | wamo 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 | -------------------------------------------------------------------------------- /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 31 30 | 31 | compileOptions { 32 | sourceCompatibility JavaVersion.VERSION_1_8 33 | targetCompatibility JavaVersion.VERSION_1_8 34 | } 35 | 36 | kotlinOptions { 37 | jvmTarget = '1.8' 38 | } 39 | 40 | sourceSets { 41 | main.java.srcDirs += 'src/main/kotlin' 42 | } 43 | 44 | defaultConfig { 45 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 46 | applicationId "com.example.wamo" 47 | minSdkVersion 16 48 | targetSdkVersion 30 49 | versionCode flutterVersionCode.toInteger() 50 | versionName flutterVersionName 51 | } 52 | 53 | buildTypes { 54 | release { 55 | // TODO: Add your own signing config for the release build. 56 | // Signing with the debug keys for now, so `flutter run --release` works. 57 | signingConfig signingConfigs.debug 58 | } 59 | } 60 | } 61 | 62 | flutter { 63 | source '../..' 64 | } 65 | 66 | dependencies { 67 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 68 | } 69 | -------------------------------------------------------------------------------- /lib/bloc/wallpaper_bloc.dart: -------------------------------------------------------------------------------- 1 | import 'package:bloc/bloc.dart'; 2 | import 'package:wamo/model/wallpaper.dart'; 3 | 4 | class WallpaperEvent {} 5 | 6 | abstract class WallpaperState {} 7 | 8 | class WallpaperInitial extends WallpaperState {} 9 | 10 | class WallpaperSearchEvent extends WallpaperEvent { 11 | String? query; 12 | 13 | WallpaperSearchEvent({this.query}); 14 | } 15 | 16 | class ResetEvent extends WallpaperEvent {} 17 | 18 | class WallpaperLoaded extends WallpaperState { 19 | List? wallpapers; 20 | bool? hasReachedMax; 21 | int page; 22 | 23 | WallpaperLoaded({this.wallpapers, this.hasReachedMax, required this.page}); 24 | 25 | WallpaperLoaded copyWith({List? wallpapers, bool? hasReachedMax, required int page}) { 26 | return WallpaperLoaded(wallpapers: wallpapers ?? this.wallpapers, hasReachedMax: hasReachedMax ?? this.hasReachedMax, page: page); 27 | } 28 | } 29 | 30 | class WallpaperBloc extends Bloc { 31 | set state(newState) { 32 | state = newState; 33 | } 34 | 35 | WallpaperBloc() : super(WallpaperInitial()) { 36 | on((event, emit) async { 37 | List wallpapers; 38 | if (event is ResetEvent) { 39 | emit(WallpaperInitial()); 40 | } else { 41 | if (state is WallpaperInitial) { 42 | if (event is WallpaperSearchEvent) { 43 | wallpapers = await WallpaperImage.searchWallpaper(query: event.query!, page: 1); 44 | } else { 45 | wallpapers = await WallpaperImage.getWallpaper(1); 46 | } 47 | emit(WallpaperLoaded(wallpapers: wallpapers, hasReachedMax: false, page: 1)); 48 | } else { 49 | WallpaperLoaded wallpaperLoaded; 50 | if (event is WallpaperSearchEvent) { 51 | wallpaperLoaded = state as WallpaperLoaded; 52 | wallpapers = await WallpaperImage.searchWallpaper(query: event.query!, page: wallpaperLoaded.page + 1); 53 | } else { 54 | wallpaperLoaded = state as WallpaperLoaded; 55 | wallpapers = await WallpaperImage.getWallpaper(wallpaperLoaded.page + 1); 56 | } 57 | emit(wallpapers.isEmpty 58 | ? wallpaperLoaded.copyWith(hasReachedMax: true, page: wallpaperLoaded.page) 59 | : WallpaperLoaded(wallpapers: wallpaperLoaded.wallpapers! + wallpapers, hasReachedMax: false, page: wallpaperLoaded.page + 1)); 60 | } 61 | } 62 | }); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 14 | 18 | 22 | 27 | 31 | 32 | 33 | 34 | 35 | 36 | 38 | 41 | 46 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /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.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 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | wamo 30 | 31 | 32 | 33 | 36 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: wamo 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `flutter pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.12.0 <3.0.0" 22 | 23 | # Dependencies specify other packages that your package needs in order to work. 24 | # To automatically upgrade your package dependencies to the latest versions 25 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 26 | # dependencies can be manually updated by changing the version numbers below to 27 | # the latest version available on pub.dev. To see which dependencies have newer 28 | # versions available, run `flutter pub outdated`. 29 | dependencies: 30 | flutter: 31 | sdk: flutter 32 | 33 | 34 | # The following adds the Cupertino Icons font to your application. 35 | # Use with the CupertinoIcons class for iOS style icons. 36 | cupertino_icons: ^1.0.2 37 | http: ^0.13.5 38 | bloc: ^8.1.0 39 | flutter_bloc: ^8.1.1 40 | wallpaper: ^1.1.0 41 | path_provider: ^2.0.7 42 | flutter_downloader: ^1.7.1 43 | permission_handler: ^10.2.0 44 | hive: ^2.0.4 45 | build_runner: ^2.1.5 46 | hive_flutter: ^1.1.0 47 | hive_generator: ^2.0.0 48 | 49 | dev_dependencies: 50 | flutter_test: 51 | sdk: flutter 52 | flutter_launcher_icons: ^0.11.0 53 | # The "flutter_lints" package below contains a set of recommended lints to 54 | # encourage good coding practices. The lint set provided by the package is 55 | # activated in the `analysis_options.yaml` file located at the root of your 56 | # package. See that file for information about deactivating specific lint 57 | # rules and activating additional ones. 58 | flutter_lints: ^2.0.1 59 | 60 | flutter_icons: 61 | android: "launcher_icon" 62 | ios: true 63 | image_path: "assets/wamo.png" 64 | # For information on the generic Dart part of this file, see the 65 | # following page: https://dart.dev/tools/pub/pubspec 66 | 67 | # The following section is specific to Flutter. 68 | flutter: 69 | 70 | # The following line ensures that the Material Icons font is 71 | # included with your application, so that you can use the icons in 72 | # the material Icons class. 73 | uses-material-design: true 74 | 75 | # To add assets to your application, add an assets section, like this: 76 | # assets: 77 | # - images/a_dot_burr.jpeg 78 | # - images/a_dot_ham.jpeg 79 | 80 | # An image asset can refer to one or more resolution-specific "variants", see 81 | # https://flutter.dev/assets-and-images/#resolution-aware. 82 | 83 | # For details regarding adding assets from package dependencies, see 84 | # https://flutter.dev/assets-and-images/#from-packages 85 | 86 | # To add custom fonts to your application, add a fonts section here, 87 | # in this "flutter" section. Each entry in this list should have a 88 | # "family" key with the font family name, and a "fonts" key with a 89 | # list giving the asset and other descriptors for the font. For 90 | # example: 91 | # fonts: 92 | # - family: Schyler 93 | # fonts: 94 | # - asset: fonts/Schyler-Regular.ttf 95 | # - asset: fonts/Schyler-Italic.ttf 96 | # style: italic 97 | # - family: Trajan Pro 98 | # fonts: 99 | # - asset: fonts/TrajanPro.ttf 100 | # - asset: fonts/TrajanPro_Bold.ttf 101 | # weight: 700 102 | # 103 | # For details regarding fonts from package dependencies, 104 | # see https://flutter.dev/custom-fonts/#from-packages 105 | -------------------------------------------------------------------------------- /lib/view/search_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:wamo/bloc/wallpaper_bloc.dart'; 4 | import 'package:wamo/view/detail_page.dart'; 5 | 6 | class SearchPage extends StatefulWidget { 7 | const SearchPage({Key? key}) : super(key: key); 8 | 9 | @override 10 | State createState() => _SearchPageState(); 11 | } 12 | 13 | class _SearchPageState extends State { 14 | TextEditingController searchQuery = TextEditingController(); 15 | ScrollController scrollController = ScrollController(); 16 | late WallpaperBloc bloc; 17 | late int itemIndex; 18 | bool isPressed = false; 19 | 20 | void onScroll() { 21 | double maxScroll = scrollController.position.maxScrollExtent; 22 | double currentScroll = scrollController.position.pixels; 23 | 24 | if (currentScroll == maxScroll) { 25 | bloc.add(WallpaperSearchEvent(query: searchQuery.text)); 26 | } 27 | } 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | scrollController.addListener(onScroll); 32 | return BlocProvider( 33 | create: (context) { 34 | bloc = WallpaperBloc(); 35 | return bloc; 36 | }, 37 | child: Scaffold( 38 | backgroundColor: Theme.of(context).backgroundColor, 39 | body: SingleChildScrollView( 40 | controller: scrollController, 41 | child: SafeArea( 42 | child: Column( 43 | children: [ 44 | Container( 45 | margin: const EdgeInsets.only(bottom: 10, top: 10), 46 | child: Row( 47 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 48 | children: [ 49 | GestureDetector( 50 | onTap: () { 51 | Navigator.pop(context); 52 | }, 53 | child: Icon( 54 | Icons.arrow_back_ios_new, 55 | color: Theme.of(context).textTheme.bodyText1!.color, 56 | ), 57 | ), 58 | Hero( 59 | tag: "search", 60 | child: Material( 61 | elevation: 3, 62 | borderRadius: BorderRadius.circular(50), 63 | color: Theme.of(context).cardColor, 64 | child: Container( 65 | padding: EdgeInsets.fromLTRB(5, 3, 5, 0), 66 | width: MediaQuery.of(context).size.width / 1.25, 67 | height: 50, 68 | child: TextField( 69 | style: Theme.of(context).textTheme.bodyText1, 70 | autofocus: true, 71 | controller: searchQuery, 72 | textInputAction: TextInputAction.search, 73 | cursorColor: Theme.of(context).textTheme.bodyText1!.color, 74 | onSubmitted: (value) { 75 | isPressed = true; 76 | bloc.add(ResetEvent()); 77 | bloc.add(WallpaperSearchEvent(query: searchQuery.text)); 78 | }, 79 | decoration: InputDecoration( 80 | prefixIcon: Icon(Icons.search, color: Colors.blue), 81 | border: InputBorder.none, 82 | hintText: "Search Wallpaper", 83 | hintStyle: Theme.of(context).textTheme.bodyText1, 84 | ), 85 | ), 86 | ), 87 | ), 88 | ), 89 | ], 90 | ), 91 | ), 92 | BlocBuilder( 93 | builder: (context, state) { 94 | if (state is WallpaperInitial) { 95 | if (isPressed) { 96 | return const Center( 97 | child: SizedBox( 98 | width: 30, 99 | height: 30, 100 | child: CircularProgressIndicator.adaptive(), 101 | ), 102 | ); 103 | } else { 104 | return Container(); 105 | } 106 | } else { 107 | WallpaperLoaded wallpaperLoaded = state as WallpaperLoaded; 108 | return ListView.builder( 109 | physics: const NeverScrollableScrollPhysics(), 110 | shrinkWrap: true, 111 | itemCount: (wallpaperLoaded.hasReachedMax!) ? wallpaperLoaded.wallpapers!.length : wallpaperLoaded.wallpapers!.length + 1, 112 | itemBuilder: (context, index) { 113 | itemIndex = index; 114 | if (index % 2 == 0) { 115 | return Container(); 116 | } 117 | return Column( 118 | children: [ 119 | (index < wallpaperLoaded.wallpapers!.length - 1) 120 | ? Row( 121 | mainAxisAlignment: MainAxisAlignment.spaceAround, 122 | children: [ 123 | GestureDetector( 124 | onTap: () { 125 | Navigator.push( 126 | context, 127 | MaterialPageRoute( 128 | builder: (context) => DetailPage( 129 | url: wallpaperLoaded.wallpapers![index].url, 130 | tag: index.toString(), 131 | source: "Wallpaper Abyss", 132 | ), 133 | ), 134 | ); 135 | }, 136 | child: Hero( 137 | tag: (index).toString(), 138 | // child: Image.network(wallpaperLoaded.wallpapers![index].url) 139 | child: Container( 140 | height: 300, 141 | width: 160, 142 | decoration: BoxDecoration( 143 | image: DecorationImage( 144 | image: NetworkImage(wallpaperLoaded.wallpapers![index].url), 145 | fit: BoxFit.fill, 146 | ), 147 | borderRadius: BorderRadius.circular(10), 148 | ), 149 | margin: const EdgeInsets.all(5)), 150 | ), 151 | ), 152 | GestureDetector( 153 | onTap: () { 154 | Navigator.push( 155 | context, 156 | MaterialPageRoute( 157 | builder: (context) => DetailPage( 158 | url: wallpaperLoaded.wallpapers![index + 1].url, 159 | tag: (index + 1).toString(), 160 | source: "Wallpaper Abyss", 161 | ), 162 | ), 163 | ); 164 | }, 165 | child: Hero( 166 | tag: (index + 1).toString(), 167 | child: Container( 168 | height: 300, 169 | width: 160, 170 | decoration: BoxDecoration( 171 | image: DecorationImage( 172 | image: NetworkImage(wallpaperLoaded.wallpapers![index + 1].url), 173 | fit: BoxFit.fill, 174 | ), 175 | borderRadius: BorderRadius.circular(10), 176 | ), 177 | margin: const EdgeInsets.all(5)), 178 | ), 179 | ), 180 | ], 181 | ) 182 | : const SizedBox( 183 | width: 30, 184 | height: 30, 185 | child: CircularProgressIndicator.adaptive(), 186 | ), 187 | ], 188 | ); 189 | }, 190 | ); 191 | } 192 | }, 193 | ) 194 | ], 195 | ), 196 | ), 197 | ), 198 | ), 199 | ); 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /lib/view/detail_page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'dart:isolate'; 3 | import 'dart:ui'; 4 | import 'package:flutter/foundation.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter_downloader/flutter_downloader.dart'; 7 | import 'package:hive_flutter/hive_flutter.dart'; 8 | import 'package:path_provider/path_provider.dart'; 9 | import 'package:permission_handler/permission_handler.dart'; 10 | import 'package:wallpaper/wallpaper.dart'; 11 | import 'package:wamo/model/wallpaper.dart'; 12 | 13 | class DetailPage extends StatefulWidget { 14 | final String url; 15 | final String tag; 16 | String source; 17 | 18 | DetailPage({Key? key, required this.url, required this.tag, this.source = ""}) 19 | : super(key: key); 20 | 21 | @override 22 | State createState() => _DetailPageState(); 23 | } 24 | 25 | class _DetailPageState extends State { 26 | bool isFavorite = false; 27 | Stream? progressString; 28 | String? res; 29 | bool downloading = false; 30 | String home = "Home Screen", 31 | lock = "Lock Screen", 32 | both = "Both Screen", 33 | system = "System"; 34 | 35 | final ReceivePort _port = ReceivePort(); 36 | 37 | @override 38 | void initState() { 39 | super.initState(); 40 | Hive.openBox("wallpaperimages"); 41 | var wallpaperBox = Hive.box("wallpaperimages"); 42 | 43 | if (wallpaperBox.containsKey(widget.url)) { 44 | isFavorite = true; 45 | } 46 | 47 | IsolateNameServer.registerPortWithName( 48 | _port.sendPort, 'downloader_send_port'); 49 | _port.listen((dynamic data) { 50 | // ignore: unused_local_variable 51 | String id = data[0]; 52 | // ignore: unused_local_variable 53 | DownloadTaskStatus status = data[1]; 54 | // ignore: unused_local_variable 55 | int progress = data[2]; 56 | setState(() {}); 57 | }); 58 | 59 | FlutterDownloader.registerCallback(downloadCallback); 60 | } 61 | 62 | @override 63 | void dispose() { 64 | IsolateNameServer.removePortNameMapping('downloader_send_port'); 65 | super.dispose(); 66 | } 67 | 68 | static void downloadCallback( 69 | String id, DownloadTaskStatus status, int progress) { 70 | final SendPort? send = 71 | IsolateNameServer.lookupPortByName('downloader_send_port'); 72 | send!.send([id, status, progress]); 73 | } 74 | 75 | @override 76 | Widget build(BuildContext context) { 77 | return Scaffold( 78 | backgroundColor: Theme.of(context).backgroundColor, 79 | body: Column( 80 | children: [ 81 | Stack( 82 | children: [ 83 | Hero( 84 | tag: widget.tag, 85 | child: Container( 86 | height: MediaQuery.of(context).size.height * 0.9, 87 | width: double.infinity, 88 | decoration: BoxDecoration( 89 | image: DecorationImage( 90 | image: NetworkImage(widget.url), 91 | fit: BoxFit.cover, 92 | ), 93 | ), 94 | ), 95 | ), 96 | Positioned( 97 | top: MediaQuery.of(context).size.height * 0.07, 98 | left: MediaQuery.of(context).size.width * 0.06, 99 | child: GestureDetector( 100 | onTap: () { 101 | Navigator.pop(context); 102 | }, 103 | child: Container( 104 | padding: const EdgeInsets.fromLTRB(0, 5, 7, 5), 105 | child: const Icon( 106 | Icons.arrow_back_ios_new, 107 | color: Colors.white, 108 | size: 32, 109 | ), 110 | decoration: const BoxDecoration( 111 | color: Colors.black45, 112 | shape: BoxShape.circle, 113 | ), 114 | ), 115 | ), 116 | ), 117 | dialog(), 118 | ], 119 | ), 120 | Expanded( 121 | child: Stack( 122 | children: [ 123 | Align( 124 | alignment: Alignment.center, 125 | child: Row( 126 | crossAxisAlignment: CrossAxisAlignment.center, 127 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 128 | children: [ 129 | GestureDetector( 130 | onTap: () { 131 | progressString = 132 | Wallpaper.imageDownloadProgress(widget.url); 133 | progressString!.listen((data) { 134 | setState(() { 135 | res = data; 136 | downloading = true; 137 | }); 138 | }, onDone: () async { 139 | lock = await Wallpaper.homeScreen(); 140 | setState(() { 141 | downloading = false; 142 | lock = lock; 143 | }); 144 | }, onError: (error) { 145 | setState(() { 146 | downloading = false; 147 | }); 148 | }); 149 | }, 150 | child: Icon( 151 | Icons.wallpaper_outlined, 152 | size: 32, 153 | color: Theme.of(context).textTheme.bodyText1!.color, 154 | ), 155 | ), 156 | GestureDetector( 157 | onTap: () async { 158 | var status = await Permission.storage.request(); 159 | if (status.isGranted) { 160 | String fileName = widget.url.replaceAll( 161 | "https://images.wallpaperscraft.com/image/single/", 162 | ""); 163 | // ignore: unused_local_variable 164 | final taskId = await FlutterDownloader.enqueue( 165 | fileName: fileName, 166 | url: widget.url, 167 | savedDir: '/storage/emulated/0/Download/', 168 | showNotification: 169 | true, // show download progress in status bar (for Android) 170 | openFileFromNotification: 171 | true, // click on notification to open downloaded file (for Android) 172 | ); 173 | } else { 174 | showDialog( 175 | context: context, 176 | builder: (_) => const Dialog( 177 | child: Text("Please grant the permission"), 178 | ), 179 | ); 180 | } 181 | }, 182 | child: Icon( 183 | Icons.download, 184 | size: 32, 185 | color: Theme.of(context).textTheme.bodyText1!.color, 186 | ), 187 | ), 188 | GestureDetector( 189 | onTap: () { 190 | setState(() { 191 | isFavorite = !isFavorite; 192 | }); 193 | var wallpaperBox = Hive.box("wallpaperimages"); 194 | if (isFavorite) { 195 | wallpaperBox.put( 196 | widget.url, WallpaperImage(widget.url)); 197 | } else { 198 | wallpaperBox.delete(widget.url); 199 | } 200 | }, 201 | child: (isFavorite) 202 | ? const Icon( 203 | Icons.favorite, 204 | color: Colors.pink, 205 | ) 206 | : Icon( 207 | Icons.favorite_border_outlined, 208 | color: Theme.of(context) 209 | .textTheme 210 | .bodyText1! 211 | .color, 212 | ), 213 | ), 214 | ], 215 | ), 216 | ), 217 | (widget.source != "") 218 | ? Positioned( 219 | top: 3, 220 | right: 5, 221 | child: Text( 222 | "Powered By ${widget.source}", 223 | style: TextStyle( 224 | color: 225 | Theme.of(context).textTheme.bodyText1!.color, 226 | fontSize: 12), 227 | ), 228 | ) 229 | : Container(), 230 | ], 231 | ), 232 | ) 233 | ], 234 | ), 235 | ); 236 | } 237 | 238 | Widget dialog() { 239 | return Positioned( 240 | top: 220, 241 | left: 70, 242 | child: downloading 243 | ? SizedBox( 244 | height: 100.0, 245 | width: 220.0, 246 | child: Card( 247 | color: Theme.of(context).backgroundColor, 248 | child: Padding( 249 | padding: const EdgeInsets.all(8.0), 250 | child: Column( 251 | mainAxisAlignment: MainAxisAlignment.center, 252 | children: [ 253 | LinearProgressIndicator( 254 | value: double.parse(res!.replaceAll("%", "")), 255 | ), 256 | SizedBox(height: 20.0), 257 | Text( 258 | "Downloading File : $res", 259 | style: TextStyle( 260 | color: 261 | Theme.of(context).textTheme.bodyText1!.color), 262 | ) 263 | ], 264 | ), 265 | ), 266 | ), 267 | ) 268 | : Text(""), 269 | ); 270 | } 271 | } 272 | -------------------------------------------------------------------------------- /lib/view/main_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_bloc/flutter_bloc.dart'; 3 | import 'package:hive/hive.dart'; 4 | import 'package:hive_flutter/hive_flutter.dart'; 5 | import 'package:wamo/bloc/wallpaper_bloc.dart'; 6 | import 'package:wamo/model/wallpaper.dart'; 7 | import 'package:wamo/view/search_page.dart'; 8 | 9 | import 'detail_page.dart'; 10 | 11 | class MainPage extends StatefulWidget { 12 | const MainPage({Key? key}) : super(key: key); 13 | 14 | @override 15 | State createState() => _MainPageState(); 16 | } 17 | 18 | class _MainPageState extends State { 19 | int _selectedIndex = 0; 20 | PageController _pageController = PageController(); 21 | ScrollController controller = ScrollController(); 22 | late WallpaperBloc bloc; 23 | 24 | void onScroll() { 25 | double maxScroll = controller.position.maxScrollExtent; 26 | double currentScroll = controller.position.pixels; 27 | 28 | if (currentScroll == maxScroll) { 29 | bloc.add(WallpaperEvent()); 30 | } 31 | } 32 | 33 | @override 34 | void dispose() { 35 | super.dispose(); 36 | } 37 | 38 | void _onTappedBar(int value) { 39 | setState(() { 40 | _selectedIndex = value; 41 | }); 42 | _pageController.jumpToPage(value); 43 | } 44 | 45 | @override 46 | Widget build(BuildContext context) { 47 | bloc = BlocProvider.of(context); 48 | controller.addListener(onScroll); 49 | return Scaffold( 50 | backgroundColor: Theme.of(context).backgroundColor, 51 | bottomNavigationBar: BottomNavigationBar( 52 | items: const [ 53 | BottomNavigationBarItem( 54 | label: "Home", 55 | icon: Icon(Icons.home), 56 | ), 57 | BottomNavigationBarItem( 58 | label: "Favorites", 59 | icon: Icon(Icons.favorite), 60 | ), 61 | ], 62 | onTap: _onTappedBar, 63 | selectedItemColor: Colors.blue, 64 | currentIndex: _selectedIndex, 65 | ), 66 | body: PageView( 67 | controller: _pageController, 68 | onPageChanged: (page) { 69 | setState(() { 70 | _selectedIndex = page; 71 | }); 72 | }, 73 | children: [ 74 | SingleChildScrollView( 75 | physics: const ScrollPhysics(), 76 | controller: controller, 77 | child: Column( 78 | children: [ 79 | SizedBox( 80 | height: (MediaQuery.of(context).size.width * 2 / 3), 81 | width: double.infinity, 82 | child: Stack( 83 | children: [ 84 | Positioned( 85 | top: -(MediaQuery.of(context).size.width * 2 / 4) / 10, 86 | right: -(MediaQuery.of(context).size.width * 2 / 3) / 10, 87 | child: Container( 88 | width: 100, 89 | height: 100, 90 | decoration: const BoxDecoration( 91 | color: Colors.blue, 92 | shape: BoxShape.circle, 93 | ), 94 | ), 95 | ), 96 | Positioned( 97 | top: -(MediaQuery.of(context).size.width * 2 / 3) / 10, 98 | left: (MediaQuery.of(context).size.width / 10), 99 | child: Container( 100 | width: 100, 101 | height: 100, 102 | decoration: const BoxDecoration( 103 | color: Colors.green, 104 | shape: BoxShape.circle, 105 | ), 106 | ), 107 | ), 108 | Positioned( 109 | bottom: (MediaQuery.of(context).size.width * 2 / 10) / 10, 110 | left: -(MediaQuery.of(context).size.width * 2 / 3) / 10, 111 | child: Container( 112 | width: 100, 113 | height: 100, 114 | decoration: const BoxDecoration( 115 | color: Colors.red, 116 | shape: BoxShape.circle, 117 | ), 118 | ), 119 | ), 120 | Align( 121 | alignment: Alignment.center, 122 | child: GestureDetector( 123 | onTap: () { 124 | Navigator.push(context, MaterialPageRoute(builder: (context) => const SearchPage())); 125 | }, 126 | child: Hero( 127 | tag: "search", 128 | child: Material( 129 | elevation: 5, 130 | borderRadius: BorderRadius.circular(50), 131 | color: Theme.of(context).cardColor, 132 | child: Container( 133 | padding: const EdgeInsets.only(left: 20), 134 | width: MediaQuery.of(context).size.width / 1.25, 135 | height: 50, 136 | alignment: Alignment.centerLeft, 137 | child: Row( 138 | children: [ 139 | Icon(Icons.search, color: Theme.of(context).textTheme.bodyText1!.color), 140 | const SizedBox( 141 | width: 10, 142 | ), 143 | Text("Search Wallpaper", style: Theme.of(context).textTheme.bodyText1), 144 | ], 145 | ), 146 | ), 147 | ), 148 | ), 149 | ), 150 | ), 151 | ], 152 | ), 153 | ), 154 | BlocBuilder( 155 | builder: (context, state) { 156 | if (state is WallpaperInitial) { 157 | return const Center( 158 | child: SizedBox( 159 | width: 30, 160 | height: 30, 161 | child: CircularProgressIndicator.adaptive(), 162 | ), 163 | ); 164 | } else { 165 | WallpaperLoaded wallpaperLoaded = state as WallpaperLoaded; 166 | return ListView.builder( 167 | physics: const NeverScrollableScrollPhysics(), 168 | shrinkWrap: true, 169 | itemCount: (wallpaperLoaded.hasReachedMax!) ? wallpaperLoaded.wallpapers!.length : wallpaperLoaded.wallpapers!.length + 1, 170 | itemBuilder: (context, index) { 171 | if (index % 2 == 0) { 172 | return Container(); 173 | } 174 | return Column( 175 | children: [ 176 | (index < wallpaperLoaded.wallpapers!.length - 1) 177 | ? Row( 178 | mainAxisAlignment: MainAxisAlignment.spaceAround, 179 | children: [ 180 | GestureDetector( 181 | onTap: () { 182 | Navigator.push( 183 | context, 184 | MaterialPageRoute( 185 | builder: (context) => DetailPage( 186 | url: wallpaperLoaded.wallpapers![index].url, tag: index.toString(), source: "Wallpaper Crafts"), 187 | ), 188 | ); 189 | }, 190 | child: Hero( 191 | tag: (index).toString(), 192 | child: Container( 193 | height: 300, 194 | width: 160, 195 | decoration: BoxDecoration( 196 | image: DecorationImage( 197 | image: NetworkImage(wallpaperLoaded.wallpapers![index].url), 198 | fit: BoxFit.fill, 199 | ), 200 | borderRadius: BorderRadius.circular(10), 201 | ), 202 | margin: const EdgeInsets.all(5)), 203 | ), 204 | ), 205 | (wallpaperLoaded.wallpapers!.length != index) 206 | ? GestureDetector( 207 | onTap: () { 208 | Navigator.push( 209 | context, 210 | MaterialPageRoute( 211 | builder: (context) => DetailPage( 212 | url: wallpaperLoaded.wallpapers![index + 1].url, 213 | tag: (index + 1).toString(), 214 | source: "Wallpaper Crafts"), 215 | ), 216 | ); 217 | }, 218 | child: Hero( 219 | tag: (index + 1).toString(), 220 | child: Container( 221 | height: 300, 222 | width: 160, 223 | decoration: BoxDecoration( 224 | image: DecorationImage( 225 | image: NetworkImage(wallpaperLoaded.wallpapers![index + 1].url), 226 | fit: BoxFit.fill, 227 | ), 228 | borderRadius: BorderRadius.circular(10), 229 | ), 230 | margin: const EdgeInsets.all(5)), 231 | ), 232 | ) 233 | : Container(), 234 | ], 235 | ) 236 | : const SizedBox( 237 | width: 30, 238 | height: 30, 239 | child: CircularProgressIndicator.adaptive(), 240 | ), 241 | ], 242 | ); 243 | }, 244 | ); 245 | } 246 | }, 247 | ), 248 | ], 249 | ), 250 | ), 251 | FutureBuilder( 252 | future: Hive.openBox("wallpaperimages"), 253 | builder: (context, AsyncSnapshot snapshot) { 254 | if (snapshot.connectionState == ConnectionState.done) { 255 | if (snapshot.hasError) { 256 | return Center( 257 | child: Text(snapshot.error.toString()), 258 | ); 259 | } else { 260 | var wallpaperBox = Hive.box("wallpaperimages"); 261 | if (wallpaperBox.isEmpty) { 262 | return Center( 263 | child: Text( 264 | "You haven't liked anything :(", 265 | style: Theme.of(context).textTheme.bodyText1, 266 | ), 267 | ); 268 | } else { 269 | return ValueListenableBuilder( 270 | valueListenable: wallpaperBox.listenable(), 271 | builder: (context, Box wallpapers, _) => ListView.builder( 272 | shrinkWrap: true, 273 | itemCount: snapshot.data!.length, 274 | itemBuilder: (context, index) { 275 | WallpaperImage wallpaperImage = wallpaperBox.getAt(index); 276 | if ((index + 1) % 2 == 0) { 277 | return Container(); 278 | } 279 | return Row( 280 | mainAxisAlignment: MainAxisAlignment.start, 281 | children: [ 282 | Align( 283 | alignment: Alignment.centerLeft, 284 | child: GestureDetector( 285 | onTap: () { 286 | Navigator.push( 287 | context, 288 | MaterialPageRoute( 289 | builder: (context) => DetailPage(url: wallpaperImage.url, tag: index.toString()), 290 | ), 291 | ); 292 | }, 293 | child: Hero( 294 | tag: (index).toString(), 295 | child: Container( 296 | height: 300, 297 | width: 160, 298 | decoration: BoxDecoration( 299 | image: DecorationImage( 300 | image: NetworkImage(wallpaperImage.url), 301 | fit: BoxFit.fill, 302 | ), 303 | borderRadius: BorderRadius.circular(10), 304 | ), 305 | margin: const EdgeInsets.fromLTRB(10, 5, 10, 5)), 306 | ), 307 | ), 308 | ), 309 | (index != wallpaperBox.length - 1) 310 | ? Align( 311 | alignment: Alignment.centerRight, 312 | child: GestureDetector( 313 | onTap: () { 314 | Navigator.push( 315 | context, 316 | MaterialPageRoute( 317 | builder: (context) => DetailPage(url: wallpaperBox.getAt(index + 1).url, tag: (index + 1).toString()), 318 | ), 319 | ); 320 | }, 321 | child: Hero( 322 | tag: (index + 1).toString(), 323 | child: Container( 324 | height: 300, 325 | width: 160, 326 | decoration: BoxDecoration( 327 | image: DecorationImage( 328 | image: NetworkImage(wallpaperBox.getAt(index + 1).url), 329 | fit: BoxFit.fill, 330 | ), 331 | borderRadius: BorderRadius.circular(10), 332 | ), 333 | margin: const EdgeInsets.fromLTRB(10, 5, 10, 5)), 334 | ), 335 | ), 336 | ) 337 | : Container(), 338 | ], 339 | ); 340 | }, 341 | ), 342 | ); 343 | } 344 | } 345 | } else { 346 | return const Center( 347 | child: CircularProgressIndicator(), 348 | ); 349 | } 350 | }, 351 | ), 352 | ], 353 | ), 354 | ); 355 | } 356 | } 357 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "50.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "5.2.0" 18 | archive: 19 | dependency: transitive 20 | description: 21 | name: archive 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "3.3.5" 25 | args: 26 | dependency: transitive 27 | description: 28 | name: args 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.3.1" 32 | async: 33 | dependency: transitive 34 | description: 35 | name: async 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.9.0" 39 | bloc: 40 | dependency: "direct main" 41 | description: 42 | name: bloc 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "8.1.0" 46 | boolean_selector: 47 | dependency: transitive 48 | description: 49 | name: boolean_selector 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.0" 53 | build: 54 | dependency: transitive 55 | description: 56 | name: build 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.3.1" 60 | build_config: 61 | dependency: transitive 62 | description: 63 | name: build_config 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.1.1" 67 | build_daemon: 68 | dependency: transitive 69 | description: 70 | name: build_daemon 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "3.1.0" 74 | build_resolvers: 75 | dependency: transitive 76 | description: 77 | name: build_resolvers 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "2.0.10" 81 | build_runner: 82 | dependency: "direct main" 83 | description: 84 | name: build_runner 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "2.3.2" 88 | build_runner_core: 89 | dependency: transitive 90 | description: 91 | name: build_runner_core 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "7.2.7" 95 | built_collection: 96 | dependency: transitive 97 | description: 98 | name: built_collection 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "5.1.1" 102 | built_value: 103 | dependency: transitive 104 | description: 105 | name: built_value 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "8.4.2" 109 | characters: 110 | dependency: transitive 111 | description: 112 | name: characters 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "1.2.1" 116 | checked_yaml: 117 | dependency: transitive 118 | description: 119 | name: checked_yaml 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "2.0.1" 123 | cli_util: 124 | dependency: transitive 125 | description: 126 | name: cli_util 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "0.3.5" 130 | clock: 131 | dependency: transitive 132 | description: 133 | name: clock 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "1.1.1" 137 | code_builder: 138 | dependency: transitive 139 | description: 140 | name: code_builder 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "4.3.0" 144 | collection: 145 | dependency: transitive 146 | description: 147 | name: collection 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "1.16.0" 151 | convert: 152 | dependency: transitive 153 | description: 154 | name: convert 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "3.1.1" 158 | crypto: 159 | dependency: transitive 160 | description: 161 | name: crypto 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "3.0.2" 165 | cupertino_icons: 166 | dependency: "direct main" 167 | description: 168 | name: cupertino_icons 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "1.0.5" 172 | dart_style: 173 | dependency: transitive 174 | description: 175 | name: dart_style 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "2.2.4" 179 | dio: 180 | dependency: transitive 181 | description: 182 | name: dio 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "4.0.6" 186 | fake_async: 187 | dependency: transitive 188 | description: 189 | name: fake_async 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "1.3.1" 193 | ffi: 194 | dependency: transitive 195 | description: 196 | name: ffi 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "2.0.1" 200 | file: 201 | dependency: transitive 202 | description: 203 | name: file 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "6.1.4" 207 | fixnum: 208 | dependency: transitive 209 | description: 210 | name: fixnum 211 | url: "https://pub.dartlang.org" 212 | source: hosted 213 | version: "1.0.1" 214 | flutter: 215 | dependency: "direct main" 216 | description: flutter 217 | source: sdk 218 | version: "0.0.0" 219 | flutter_bloc: 220 | dependency: "direct main" 221 | description: 222 | name: flutter_bloc 223 | url: "https://pub.dartlang.org" 224 | source: hosted 225 | version: "8.1.1" 226 | flutter_downloader: 227 | dependency: "direct main" 228 | description: 229 | name: flutter_downloader 230 | url: "https://pub.dartlang.org" 231 | source: hosted 232 | version: "1.9.1" 233 | flutter_launcher_icons: 234 | dependency: "direct dev" 235 | description: 236 | name: flutter_launcher_icons 237 | url: "https://pub.dartlang.org" 238 | source: hosted 239 | version: "0.11.0" 240 | flutter_lints: 241 | dependency: "direct dev" 242 | description: 243 | name: flutter_lints 244 | url: "https://pub.dartlang.org" 245 | source: hosted 246 | version: "2.0.1" 247 | flutter_test: 248 | dependency: "direct dev" 249 | description: flutter 250 | source: sdk 251 | version: "0.0.0" 252 | frontend_server_client: 253 | dependency: transitive 254 | description: 255 | name: frontend_server_client 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "3.2.0" 259 | glob: 260 | dependency: transitive 261 | description: 262 | name: glob 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "2.1.1" 266 | graphs: 267 | dependency: transitive 268 | description: 269 | name: graphs 270 | url: "https://pub.dartlang.org" 271 | source: hosted 272 | version: "2.2.0" 273 | hive: 274 | dependency: "direct main" 275 | description: 276 | name: hive 277 | url: "https://pub.dartlang.org" 278 | source: hosted 279 | version: "2.2.3" 280 | hive_flutter: 281 | dependency: "direct main" 282 | description: 283 | name: hive_flutter 284 | url: "https://pub.dartlang.org" 285 | source: hosted 286 | version: "1.1.0" 287 | hive_generator: 288 | dependency: "direct main" 289 | description: 290 | name: hive_generator 291 | url: "https://pub.dartlang.org" 292 | source: hosted 293 | version: "2.0.0" 294 | http: 295 | dependency: "direct main" 296 | description: 297 | name: http 298 | url: "https://pub.dartlang.org" 299 | source: hosted 300 | version: "0.13.5" 301 | http_multi_server: 302 | dependency: transitive 303 | description: 304 | name: http_multi_server 305 | url: "https://pub.dartlang.org" 306 | source: hosted 307 | version: "3.2.1" 308 | http_parser: 309 | dependency: transitive 310 | description: 311 | name: http_parser 312 | url: "https://pub.dartlang.org" 313 | source: hosted 314 | version: "4.0.2" 315 | image: 316 | dependency: transitive 317 | description: 318 | name: image 319 | url: "https://pub.dartlang.org" 320 | source: hosted 321 | version: "3.2.2" 322 | io: 323 | dependency: transitive 324 | description: 325 | name: io 326 | url: "https://pub.dartlang.org" 327 | source: hosted 328 | version: "1.0.3" 329 | js: 330 | dependency: transitive 331 | description: 332 | name: js 333 | url: "https://pub.dartlang.org" 334 | source: hosted 335 | version: "0.6.5" 336 | json_annotation: 337 | dependency: transitive 338 | description: 339 | name: json_annotation 340 | url: "https://pub.dartlang.org" 341 | source: hosted 342 | version: "4.7.0" 343 | lints: 344 | dependency: transitive 345 | description: 346 | name: lints 347 | url: "https://pub.dartlang.org" 348 | source: hosted 349 | version: "2.0.1" 350 | logging: 351 | dependency: transitive 352 | description: 353 | name: logging 354 | url: "https://pub.dartlang.org" 355 | source: hosted 356 | version: "1.1.0" 357 | matcher: 358 | dependency: transitive 359 | description: 360 | name: matcher 361 | url: "https://pub.dartlang.org" 362 | source: hosted 363 | version: "0.12.12" 364 | material_color_utilities: 365 | dependency: transitive 366 | description: 367 | name: material_color_utilities 368 | url: "https://pub.dartlang.org" 369 | source: hosted 370 | version: "0.1.5" 371 | meta: 372 | dependency: transitive 373 | description: 374 | name: meta 375 | url: "https://pub.dartlang.org" 376 | source: hosted 377 | version: "1.8.0" 378 | mime: 379 | dependency: transitive 380 | description: 381 | name: mime 382 | url: "https://pub.dartlang.org" 383 | source: hosted 384 | version: "1.0.3" 385 | nested: 386 | dependency: transitive 387 | description: 388 | name: nested 389 | url: "https://pub.dartlang.org" 390 | source: hosted 391 | version: "1.0.0" 392 | package_config: 393 | dependency: transitive 394 | description: 395 | name: package_config 396 | url: "https://pub.dartlang.org" 397 | source: hosted 398 | version: "2.1.0" 399 | path: 400 | dependency: transitive 401 | description: 402 | name: path 403 | url: "https://pub.dartlang.org" 404 | source: hosted 405 | version: "1.8.2" 406 | path_provider: 407 | dependency: "direct main" 408 | description: 409 | name: path_provider 410 | url: "https://pub.dartlang.org" 411 | source: hosted 412 | version: "2.0.11" 413 | path_provider_android: 414 | dependency: transitive 415 | description: 416 | name: path_provider_android 417 | url: "https://pub.dartlang.org" 418 | source: hosted 419 | version: "2.0.22" 420 | path_provider_ios: 421 | dependency: transitive 422 | description: 423 | name: path_provider_ios 424 | url: "https://pub.dartlang.org" 425 | source: hosted 426 | version: "2.0.11" 427 | path_provider_linux: 428 | dependency: transitive 429 | description: 430 | name: path_provider_linux 431 | url: "https://pub.dartlang.org" 432 | source: hosted 433 | version: "2.1.7" 434 | path_provider_macos: 435 | dependency: transitive 436 | description: 437 | name: path_provider_macos 438 | url: "https://pub.dartlang.org" 439 | source: hosted 440 | version: "2.0.6" 441 | path_provider_platform_interface: 442 | dependency: transitive 443 | description: 444 | name: path_provider_platform_interface 445 | url: "https://pub.dartlang.org" 446 | source: hosted 447 | version: "2.0.5" 448 | path_provider_windows: 449 | dependency: transitive 450 | description: 451 | name: path_provider_windows 452 | url: "https://pub.dartlang.org" 453 | source: hosted 454 | version: "2.1.3" 455 | permission_handler: 456 | dependency: "direct main" 457 | description: 458 | name: permission_handler 459 | url: "https://pub.dartlang.org" 460 | source: hosted 461 | version: "10.2.0" 462 | permission_handler_android: 463 | dependency: transitive 464 | description: 465 | name: permission_handler_android 466 | url: "https://pub.dartlang.org" 467 | source: hosted 468 | version: "10.2.0" 469 | permission_handler_apple: 470 | dependency: transitive 471 | description: 472 | name: permission_handler_apple 473 | url: "https://pub.dartlang.org" 474 | source: hosted 475 | version: "9.0.7" 476 | permission_handler_platform_interface: 477 | dependency: transitive 478 | description: 479 | name: permission_handler_platform_interface 480 | url: "https://pub.dartlang.org" 481 | source: hosted 482 | version: "3.9.0" 483 | permission_handler_windows: 484 | dependency: transitive 485 | description: 486 | name: permission_handler_windows 487 | url: "https://pub.dartlang.org" 488 | source: hosted 489 | version: "0.1.2" 490 | petitparser: 491 | dependency: transitive 492 | description: 493 | name: petitparser 494 | url: "https://pub.dartlang.org" 495 | source: hosted 496 | version: "5.1.0" 497 | platform: 498 | dependency: transitive 499 | description: 500 | name: platform 501 | url: "https://pub.dartlang.org" 502 | source: hosted 503 | version: "3.1.0" 504 | plugin_platform_interface: 505 | dependency: transitive 506 | description: 507 | name: plugin_platform_interface 508 | url: "https://pub.dartlang.org" 509 | source: hosted 510 | version: "2.1.3" 511 | pointycastle: 512 | dependency: transitive 513 | description: 514 | name: pointycastle 515 | url: "https://pub.dartlang.org" 516 | source: hosted 517 | version: "3.6.2" 518 | pool: 519 | dependency: transitive 520 | description: 521 | name: pool 522 | url: "https://pub.dartlang.org" 523 | source: hosted 524 | version: "1.5.1" 525 | process: 526 | dependency: transitive 527 | description: 528 | name: process 529 | url: "https://pub.dartlang.org" 530 | source: hosted 531 | version: "4.2.4" 532 | provider: 533 | dependency: transitive 534 | description: 535 | name: provider 536 | url: "https://pub.dartlang.org" 537 | source: hosted 538 | version: "6.0.4" 539 | pub_semver: 540 | dependency: transitive 541 | description: 542 | name: pub_semver 543 | url: "https://pub.dartlang.org" 544 | source: hosted 545 | version: "2.1.3" 546 | pubspec_parse: 547 | dependency: transitive 548 | description: 549 | name: pubspec_parse 550 | url: "https://pub.dartlang.org" 551 | source: hosted 552 | version: "1.2.1" 553 | shelf: 554 | dependency: transitive 555 | description: 556 | name: shelf 557 | url: "https://pub.dartlang.org" 558 | source: hosted 559 | version: "1.4.0" 560 | shelf_web_socket: 561 | dependency: transitive 562 | description: 563 | name: shelf_web_socket 564 | url: "https://pub.dartlang.org" 565 | source: hosted 566 | version: "1.0.3" 567 | sky_engine: 568 | dependency: transitive 569 | description: flutter 570 | source: sdk 571 | version: "0.0.99" 572 | source_gen: 573 | dependency: transitive 574 | description: 575 | name: source_gen 576 | url: "https://pub.dartlang.org" 577 | source: hosted 578 | version: "1.2.6" 579 | source_helper: 580 | dependency: transitive 581 | description: 582 | name: source_helper 583 | url: "https://pub.dartlang.org" 584 | source: hosted 585 | version: "1.3.3" 586 | source_span: 587 | dependency: transitive 588 | description: 589 | name: source_span 590 | url: "https://pub.dartlang.org" 591 | source: hosted 592 | version: "1.9.0" 593 | stack_trace: 594 | dependency: transitive 595 | description: 596 | name: stack_trace 597 | url: "https://pub.dartlang.org" 598 | source: hosted 599 | version: "1.10.0" 600 | stream_channel: 601 | dependency: transitive 602 | description: 603 | name: stream_channel 604 | url: "https://pub.dartlang.org" 605 | source: hosted 606 | version: "2.1.0" 607 | stream_transform: 608 | dependency: transitive 609 | description: 610 | name: stream_transform 611 | url: "https://pub.dartlang.org" 612 | source: hosted 613 | version: "2.1.0" 614 | string_scanner: 615 | dependency: transitive 616 | description: 617 | name: string_scanner 618 | url: "https://pub.dartlang.org" 619 | source: hosted 620 | version: "1.1.1" 621 | term_glyph: 622 | dependency: transitive 623 | description: 624 | name: term_glyph 625 | url: "https://pub.dartlang.org" 626 | source: hosted 627 | version: "1.2.1" 628 | test_api: 629 | dependency: transitive 630 | description: 631 | name: test_api 632 | url: "https://pub.dartlang.org" 633 | source: hosted 634 | version: "0.4.12" 635 | timing: 636 | dependency: transitive 637 | description: 638 | name: timing 639 | url: "https://pub.dartlang.org" 640 | source: hosted 641 | version: "1.0.0" 642 | typed_data: 643 | dependency: transitive 644 | description: 645 | name: typed_data 646 | url: "https://pub.dartlang.org" 647 | source: hosted 648 | version: "1.3.1" 649 | vector_math: 650 | dependency: transitive 651 | description: 652 | name: vector_math 653 | url: "https://pub.dartlang.org" 654 | source: hosted 655 | version: "2.1.2" 656 | wallpaper: 657 | dependency: "direct main" 658 | description: 659 | name: wallpaper 660 | url: "https://pub.dartlang.org" 661 | source: hosted 662 | version: "1.1.0" 663 | watcher: 664 | dependency: transitive 665 | description: 666 | name: watcher 667 | url: "https://pub.dartlang.org" 668 | source: hosted 669 | version: "1.0.2" 670 | web_socket_channel: 671 | dependency: transitive 672 | description: 673 | name: web_socket_channel 674 | url: "https://pub.dartlang.org" 675 | source: hosted 676 | version: "2.2.0" 677 | win32: 678 | dependency: transitive 679 | description: 680 | name: win32 681 | url: "https://pub.dartlang.org" 682 | source: hosted 683 | version: "3.1.2" 684 | xdg_directories: 685 | dependency: transitive 686 | description: 687 | name: xdg_directories 688 | url: "https://pub.dartlang.org" 689 | source: hosted 690 | version: "0.2.0+2" 691 | xml: 692 | dependency: transitive 693 | description: 694 | name: xml 695 | url: "https://pub.dartlang.org" 696 | source: hosted 697 | version: "6.1.0" 698 | yaml: 699 | dependency: transitive 700 | description: 701 | name: yaml 702 | url: "https://pub.dartlang.org" 703 | source: hosted 704 | version: "3.1.1" 705 | sdks: 706 | dart: ">=2.18.0 <3.0.0" 707 | flutter: ">=3.0.0" 708 | -------------------------------------------------------------------------------- /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 = 9.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 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.wamo; 295 | PRODUCT_NAME = "$(TARGET_NAME)"; 296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 297 | SWIFT_VERSION = 5.0; 298 | VERSIONING_SYSTEM = "apple-generic"; 299 | }; 300 | name = Profile; 301 | }; 302 | 97C147031CF9000F007C117D /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = dwarf; 333 | ENABLE_STRICT_OBJC_MSGSEND = YES; 334 | ENABLE_TESTABILITY = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_DYNAMIC_NO_PIC = NO; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_OPTIMIZATION_LEVEL = 0; 339 | GCC_PREPROCESSOR_DEFINITIONS = ( 340 | "DEBUG=1", 341 | "$(inherited)", 342 | ); 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 350 | MTL_ENABLE_DEBUG_INFO = YES; 351 | ONLY_ACTIVE_ARCH = YES; 352 | SDKROOT = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | }; 355 | name = Debug; 356 | }; 357 | 97C147041CF9000F007C117D /* Release */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_NONNULL = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 381 | CLANG_WARN_STRICT_PROTOTYPES = YES; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | SUPPORTED_PLATFORMS = iphoneos; 402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 403 | TARGETED_DEVICE_FAMILY = "1,2"; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | 97C147061CF9000F007C117D /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | CLANG_ENABLE_MODULES = YES; 414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 415 | ENABLE_BITCODE = NO; 416 | INFOPLIST_FILE = Runner/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.wamo; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 422 | SWIFT_VERSION = 5.0; 423 | VERSIONING_SYSTEM = "apple-generic"; 424 | }; 425 | name = Debug; 426 | }; 427 | 97C147071CF9000F007C117D /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | INFOPLIST_FILE = Runner/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.wamo; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 440 | SWIFT_VERSION = 5.0; 441 | VERSIONING_SYSTEM = "apple-generic"; 442 | }; 443 | name = Release; 444 | }; 445 | /* End XCBuildConfiguration section */ 446 | 447 | /* Begin XCConfigurationList section */ 448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 97C147031CF9000F007C117D /* Debug */, 452 | 97C147041CF9000F007C117D /* Release */, 453 | 249021D3217E4FDB00AE95B9 /* Profile */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147061CF9000F007C117D /* Debug */, 462 | 97C147071CF9000F007C117D /* Release */, 463 | 249021D4217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | /* End XCConfigurationList section */ 469 | }; 470 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 471 | } --------------------------------------------------------------------------------