├── 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.xcworkspace
│ └── contents.xcworkspacedata
└── Runner.xcodeproj
│ ├── project.xcworkspace
│ └── contents.xcworkspacedata
│ ├── xcshareddata
│ └── xcschemes
│ │ └── Runner.xcscheme
│ └── project.pbxproj
├── demo
└── wallbay.gif
├── assets
└── image
│ ├── car.jpg
│ ├── city.jpg
│ ├── icon.png
│ ├── space.jpg
│ ├── sport.jpg
│ ├── abstract.jpg
│ ├── nature.jpg
│ └── minimalist.jpg
├── .vscode
└── settings.json
├── fonts
└── Raleway-SemiBold.ttf
├── android
├── .settings
│ └── org.eclipse.buildship.core.prefs
├── app
│ ├── .settings
│ │ └── org.eclipse.buildship.core.prefs
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── tsvillain
│ │ │ │ │ └── wallbay
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── .classpath
│ ├── .project
│ └── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .project
├── settings.gradle
└── build.gradle
├── test
└── widget_test.dart
├── .metadata
├── lib
├── Bloc
│ ├── wallpaperEvent.dart
│ ├── wallpaperState.dart
│ ├── wallpaperBloc.dart
│ ├── searchWallpaperBloc.dart
│ └── categoryWallpaperBloc.dart
├── Model
│ ├── wallpaper.dart
│ └── cateogry.dart
├── const.dart
├── Screens
│ ├── Setting.dart
│ ├── CategoryList.dart
│ ├── EditorChoice.dart
│ ├── Category.dart
│ ├── HomePage.dart
│ ├── Search.dart
│ └── Detail.dart
└── main.dart
├── .travis.yml
├── LICENSE
├── .gitignore
├── README.md
├── pubspec.yaml
├── .flutter-plugins-dependencies
└── 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"
--------------------------------------------------------------------------------
/demo/wallbay.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/demo/wallbay.gif
--------------------------------------------------------------------------------
/assets/image/car.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/assets/image/car.jpg
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "java.configuration.updateBuildConfiguration": "automatic"
3 | }
--------------------------------------------------------------------------------
/assets/image/city.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/assets/image/city.jpg
--------------------------------------------------------------------------------
/assets/image/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/assets/image/icon.png
--------------------------------------------------------------------------------
/assets/image/space.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/assets/image/space.jpg
--------------------------------------------------------------------------------
/assets/image/sport.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/assets/image/sport.jpg
--------------------------------------------------------------------------------
/assets/image/abstract.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/assets/image/abstract.jpg
--------------------------------------------------------------------------------
/assets/image/nature.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/assets/image/nature.jpg
--------------------------------------------------------------------------------
/assets/image/minimalist.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/assets/image/minimalist.jpg
--------------------------------------------------------------------------------
/fonts/Raleway-SemiBold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/fonts/Raleway-SemiBold.ttf
--------------------------------------------------------------------------------
/android/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | connection.project.dir=
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/android/app/.settings/org.eclipse.buildship.core.prefs:
--------------------------------------------------------------------------------
1 | connection.project.dir=..
2 | eclipse.preferences.version=1
3 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | android.enableJetifier=true
2 | android.useAndroidX=true
3 | org.gradle.jvmargs=-Xmx1536M
4 |
5 | android.enableR8=true
6 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/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/tsvillain/Wallbay/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/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/tsvillain/Wallbay/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tsvillain/Wallbay/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/tsvillain/Wallbay/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_test/flutter_test.dart';
2 |
3 | void main() {
4 | testWidgets('Initial Test', (WidgetTester test) async {
5 | //Build app
6 | });
7 | }
8 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/tsvillain/wallbay/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.tsvillain.wallbay
2 | import io.flutter.embedding.android.FlutterActivity;
3 |
4 | class MainActivity: FlutterActivity() {
5 | }
6 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.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-4.10.2-all.zip
7 |
--------------------------------------------------------------------------------
/.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: cc949a8e8b9cf394b9290a8e80f87af3e207dce5
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/app/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/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.
--------------------------------------------------------------------------------
/lib/Bloc/wallpaperEvent.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 |
3 | abstract class WallpaperEvent {}
4 |
5 | class GetAllWallpaper extends WallpaperEvent {}
6 |
7 | class SearchWallpaper extends WallpaperEvent {
8 | final String string;
9 | SearchWallpaper({@required this.string});
10 | }
11 |
12 | class CategoryWallpaper extends WallpaperEvent {
13 | final String category;
14 | CategoryWallpaper({@required this.category});
15 | }
16 |
--------------------------------------------------------------------------------
/lib/Model/wallpaper.dart:
--------------------------------------------------------------------------------
1 | class Wallpaper {
2 | String original;
3 | String portrait;
4 |
5 | Wallpaper({
6 | this.original,
7 | this.portrait,
8 | });
9 |
10 | Wallpaper.fromMap(Map map) {
11 | this.original = map["src"]["original"];
12 | this.portrait = map["src"]["portrait"];
13 | }
14 |
15 | toJson() {
16 | return {
17 | "original": this.original,
18 | "portrait": this.portrait,
19 | };
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/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/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/android/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | android
4 | Project android created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.buildship.core.gradleprojectbuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.buildship.core.gradleprojectnature
16 |
17 |
18 |
--------------------------------------------------------------------------------
/lib/const.dart:
--------------------------------------------------------------------------------
1 | ///Get API key from https://www.pexels.com/api/
2 | final String apiKey = "";
3 | final String editorChoiceEndPoint =
4 | "https://api.pexels.com/v1/search?query=wallpaper";
5 | final String perPageLimit = "&per_page=30";
6 | final String searchEndPoint = "https://api.pexels.com/v1/search?query=";
7 | final String message = "Check out this awesome wallpaper app:";
8 | final String url = "https://play.google.com/store/apps/details?id=";
9 | final String gitHubUrl = "https://github.com/tsvillain/Wallbay";
10 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/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 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/android/app/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | app
4 | Project app created by Buildship.
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.buildship.core.gradleprojectbuilder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.buildship.core.gradleprojectnature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.2.71'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | //classpath 'com.google.gms:google-services:4.2.0'
11 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | google()
18 | jcenter()
19 | }
20 | }
21 |
22 | rootProject.buildDir = '../build'
23 | subprojects {
24 | project.buildDir = "${rootProject.buildDir}/${project.name}"
25 | }
26 | subprojects {
27 | project.evaluationDependsOn(':app')
28 | }
29 |
30 | task clean(type: Delete) {
31 | delete rootProject.buildDir
32 | }
33 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | notifications:
2 | email:
3 | if: branch = master
4 | recipients:
5 | - tekeshwarsingh2000@gmail.com
6 | on_success: change
7 | on_failure: always
8 | os:
9 | - linux
10 | dist: bionic
11 | addons:
12 | apt:
13 | # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
14 | sources:
15 | - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
16 | packages:
17 | - libstdc++6
18 | - fonts-droid-fallback
19 | env:
20 | - FLUTTER_VERSION=stable
21 | # jobs:
22 | # allow_failures:
23 | # - env: FLUTTER_VERSION=beta
24 | before_script:
25 | - git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION
26 | - ./flutter/bin/flutter doctor
27 | script:
28 | - ./flutter/bin/flutter test
29 | cache:
30 | directories:
31 | - $HOME/.pub-cache
32 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/lib/Model/cateogry.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class Category {
4 | String name;
5 | AssetImage image;
6 |
7 | Category({
8 | @required this.name,
9 | @required this.image,
10 | });
11 | }
12 |
13 | List categoryList = [
14 | Category(
15 | image: AssetImage("assets/image/abstract.jpg"),
16 | name: "Abstract",
17 | ),
18 | Category(
19 | image: AssetImage("assets/image/car.jpg"),
20 | name: "Cars",
21 | ),
22 | Category(
23 | image: AssetImage("assets/image/city.jpg"),
24 | name: "City",
25 | ),
26 | Category(
27 | image: AssetImage("assets/image/minimalist.jpg"),
28 | name: "Minimalist",
29 | ),
30 | Category(
31 | image: AssetImage("assets/image/nature.jpg"),
32 | name: "Nature",
33 | ),
34 | Category(
35 | image: AssetImage("assets/image/space.jpg"),
36 | name: "Space",
37 | ),
38 | Category(
39 | image: AssetImage("assets/image/sport.jpg"),
40 | name: "Sport",
41 | ),
42 | ];
43 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Tekeshwar Singh
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/Bloc/wallpaperState.dart:
--------------------------------------------------------------------------------
1 | import 'package:wallbay/Model/wallpaper.dart';
2 |
3 | abstract class WallpaperState {}
4 |
5 | class WallpaperIsLoading extends WallpaperState {}
6 |
7 | class WallpaperIsLoaded extends WallpaperState {
8 | final List _wallpaper;
9 | WallpaperIsLoaded(this._wallpaper);
10 | List get getWallpaper => _wallpaper;
11 | }
12 |
13 | class WallpaperIsNotLoaded extends WallpaperState {}
14 |
15 | class SearchWallpaperNotSearched extends WallpaperState {}
16 |
17 | class SearchWallpaperIsLoading extends WallpaperState {}
18 |
19 | class SearchWallpaperIsNotLoaded extends WallpaperState {}
20 |
21 | class SearchWallpaperIsLoaded extends WallpaperState {
22 | final List _wallpaper;
23 | SearchWallpaperIsLoaded(this._wallpaper);
24 | List get getSearchWallpaper => _wallpaper;
25 | }
26 |
27 | class CategoryWallpaperNotSearched extends WallpaperState {}
28 |
29 | class CategoryWallpaperIsLoading extends WallpaperState {}
30 |
31 | class CategoryWallpaperIsLoaded extends WallpaperState {
32 | final List _wallpaper;
33 | CategoryWallpaperIsLoaded(this._wallpaper);
34 | List get getCategoryWallpaper => _wallpaper;
35 | }
36 |
37 | class CategoryWallpaperIsNotLoaded extends WallpaperState {}
38 |
--------------------------------------------------------------------------------
/lib/Bloc/wallpaperBloc.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter_bloc/flutter_bloc.dart';
4 | import 'package:wallbay/Bloc/wallpaperEvent.dart';
5 | import 'package:wallbay/Bloc/wallpaperState.dart';
6 | import 'package:http/http.dart' as http;
7 | import 'package:wallbay/Model/wallpaper.dart';
8 | import 'package:wallbay/const.dart';
9 |
10 | class WallpaperBloc extends Bloc {
11 | @override
12 | get initialState => WallpaperIsLoading();
13 | List _wallpaper = List();
14 |
15 | @override
16 | Stream mapEventToState(WallpaperEvent event) async* {
17 | if (event is GetAllWallpaper) {
18 | yield WallpaperIsLoading();
19 | try {
20 | var response = await http
21 | .get(Uri.encodeFull(editorChoiceEndPoint + perPageLimit), headers: {
22 | "Accept": "application/json",
23 | "Authorization": "$apiKey"
24 | });
25 | var data = jsonDecode(response.body)["photos"];
26 | _wallpaper = List();
27 | for (var i = 0; i < data.length; i++) {
28 | _wallpaper.add(Wallpaper.fromMap(data[i]));
29 | }
30 | yield WallpaperIsLoaded(_wallpaper);
31 | } catch (_) {
32 | yield WallpaperIsNotLoaded();
33 | }
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/lib/Bloc/searchWallpaperBloc.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:wallbay/Bloc/wallpaperEvent.dart';
4 | import 'package:wallbay/Bloc/wallpaperState.dart';
5 | import 'package:wallbay/Model/wallpaper.dart';
6 | import 'package:wallbay/const.dart';
7 | import 'package:http/http.dart' as http;
8 |
9 | class SearchWallpaperBloc extends Bloc {
10 | List _searchWallpaper = List();
11 |
12 | @override
13 | WallpaperState get initialState => SearchWallpaperIsLoading();
14 |
15 | @override
16 | Stream mapEventToState(WallpaperEvent event) async* {
17 | if (event is SearchWallpaper) {
18 | yield SearchWallpaperIsLoading();
19 | try {
20 | var response = await http.get(
21 | Uri.encodeFull(searchEndPoint + event.string + perPageLimit),
22 | headers: {
23 | "Accept": "application/json",
24 | "Authorization": "$apiKey"
25 | });
26 | var data = jsonDecode(response.body)["photos"];
27 | _searchWallpaper = List();
28 | for (var i = 0; i < data.length; i++) {
29 | _searchWallpaper.add(Wallpaper.fromMap(data[i]));
30 | }
31 | yield SearchWallpaperIsLoaded(_searchWallpaper);
32 | } catch (_) {
33 | yield SearchWallpaperIsNotLoaded();
34 | }
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/lib/Bloc/categoryWallpaperBloc.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:flutter_bloc/flutter_bloc.dart';
4 | import 'package:wallbay/Bloc/wallpaperEvent.dart';
5 | import 'package:wallbay/Bloc/wallpaperState.dart';
6 | import 'package:wallbay/Model/wallpaper.dart';
7 | import 'package:http/http.dart' as http;
8 | import 'package:wallbay/const.dart';
9 |
10 | class CategoryWallpaperBloc extends Bloc {
11 | List _categoryWallpaper = List();
12 | @override
13 | WallpaperState get initialState => CategoryWallpaperIsLoading();
14 |
15 | @override
16 | Stream mapEventToState(WallpaperEvent event) async* {
17 | if (event is CategoryWallpaper) {
18 | yield CategoryWallpaperIsLoading();
19 | try {
20 | var response = await http.get(
21 | Uri.encodeFull(searchEndPoint + event.category + perPageLimit),
22 | headers: {
23 | "Accept": "application/json",
24 | "Authorization": "$apiKey"
25 | });
26 | var data = jsonDecode(response.body)["photos"];
27 | _categoryWallpaper = List();
28 | for (var i = 0; i < data.length; i++) {
29 | _categoryWallpaper.add(Wallpaper.fromMap(data[i]));
30 | }
31 | yield CategoryWallpaperIsLoaded(_categoryWallpaper);
32 | } catch (_) {
33 | yield CategoryWallpaperIsNotLoaded();
34 | }
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | wallbay
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 |
--------------------------------------------------------------------------------
/.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 | .dart_tool/
26 | .flutter-plugins
27 | .packages
28 | .pub-cache/
29 | .pub/
30 | /build/
31 |
32 | # Android related
33 | **/android/**/gradle-wrapper.jar
34 | **/android/.gradle
35 | **/android/captures/
36 | **/android/gradlew
37 | **/android/gradlew.bat
38 | **/android/local.properties
39 | **/android/**/GeneratedPluginRegistrant.java
40 |
41 | # iOS/XCode related
42 | **/ios/**/*.mode1v3
43 | **/ios/**/*.mode2v3
44 | **/ios/**/*.moved-aside
45 | **/ios/**/*.pbxuser
46 | **/ios/**/*.perspectivev3
47 | **/ios/**/*sync/
48 | **/ios/**/.sconsign.dblite
49 | **/ios/**/.tags*
50 | **/ios/**/.vagrant/
51 | **/ios/**/DerivedData/
52 | **/ios/**/Icon?
53 | **/ios/**/Pods/
54 | **/ios/**/.symlinks/
55 | **/ios/**/profile
56 | **/ios/**/xcuserdata
57 | **/ios/.generated/
58 | **/ios/Flutter/App.framework
59 | **/ios/Flutter/Flutter.framework
60 | **/ios/Flutter/Generated.xcconfig
61 | **/ios/Flutter/app.flx
62 | **/ios/Flutter/app.zip
63 | **/ios/Flutter/flutter_assets/
64 | **/ios/Flutter/flutter_export_environment.sh
65 | **/ios/ServiceDefinitions.json
66 | **/ios/Runner/GeneratedPluginRegistrant.*
67 |
68 | # Exceptions to above rules.
69 | !**/ios/**/default.mode1v3
70 | !**/ios/**/default.mode2v3
71 | !**/ios/**/default.pbxuser
72 | !**/ios/**/default.perspectivev3
73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
74 |
--------------------------------------------------------------------------------
/lib/Screens/Setting.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:package_info/package_info.dart';
3 | import 'package:share/share.dart';
4 | import 'package:url_launcher/url_launcher.dart';
5 | import 'package:wallbay/const.dart';
6 |
7 | class Setting extends StatefulWidget {
8 | @override
9 | _SettingState createState() => _SettingState();
10 | }
11 |
12 | class _SettingState extends State {
13 | String _packageName;
14 | String _version;
15 | @override
16 | void initState() {
17 | PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
18 | _packageName = packageInfo.packageName;
19 | _version = packageInfo.version;
20 | });
21 | super.initState();
22 | }
23 |
24 | @override
25 | Widget build(BuildContext context) {
26 | return Scaffold(
27 | appBar: AppBar(
28 | title: Text("About"),
29 | ),
30 | body: Column(
31 | children: [
32 | ListTile(
33 | title: Text("Recommend"),
34 | subtitle: Text("Share this app with your friends and family."),
35 | onTap: () {
36 | Share.share(
37 | "$message\n${url + _packageName}",
38 | );
39 | },
40 | ),
41 | ListTile(
42 | title: Text("Source Code"),
43 | subtitle: Text("Find Source Code on GitHub."),
44 | onTap: () => launch("$gitHubUrl"),
45 | ),
46 | ListTile(
47 | title: Text("Rate App"),
48 | subtitle: Text("Leave a review on the Google Play Store."),
49 | onTap: () => launch(url + _packageName),
50 | ),
51 | ListTile(
52 | title: Text("App Version"),
53 | subtitle: Text("${_version ?? "1.0.0"} "),
54 | )
55 | ],
56 | ),
57 | );
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Wallbay 
2 |
3 | Wallpaper App developed in Flutter using [Pexels API](https://www.pexels.com/api/)
4 |
5 |
6 |
7 | ## Packages Used in this Application:
8 | * data_connection_checker: ^0.3.4
9 | * http: ^0.12.0+2
10 | * path_provider: ^1.4.0
11 | * dio: ^3.0.3
12 | * share: ^0.6.3+1
13 | * wallpaper_manager: ^1.0.10
14 | * easy_permission_validator: ^1.0.6
15 | * flutter_bloc: ^4.0.0
16 | * equatable: ^1.1.1
17 | * google_nav_bar: ^2.2.0
18 | * url_launcher: ^5.4.10
19 | * package_info: ^0.4.1
20 | * getwidget: ^1.2.4
21 | * fluttertoast: ^7.1.6
22 |
23 | ## Show some love ⭐ Star this Repo.
24 | [](https://github.com/tsvillain/Wallbay) [](https://github.com/tsvillain/Wallbay/fork)
25 |
26 | # Pull Requests
27 |
28 | I welcome and encourage all pull requests. I usually take 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:
29 |
30 | 1. Match the document style as closely as possible.
31 | 2. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
32 | 3. Check for existing [issues](https://github.com/tsvillain/Wallbay/issues) first, before filing an issue.
33 |
34 | ### Created & Maintained By
35 |
36 | [Tekeshwar Singh](https://github.com/tsvillain) ([@tsvillain](https://www.instagram.com/tsvillain))
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 28
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | lintOptions {
36 | disable 'InvalidPackage'
37 | }
38 |
39 | defaultConfig {
40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41 | applicationId "com.tsvillain.wallbay"
42 | minSdkVersion 24
43 | targetSdkVersion 28
44 | versionCode flutterVersionCode.toInteger()
45 | versionName flutterVersionName
46 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
47 | }
48 |
49 | buildTypes {
50 | release {
51 | signingConfig signingConfigs.debug
52 | }
53 | }
54 | }
55 |
56 | flutter {
57 | source '../..'
58 | }
59 |
60 | dependencies {
61 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
62 | testImplementation 'junit:junit:4.12'
63 | androidTestImplementation 'androidx.test.ext:junit:1.1.1'
64 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
65 | }
66 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_bloc/flutter_bloc.dart';
3 | import 'package:wallbay/Bloc/categoryWallpaperBloc.dart';
4 | import 'package:wallbay/Bloc/searchWallpaperBloc.dart';
5 | import 'package:wallbay/Bloc/wallpaperBloc.dart';
6 | import 'package:wallbay/Screens/HomePage.dart';
7 | import 'package:flutter/services.dart';
8 |
9 | void main() {
10 | WidgetsFlutterBinding.ensureInitialized();
11 |
12 | SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark.copyWith(
13 | statusBarColor: Colors.transparent,
14 | ));
15 | SystemChrome.setPreferredOrientations(
16 | [DeviceOrientation.portraitDown, DeviceOrientation.portraitUp],
17 | );
18 | runApp(MyApp());
19 | }
20 |
21 | class MyApp extends StatelessWidget {
22 | @override
23 | Widget build(BuildContext context) {
24 | return BlocProvider(
25 | create: (context) => WallpaperBloc(),
26 | child: BlocProvider(
27 | create: (context) => SearchWallpaperBloc(),
28 | child: BlocProvider(
29 | create: (context) => CategoryWallpaperBloc(),
30 | child: MaterialApp(
31 | debugShowCheckedModeBanner: false,
32 | title: 'Wallbay',
33 | theme: ThemeData(
34 | brightness: Brightness.light,
35 | cardColor: Colors.white38,
36 | accentColor: Colors.black,
37 | cursorColor: Colors.black,
38 | dialogBackgroundColor: Colors.white,
39 | primaryColor: Colors.white),
40 | // theme: ThemeData(
41 | // brightness: Brightness.light,
42 | // cardColor: Colors.white38,
43 | // accentColor: Colors.black,
44 | // cursorColor: Colors.black,
45 | // dialogBackgroundColor: Colors.white,
46 | // primaryColor: Colors.white),
47 | // darkTheme: ThemeData(
48 | // brightness: Brightness.dark,
49 | // accentColor: Colors.white,
50 | // cursorColor: Colors.white,
51 | // primaryColor: Colors.black,
52 | // dialogBackgroundColor: Colors.black,
53 | // cardColor: Colors.white38),
54 | home: MyHomePage('Wallbay'),
55 | ),
56 | ),
57 | ),
58 | );
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
10 |
11 |
12 |
15 |
22 |
26 |
27 |
30 |
31 |
32 |
36 |
37 |
38 |
39 |
40 |
41 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/lib/Screens/CategoryList.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:wallbay/Model/cateogry.dart';
4 | import 'package:wallbay/Screens/Category.dart' as category;
5 |
6 | class CategoryList extends StatefulWidget {
7 | @override
8 | _CategoryListState createState() => _CategoryListState();
9 | }
10 |
11 | class _CategoryListState extends State
12 | with AutomaticKeepAliveClientMixin {
13 | @override
14 | Widget build(BuildContext context) {
15 | super.build(context);
16 | return ListView.builder(
17 | itemCount: categoryList.length,
18 | itemBuilder: (context, index) {
19 | return Padding(
20 | padding: const EdgeInsets.all(8.0),
21 | child: InkWell(
22 | onTap: () {
23 | Navigator.push(
24 | context,
25 | MaterialPageRoute(
26 | builder: (context) => category.Category(
27 | category: categoryList[index].name)));
28 | },
29 | child: Stack(
30 | children: [
31 | Container(
32 | height: MediaQuery.of(context).size.height * 0.2,
33 | decoration: BoxDecoration(
34 | borderRadius: BorderRadius.circular(20),
35 | image: DecorationImage(
36 | image: categoryList[index].image,
37 | fit: BoxFit.cover,
38 | ),
39 | ),
40 | ),
41 | Container(
42 | height: MediaQuery.of(context).size.height * 0.2,
43 | width: MediaQuery.of(context).size.width * 0.7,
44 | decoration: BoxDecoration(
45 | borderRadius: BorderRadius.circular(20),
46 | gradient: LinearGradient(
47 | colors: [
48 | Colors.black54,
49 | Colors.transparent,
50 | ],
51 | ),
52 | ),
53 | ),
54 | Positioned(
55 | left: 20,
56 | height: MediaQuery.of(context).size.height * 0.2,
57 | child: Center(
58 | child: Text(
59 | categoryList[index].name.toUpperCase(),
60 | style: TextStyle(
61 | fontSize: 28,
62 | fontWeight: FontWeight.bold,
63 | color: Colors.white,
64 | fontFamily: 'Raleway',
65 | ),
66 | ),
67 | ),
68 | ),
69 | ],
70 | ),
71 | ),
72 | );
73 | });
74 | }
75 |
76 | @override
77 | bool get wantKeepAlive => true;
78 | }
79 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: wallbay
2 | description: Wallpaper Application.
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.1.0 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 | cupertino_icons: ^0.1.2
23 | data_connection_checker: ^0.3.4
24 | dio: ^3.0.3
25 | easy_permission_validator: ^1.0.6
26 | equatable: ^1.1.1
27 | flutter_bloc: ^4.0.0
28 | fluttertoast: ^7.1.6
29 | getwidget: ^1.2.4
30 | google_nav_bar: ^2.2.0
31 | http: ^0.12.0+2
32 | package_info: ^0.4.1
33 | path_provider: ^1.4.0
34 | share: ^0.6.3+1
35 | url_launcher: ^5.4.10
36 | wallpaper_manager: ^1.0.10
37 |
38 | dev_dependencies:
39 | flutter_test:
40 | sdk: flutter
41 | flutter_launcher_icons: ^0.7.3
42 | flutter_icons:
43 | android: true
44 | ios: true
45 | image_path: "image/icon.png"
46 |
47 | # For information on the generic Dart part of this file, see the
48 | # following page: https://dart.dev/tools/pub/pubspec
49 | # The following section is specific to Flutter.
50 | flutter:
51 | # The following line ensures that the Material Icons font is
52 | # included with your application, so that you can use the icons in
53 | # the material Icons class.
54 | uses-material-design: true
55 |
56 | # To add assets to your application, add an assets section, like this:
57 | assets:
58 | - assets/image/
59 | # - images/a_dot_ham.jpeg
60 | # An image asset can refer to one or more resolution-specific "variants", see
61 | # https://flutter.dev/assets-and-images/#resolution-aware.
62 | # For details regarding adding assets from package dependencies, see
63 | # https://flutter.dev/assets-and-images/#from-packages
64 | # To add custom fonts to your application, add a fonts section here,
65 | # in this "flutter" section. Each entry in this list should have a
66 | # "family" key with the font family name, and a "fonts" key with a
67 | # list giving the asset and other descriptors for the font. For
68 | # example:
69 | fonts:
70 | - family: Raleway
71 | fonts:
72 | - asset: fonts/Raleway-SemiBold.ttf
73 | # - asset: fonts/Schyler-Italic.ttf
74 | # style: italic
75 | # - family: Trajan Pro
76 | # fonts:
77 | # - asset: fonts/TrajanPro.ttf
78 | # - asset: fonts/TrajanPro_Bold.ttf
79 | # weight: 700
80 | #
81 | # For details regarding fonts from package dependencies,
82 | # see https://flutter.dev/custom-fonts/#from-packages
83 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/.flutter-plugins-dependencies:
--------------------------------------------------------------------------------
1 | {"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"fluttertoast","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.6\\\\","dependencies":[]},{"name":"package_info","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info-0.4.1\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.11\\\\","dependencies":[]},{"name":"permission_handler","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\permission_handler-4.4.0+hotfix.4\\\\","dependencies":[]},{"name":"share","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\share-0.6.4+3\\\\","dependencies":[]},{"name":"url_launcher","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher-5.5.0\\\\","dependencies":[]},{"name":"wallpaper_manager","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\wallpaper_manager-1.0.10\\\\","dependencies":[]}],"android":[{"name":"fluttertoast","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.6\\\\","dependencies":[]},{"name":"package_info","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info-0.4.1\\\\","dependencies":[]},{"name":"path_provider","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider-1.6.11\\\\","dependencies":[]},{"name":"permission_handler","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\permission_handler-4.4.0+hotfix.4\\\\","dependencies":[]},{"name":"share","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\share-0.6.4+3\\\\","dependencies":[]},{"name":"url_launcher","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher-5.5.0\\\\","dependencies":[]},{"name":"wallpaper_manager","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\wallpaper_manager-1.0.10\\\\","dependencies":[]}],"macos":[{"name":"package_info","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\package_info-0.4.1\\\\","dependencies":[]},{"name":"path_provider_macos","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_macos-0.0.4+3\\\\","dependencies":[]},{"name":"url_launcher_macos","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_macos-0.0.1+7\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-0.0.1+2\\\\","dependencies":[]},{"name":"url_launcher_linux","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_linux-0.0.1+1\\\\","dependencies":[]}],"windows":[],"web":[{"name":"fluttertoast","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\fluttertoast-7.1.6\\\\","dependencies":[]},{"name":"url_launcher_web","path":"C:\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\url_launcher_web-0.1.2\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"fluttertoast","dependencies":[]},{"name":"package_info","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"permission_handler","dependencies":[]},{"name":"share","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_web","url_launcher_linux","url_launcher_macos"]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"wallpaper_manager","dependencies":[]}],"date_created":"2021-01-27 20:58:07.298955","version":"1.22.5"}
--------------------------------------------------------------------------------
/lib/Screens/EditorChoice.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_bloc/flutter_bloc.dart';
4 | import 'package:wallbay/Bloc/wallpaperBloc.dart';
5 | import 'package:wallbay/Bloc/wallpaperState.dart';
6 | import 'package:wallbay/Model/wallpaper.dart';
7 | import 'package:wallbay/Screens/Detail.dart';
8 |
9 | class EditorChoice extends StatefulWidget {
10 | @override
11 | _EditorChoiceState createState() => _EditorChoiceState();
12 | }
13 |
14 | class _EditorChoiceState extends State
15 | with AutomaticKeepAliveClientMixin {
16 | int counter = 0;
17 | void openPage(Wallpaper wallpaper) {
18 | counter++;
19 | Navigator.push(
20 | context,
21 | CupertinoPageRoute(
22 | builder: (context) => Detail(
23 | wallpaper: wallpaper,
24 | ),
25 | ),
26 | );
27 | }
28 |
29 | Future showAd(Wallpaper wallpaper) async {
30 | counter = 0;
31 | Navigator.push(
32 | context,
33 | CupertinoPageRoute(
34 | builder: (context) => Detail(
35 | wallpaper: wallpaper,
36 | ),
37 | ),
38 | );
39 | }
40 |
41 | @override
42 | Widget build(BuildContext context) {
43 | super.build(context);
44 | var size = MediaQuery.of(context).size;
45 | final double itemHeight = (size.height - kToolbarHeight) / 2;
46 | final double itemWidth = (size.width / 2);
47 | return BlocBuilder(
48 | builder: (BuildContext context, state) {
49 | if (state is WallpaperIsLoading) {
50 | return Center(
51 | child: CircularProgressIndicator(),
52 | );
53 | } else if (state is WallpaperIsLoaded) {
54 | return GridView.builder(
55 | padding: EdgeInsets.all(5),
56 | itemCount: state.getWallpaper.length,
57 | scrollDirection: Axis.vertical,
58 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
59 | crossAxisCount: 2,
60 | mainAxisSpacing: 5,
61 | crossAxisSpacing: 5,
62 | childAspectRatio: (itemWidth / itemHeight)),
63 | itemBuilder: (BuildContext context, int index) {
64 | return Container(
65 | child: GestureDetector(
66 | onTap: () {
67 | counter == 2
68 | ? showAd(state.getWallpaper[index])
69 | : openPage(state.getWallpaper[index]);
70 | },
71 | child: Card(
72 | semanticContainer: true,
73 | clipBehavior: Clip.antiAliasWithSaveLayer,
74 | shape: RoundedRectangleBorder(
75 | borderRadius: BorderRadius.circular(10),
76 | ),
77 | child: Hero(
78 | tag: state.getWallpaper[index].portrait,
79 | child: FadeInImage.assetNetwork(
80 | image: state.getWallpaper[index].portrait,
81 | fit: BoxFit.cover,
82 | placeholder: "assets/image/abstract.jpg",
83 | imageScale: 1,
84 | ),
85 | ),
86 | ),
87 | ),
88 | );
89 | },
90 | );
91 | } else if (state is WallpaperIsNotLoaded) {
92 | return Center(
93 | child: Text("Error Loading Wallpapers."),
94 | );
95 | } else {
96 | return Text("WentWorng.");
97 | }
98 | },
99 | );
100 | }
101 |
102 | @override
103 | bool get wantKeepAlive => true;
104 | }
105 |
--------------------------------------------------------------------------------
/lib/Screens/Category.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_bloc/flutter_bloc.dart';
4 | import 'package:wallbay/Bloc/categoryWallpaperBloc.dart';
5 | import 'package:wallbay/Bloc/wallpaperEvent.dart';
6 | import 'package:wallbay/Bloc/wallpaperState.dart';
7 | import 'package:wallbay/Model/wallpaper.dart';
8 | import 'package:wallbay/Screens/Detail.dart';
9 |
10 | class Category extends StatefulWidget {
11 | final String category;
12 | Category({@required this.category});
13 | @override
14 | _CategoryState createState() => _CategoryState();
15 | }
16 |
17 | class _CategoryState extends State {
18 | CategoryWallpaperBloc categoryWallpaperBloc;
19 | int counter = 0;
20 | void openPage(Wallpaper wallpaper) {
21 | counter++;
22 | Navigator.push(
23 | context,
24 | CupertinoPageRoute(
25 | builder: (context) => Detail(
26 | wallpaper: wallpaper,
27 | ),
28 | ),
29 | );
30 | }
31 |
32 | void showAd(Wallpaper wallpaper) {
33 | print("inside");
34 | counter = 0;
35 | Navigator.push(
36 | context,
37 | CupertinoPageRoute(
38 | builder: (context) => Detail(
39 | wallpaper: wallpaper,
40 | ),
41 | ),
42 | );
43 | }
44 |
45 | @override
46 | Widget build(BuildContext context) {
47 | categoryWallpaperBloc = BlocProvider.of(context);
48 | categoryWallpaperBloc.add(CategoryWallpaper(category: widget.category));
49 | var size = MediaQuery.of(context).size;
50 | final double itemHeight = (size.height - kToolbarHeight) / 2;
51 | final double itemWidth = (size.width / 2);
52 | return Scaffold(
53 | appBar: AppBar(
54 | backgroundColor: Colors.transparent,
55 | iconTheme: IconThemeData(color: Colors.black),
56 | elevation: 0.0,
57 | title: Text(
58 | widget.category,
59 | style: TextStyle(
60 | fontFamily: 'Raleway',
61 | color: Colors.black,
62 | ),
63 | ),
64 | centerTitle: true,
65 | ),
66 | body: BlocBuilder(
67 | builder: (BuildContext context, state) {
68 | if (state is CategoryWallpaperIsLoading) {
69 | return Center(
70 | child: CircularProgressIndicator(),
71 | );
72 | } else if (state is CategoryWallpaperIsLoaded) {
73 | return GridView.builder(
74 | padding: EdgeInsets.all(5),
75 | itemCount: state.getCategoryWallpaper.length,
76 | scrollDirection: Axis.vertical,
77 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
78 | crossAxisCount: 2,
79 | mainAxisSpacing: 5,
80 | crossAxisSpacing: 5,
81 | childAspectRatio: (itemWidth / itemHeight)),
82 | itemBuilder: (BuildContext context, int index) {
83 | return Container(
84 | child: GestureDetector(
85 | onTap: () {
86 | counter == 2
87 | ? showAd(state.getCategoryWallpaper[index])
88 | : openPage(state.getCategoryWallpaper[index]);
89 | },
90 | child: Card(
91 | semanticContainer: true,
92 | clipBehavior: Clip.antiAliasWithSaveLayer,
93 | shape: RoundedRectangleBorder(
94 | borderRadius: BorderRadius.circular(10),
95 | ),
96 | child: Hero(
97 | tag: state.getCategoryWallpaper[index].portrait,
98 | child: FadeInImage.assetNetwork(
99 | image: state.getCategoryWallpaper[index].portrait,
100 | fit: BoxFit.cover,
101 | placeholder: "assets/image/abstract.jpg",
102 | imageScale: 1,
103 | ),
104 | ),
105 | ),
106 | ),
107 | );
108 | },
109 | );
110 | } else if (state is CategoryWallpaperIsNotLoaded) {
111 | return Center(
112 | child: Text("Error Loading Wallpapers."),
113 | );
114 | } else {
115 | return Text("WentWorng.");
116 | }
117 | },
118 | ),
119 | );
120 | }
121 | }
122 |
--------------------------------------------------------------------------------
/lib/Screens/HomePage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_bloc/flutter_bloc.dart';
4 | import 'package:google_nav_bar/google_nav_bar.dart';
5 | import 'package:wallbay/Bloc/wallpaperBloc.dart';
6 | import 'package:wallbay/Bloc/wallpaperEvent.dart';
7 | import 'package:wallbay/Screens/CategoryList.dart' as categoryScreen;
8 | import 'package:wallbay/Screens/EditorChoice.dart';
9 | import 'package:wallbay/Screens/Search.dart';
10 | import 'package:wallbay/Screens/Setting.dart';
11 |
12 | class MyHomePage extends StatefulWidget {
13 | final String title;
14 | MyHomePage(this.title);
15 | @override
16 | _MyHomePageState createState() => _MyHomePageState();
17 | }
18 |
19 | class _MyHomePageState extends State {
20 | WallpaperBloc _wallpaperBloc;
21 | int _selectedIndex = 0;
22 | PageController controller = PageController();
23 | List tabs = new List();
24 | @override
25 | void initState() {
26 | super.initState();
27 | var padding = EdgeInsets.symmetric(horizontal: 18, vertical: 5);
28 | double gap = 10;
29 |
30 | tabs.add(GButton(
31 | gap: gap,
32 | iconActiveColor: Colors.purple,
33 | iconColor: Colors.black,
34 | textColor: Colors.purple,
35 | backgroundColor: Colors.purple.withOpacity(.2),
36 | iconSize: 24,
37 | padding: padding,
38 | icon: Icons.verified_user,
39 | text: "Editor's Choice",
40 | ));
41 |
42 | tabs.add(GButton(
43 | gap: gap,
44 | iconActiveColor: Colors.teal,
45 | iconColor: Colors.black,
46 | textColor: Colors.teal,
47 | backgroundColor: Colors.teal.withOpacity(.2),
48 | iconSize: 24,
49 | padding: padding,
50 | icon: Icons.category,
51 | text: 'Category',
52 | ));
53 | }
54 |
55 | @override
56 | Widget build(BuildContext context) {
57 | _wallpaperBloc = BlocProvider.of(context);
58 | _wallpaperBloc.add(GetAllWallpaper());
59 | return Scaffold(
60 | extendBody: true,
61 | appBar: AppBar(
62 | backgroundColor: Colors.transparent,
63 | elevation: 0.0,
64 | title: Text(
65 | widget.title,
66 | style: TextStyle(
67 | fontFamily: 'Raleway',
68 | color: Colors.black,
69 | ),
70 | ),
71 | centerTitle: true,
72 | actions: [
73 | IconButton(
74 | icon: Icon(
75 | Icons.info_outline,
76 | color: Colors.black,
77 | ),
78 | onPressed: () {
79 | Navigator.push(
80 | context, CupertinoPageRoute(builder: (context) => Setting()));
81 | },
82 | )
83 | ],
84 | ),
85 | body: PageView.builder(
86 | onPageChanged: (page) {
87 | setState(() {
88 | _selectedIndex = page;
89 | });
90 | },
91 | controller: controller,
92 | itemBuilder: (BuildContext context, int index) {
93 | return getScreen(index);
94 | },
95 | itemCount: tabs.length,
96 | ),
97 | bottomNavigationBar: SafeArea(
98 | child: Row(
99 | mainAxisSize: MainAxisSize.max,
100 | mainAxisAlignment: MainAxisAlignment.spaceEvenly,
101 | children: [
102 | Container(
103 | margin: EdgeInsets.symmetric(horizontal: 20, vertical: 20),
104 | decoration: BoxDecoration(
105 | color: Colors.white,
106 | borderRadius: BorderRadius.all(Radius.circular(100)),
107 | boxShadow: [
108 | BoxShadow(
109 | spreadRadius: -10,
110 | blurRadius: 60,
111 | color: Colors.black.withOpacity(.20),
112 | offset: Offset(0, 15))
113 | ]),
114 | child: Padding(
115 | padding:
116 | const EdgeInsets.symmetric(horizontal: 5.0, vertical: 5),
117 | child: GNav(
118 | tabs: tabs,
119 | selectedIndex: _selectedIndex,
120 | onTabChange: (index) {
121 | setState(() {
122 | _selectedIndex = index;
123 | });
124 | controller.jumpToPage(index);
125 | }),
126 | ),
127 | ),
128 | Spacer(),
129 | Padding(
130 | padding: EdgeInsets.only(right: 20, top: 20, bottom: 20),
131 | child: FloatingActionButton(
132 | backgroundColor: Colors.white,
133 | child: Icon(
134 | Icons.search,
135 | color: Colors.black,
136 | ),
137 | onPressed: () {
138 | Navigator.push(context,
139 | CupertinoPageRoute(builder: (context) => Search()));
140 | },
141 | elevation: 3.0,
142 | ),
143 | ),
144 | ],
145 | ),
146 | ),
147 | );
148 | }
149 | }
150 |
151 | getScreen(int selectedIndex) {
152 | if (selectedIndex == 0) {
153 | return EditorChoice();
154 | } else if (selectedIndex == 1) {
155 | return categoryScreen.CategoryList();
156 | }
157 | }
158 |
--------------------------------------------------------------------------------
/lib/Screens/Search.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_bloc/flutter_bloc.dart';
4 | import 'package:wallbay/Bloc/searchWallpaperBloc.dart';
5 | import 'package:wallbay/Bloc/wallpaperEvent.dart';
6 | import 'package:wallbay/Bloc/wallpaperState.dart';
7 | import 'package:wallbay/Model/wallpaper.dart';
8 | import 'package:wallbay/Screens/Detail.dart';
9 |
10 | class Search extends StatefulWidget {
11 | @override
12 | _SearchState createState() => _SearchState();
13 | }
14 |
15 | class _SearchState extends State {
16 | int counter = 0;
17 | SearchWallpaperBloc _wallpaperBloc;
18 | TextEditingController searchController = TextEditingController();
19 | final FocusNode _focusNode = FocusNode();
20 | Icon actionIcon = Icon(Icons.search);
21 | @override
22 | Widget build(BuildContext context) {
23 | _wallpaperBloc = BlocProvider.of(context);
24 | return Scaffold(
25 | appBar: AppBar(
26 | backgroundColor: Colors.transparent,
27 | actionsIconTheme: IconThemeData(color: Colors.black),
28 | iconTheme: IconThemeData(color: Colors.black),
29 | elevation: 0,
30 | title: TextField(
31 | autofocus: true,
32 | focusNode: _focusNode,
33 | controller: searchController,
34 | decoration: InputDecoration(hintText: "Search.."),
35 | keyboardType: TextInputType.text,
36 | textInputAction: TextInputAction.search,
37 | onEditingComplete: () {
38 | FocusScope.of(context).requestFocus(FocusNode());
39 | _wallpaperBloc.add(SearchWallpaper(string: searchController.text));
40 | },
41 | ),
42 | actions: [
43 | Padding(
44 | padding: const EdgeInsets.all(8.0),
45 | child: IconButton(
46 | alignment: Alignment.centerRight,
47 | onPressed: () {
48 | FocusScope.of(context).requestFocus(FocusNode());
49 | _wallpaperBloc
50 | .add(SearchWallpaper(string: searchController.text));
51 | },
52 | icon: Icon(Icons.search),
53 | ),
54 | ),
55 | ],
56 | ),
57 | body: _data(context),
58 | );
59 | }
60 |
61 | void openPage(Wallpaper wallpaper) {
62 | counter++;
63 | Navigator.push(
64 | context,
65 | CupertinoPageRoute(
66 | builder: (context) => Detail(
67 | wallpaper: wallpaper,
68 | ),
69 | ),
70 | );
71 | }
72 |
73 | void showAd(Wallpaper wallpaper) {
74 | //TODO add Ad
75 | counter = 0;
76 | Navigator.push(
77 | context,
78 | CupertinoPageRoute(
79 | builder: (context) => Detail(
80 | wallpaper: wallpaper,
81 | ),
82 | ),
83 | );
84 | }
85 |
86 | Widget _data(BuildContext context) {
87 | var size = MediaQuery.of(context).size;
88 | final double itemHeight = (size.height - kToolbarHeight) / 2;
89 | final double itemWidth = (size.width / 2);
90 | return BlocBuilder(
91 | builder: (BuildContext context, WallpaperState state) {
92 | if (state is SearchWallpaperNotSearched) {
93 | return Center(
94 | child: Text("Search Wallpaper"),
95 | );
96 | } else if (state is SearchWallpaperIsLoading) {
97 | return Center(
98 | child: CircularProgressIndicator(),
99 | );
100 | } else if (state is SearchWallpaperIsLoaded) {
101 | return GridView.builder(
102 | padding: EdgeInsets.all(5),
103 | itemCount: state.getSearchWallpaper.length,
104 | scrollDirection: Axis.vertical,
105 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
106 | crossAxisCount: 2,
107 | mainAxisSpacing: 5,
108 | crossAxisSpacing: 5,
109 | childAspectRatio: (itemWidth / itemHeight)),
110 | itemBuilder: (BuildContext context, int index) {
111 | return Container(
112 | child: GestureDetector(
113 | onTap: () {
114 | counter == 2
115 | ? showAd(state.getSearchWallpaper[index])
116 | : openPage(state.getSearchWallpaper[index]);
117 | },
118 | child: Card(
119 | semanticContainer: true,
120 | clipBehavior: Clip.antiAliasWithSaveLayer,
121 | shape: RoundedRectangleBorder(
122 | borderRadius: BorderRadius.circular(10),
123 | ),
124 | child: Hero(
125 | tag: state.getSearchWallpaper[index].portrait,
126 | child: FadeInImage.assetNetwork(
127 | image: state.getSearchWallpaper[index].portrait,
128 | fit: BoxFit.cover,
129 | placeholder: "image/abstract.jpg",
130 | imageScale: 1,
131 | ),
132 | ),
133 | ),
134 | ),
135 | );
136 | },
137 | );
138 | } else if (state is SearchWallpaperIsNotLoaded) {
139 | return Center(
140 | child: Text("Error Loading Wallpapers."),
141 | );
142 | } else {
143 | return Center(
144 | child: Text("Search Wallpaper"),
145 | );
146 | }
147 | },
148 | );
149 | }
150 | }
151 |
--------------------------------------------------------------------------------
/lib/Screens/Detail.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter/foundation.dart';
3 | import 'package:dio/dio.dart';
4 | import 'package:fluttertoast/fluttertoast.dart';
5 | import 'package:getwidget/components/button/gf_button.dart';
6 | import 'package:path_provider/path_provider.dart';
7 | import 'package:wallbay/Model/wallpaper.dart';
8 | import 'package:flutter/services.dart';
9 | import 'package:easy_permission_validator/easy_permission_validator.dart';
10 | import 'package:wallpaper_manager/wallpaper_manager.dart';
11 |
12 | class Detail extends StatefulWidget {
13 | final Wallpaper wallpaper;
14 | Detail({@required this.wallpaper});
15 |
16 | @override
17 | _DetailState createState() => _DetailState();
18 | }
19 |
20 | class _DetailState extends State {
21 | bool permission = false;
22 | bool downloadImage = false;
23 | String downPer = "0%";
24 | final String nAvail = "Not Available";
25 |
26 | _permissionRequest() async {
27 | final permissionValidator = EasyPermissionValidator(
28 | context: context,
29 | appName: 'Wallbay',
30 | );
31 | var result = await permissionValidator.storage();
32 | if (result) {
33 | setState(() {
34 | permission = true;
35 | setWallpaper();
36 | });
37 | }
38 | }
39 |
40 | @override
41 | Widget build(BuildContext context) {
42 | return Scaffold(
43 | body: Stack(children: [
44 | Hero(
45 | tag: widget.wallpaper.portrait,
46 | child: Container(
47 | height: MediaQuery.of(context).size.height,
48 | child: Image.network(
49 | widget.wallpaper.portrait,
50 | fit: BoxFit.cover,
51 | )),
52 | ),
53 | Positioned(
54 | child: AppBar(
55 | backgroundColor: Colors.transparent,
56 | elevation: 0,
57 | leading: IconButton(
58 | icon: Icon(
59 | Icons.arrow_back,
60 | color: Colors.black,
61 | ),
62 | onPressed: () {
63 | Navigator.pop(context);
64 | },
65 | ),
66 | ),
67 | ),
68 | Padding(
69 | padding: const EdgeInsets.all(20.0),
70 | child: Align(
71 | alignment: Alignment.bottomRight,
72 | child: downloadImage
73 | ? Container(
74 | margin: EdgeInsets.all(10),
75 | decoration: BoxDecoration(
76 | color: Colors.white60,
77 | borderRadius: BorderRadius.circular(50),
78 | ),
79 | child: Padding(
80 | padding: const EdgeInsets.all(18.0),
81 | child: Text(
82 | "Downloading.. $downPer",
83 | style: TextStyle(color: Colors.black),
84 | ),
85 | ),
86 | )
87 | : InkWell(
88 | onTap: () {
89 | if (permission == false) {
90 | print("Requesting Permission");
91 | _permissionRequest();
92 | } else {
93 | print("Permission Granted.");
94 | setWallpaper();
95 | }
96 | },
97 | child: Container(
98 | margin: EdgeInsets.all(10),
99 | decoration: BoxDecoration(
100 | color: Colors.white60,
101 | borderRadius: BorderRadius.circular(50),
102 | ),
103 | child: Padding(
104 | padding: const EdgeInsets.all(18.0),
105 | child: Text(
106 | "Set Wallpaper",
107 | style: TextStyle(color: Colors.black),
108 | ),
109 | ),
110 | ),
111 | ),
112 | ),
113 | ),
114 | ]),
115 | );
116 | }
117 |
118 | void setWallpaper() async {
119 | final dir = await getExternalStorageDirectory();
120 | print(dir);
121 | Dio dio = new Dio();
122 | dio.download(
123 | widget.wallpaper.original,
124 | "${dir.path}/wallbay.png",
125 | onReceiveProgress: (received, total) {
126 | if (total != -1) {
127 | String downloadingPer =
128 | ((received / total * 100).toStringAsFixed(0) + "%");
129 | setState(() {
130 | downPer = downloadingPer;
131 | });
132 | }
133 | setState(() {
134 | downloadImage = true;
135 | });
136 | },
137 | ).whenComplete(() {
138 | setState(() {
139 | downloadImage = false;
140 | });
141 | showModalBottomSheet(
142 | isDismissible: false,
143 | context: context,
144 | builder: (_) {
145 | return Container(
146 | margin: EdgeInsets.all(20),
147 | child: Column(
148 | mainAxisSize: MainAxisSize.min,
149 | children: [
150 | GFButton(
151 | onPressed: () {
152 | initPlatformState("${dir.path}/wallbay.png",
153 | WallpaperManager.HOME_SCREEN);
154 | Navigator.pop(context);
155 | },
156 | text: "HomeScreen",
157 | ),
158 | GFButton(
159 | onPressed: () {
160 | initPlatformState("${dir.path}/wallbay.png",
161 | WallpaperManager.LOCK_SCREEN);
162 | Navigator.pop(context);
163 | },
164 | text: "LockScreen",
165 | ),
166 | GFButton(
167 | onPressed: () {
168 | initPlatformState("${dir.path}/wallbay.png",
169 | WallpaperManager.BOTH_SCREENS);
170 | Navigator.pop(context);
171 | },
172 | text: "Both",
173 | ),
174 | ],
175 | ),
176 | );
177 | });
178 | });
179 | }
180 |
181 | Future initPlatformState(String path, int location) async {
182 | try {
183 | await WallpaperManager.setWallpaperFromFile(path, location);
184 | Fluttertoast.showToast(
185 | msg: 'Wallpaper Applied.', toastLength: Toast.LENGTH_SHORT);
186 | } on PlatformException {
187 | Fluttertoast.showToast(
188 | msg: 'Please Try Again Later.', toastLength: Toast.LENGTH_SHORT);
189 | print("Platform exception");
190 | }
191 | if (!mounted) return;
192 | }
193 | }
194 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | archive:
5 | dependency: transitive
6 | description:
7 | name: archive
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.0.13"
11 | args:
12 | dependency: transitive
13 | description:
14 | name: args
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.6.0"
18 | async:
19 | dependency: transitive
20 | description:
21 | name: async
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.5.0-nullsafety.1"
25 | bloc:
26 | dependency: transitive
27 | description:
28 | name: bloc
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "4.0.0"
32 | boolean_selector:
33 | dependency: transitive
34 | description:
35 | name: boolean_selector
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "2.1.0-nullsafety.1"
39 | characters:
40 | dependency: transitive
41 | description:
42 | name: characters
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.1.0-nullsafety.3"
46 | charcode:
47 | dependency: transitive
48 | description:
49 | name: charcode
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.2.0-nullsafety.1"
53 | clock:
54 | dependency: transitive
55 | description:
56 | name: clock
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.1.0-nullsafety.1"
60 | collection:
61 | dependency: transitive
62 | description:
63 | name: collection
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.15.0-nullsafety.3"
67 | convert:
68 | dependency: transitive
69 | description:
70 | name: convert
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "2.1.1"
74 | crypto:
75 | dependency: transitive
76 | description:
77 | name: crypto
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "2.1.5"
81 | cupertino_icons:
82 | dependency: "direct main"
83 | description:
84 | name: cupertino_icons
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "0.1.3"
88 | data_connection_checker:
89 | dependency: "direct main"
90 | description:
91 | name: data_connection_checker
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "0.3.4"
95 | dio:
96 | dependency: "direct main"
97 | description:
98 | name: dio
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "3.0.9"
102 | easy_permission_validator:
103 | dependency: "direct main"
104 | description:
105 | name: easy_permission_validator
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "1.0.8"
109 | equatable:
110 | dependency: "direct main"
111 | description:
112 | name: equatable
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "1.2.2"
116 | fake_async:
117 | dependency: transitive
118 | description:
119 | name: fake_async
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "1.2.0-nullsafety.1"
123 | file:
124 | dependency: transitive
125 | description:
126 | name: file
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "5.2.1"
130 | flutter:
131 | dependency: "direct main"
132 | description: flutter
133 | source: sdk
134 | version: "0.0.0"
135 | flutter_bloc:
136 | dependency: "direct main"
137 | description:
138 | name: flutter_bloc
139 | url: "https://pub.dartlang.org"
140 | source: hosted
141 | version: "4.0.1"
142 | flutter_launcher_icons:
143 | dependency: "direct dev"
144 | description:
145 | name: flutter_launcher_icons
146 | url: "https://pub.dartlang.org"
147 | source: hosted
148 | version: "0.7.5"
149 | flutter_test:
150 | dependency: "direct dev"
151 | description: flutter
152 | source: sdk
153 | version: "0.0.0"
154 | flutter_web_plugins:
155 | dependency: transitive
156 | description: flutter
157 | source: sdk
158 | version: "0.0.0"
159 | fluttertoast:
160 | dependency: "direct main"
161 | description:
162 | name: fluttertoast
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "7.1.6"
166 | getwidget:
167 | dependency: "direct main"
168 | description:
169 | name: getwidget
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "1.2.4"
173 | google_nav_bar:
174 | dependency: "direct main"
175 | description:
176 | name: google_nav_bar
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "2.2.0"
180 | http:
181 | dependency: "direct main"
182 | description:
183 | name: http
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "0.12.2"
187 | http_parser:
188 | dependency: transitive
189 | description:
190 | name: http_parser
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "3.1.4"
194 | image:
195 | dependency: transitive
196 | description:
197 | name: image
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "2.1.14"
201 | intl:
202 | dependency: transitive
203 | description:
204 | name: intl
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "0.16.1"
208 | matcher:
209 | dependency: transitive
210 | description:
211 | name: matcher
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "0.12.10-nullsafety.1"
215 | meta:
216 | dependency: transitive
217 | description:
218 | name: meta
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "1.3.0-nullsafety.3"
222 | nested:
223 | dependency: transitive
224 | description:
225 | name: nested
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "0.0.4"
229 | package_info:
230 | dependency: "direct main"
231 | description:
232 | name: package_info
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "0.4.1"
236 | path:
237 | dependency: transitive
238 | description:
239 | name: path
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "1.8.0-nullsafety.1"
243 | path_provider:
244 | dependency: "direct main"
245 | description:
246 | name: path_provider
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "1.6.11"
250 | path_provider_linux:
251 | dependency: transitive
252 | description:
253 | name: path_provider_linux
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "0.0.1+2"
257 | path_provider_macos:
258 | dependency: transitive
259 | description:
260 | name: path_provider_macos
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "0.0.4+3"
264 | path_provider_platform_interface:
265 | dependency: transitive
266 | description:
267 | name: path_provider_platform_interface
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "1.0.2"
271 | pedantic:
272 | dependency: transitive
273 | description:
274 | name: pedantic
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "1.9.2"
278 | permission_handler:
279 | dependency: transitive
280 | description:
281 | name: permission_handler
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "4.4.0+hotfix.4"
285 | permission_handler_platform_interface:
286 | dependency: transitive
287 | description:
288 | name: permission_handler_platform_interface
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "1.0.0"
292 | petitparser:
293 | dependency: transitive
294 | description:
295 | name: petitparser
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "3.0.4"
299 | platform:
300 | dependency: transitive
301 | description:
302 | name: platform
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "2.2.1"
306 | platform_detect:
307 | dependency: transitive
308 | description:
309 | name: platform_detect
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "1.4.0"
313 | plugin_platform_interface:
314 | dependency: transitive
315 | description:
316 | name: plugin_platform_interface
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "1.0.2"
320 | process:
321 | dependency: transitive
322 | description:
323 | name: process
324 | url: "https://pub.dartlang.org"
325 | source: hosted
326 | version: "3.0.13"
327 | provider:
328 | dependency: transitive
329 | description:
330 | name: provider
331 | url: "https://pub.dartlang.org"
332 | source: hosted
333 | version: "4.3.1"
334 | pub_semver:
335 | dependency: transitive
336 | description:
337 | name: pub_semver
338 | url: "https://pub.dartlang.org"
339 | source: hosted
340 | version: "1.4.4"
341 | share:
342 | dependency: "direct main"
343 | description:
344 | name: share
345 | url: "https://pub.dartlang.org"
346 | source: hosted
347 | version: "0.6.4+3"
348 | sky_engine:
349 | dependency: transitive
350 | description: flutter
351 | source: sdk
352 | version: "0.0.99"
353 | source_span:
354 | dependency: transitive
355 | description:
356 | name: source_span
357 | url: "https://pub.dartlang.org"
358 | source: hosted
359 | version: "1.8.0-nullsafety.2"
360 | stack_trace:
361 | dependency: transitive
362 | description:
363 | name: stack_trace
364 | url: "https://pub.dartlang.org"
365 | source: hosted
366 | version: "1.10.0-nullsafety.1"
367 | stream_channel:
368 | dependency: transitive
369 | description:
370 | name: stream_channel
371 | url: "https://pub.dartlang.org"
372 | source: hosted
373 | version: "2.1.0-nullsafety.1"
374 | string_scanner:
375 | dependency: transitive
376 | description:
377 | name: string_scanner
378 | url: "https://pub.dartlang.org"
379 | source: hosted
380 | version: "1.1.0-nullsafety.1"
381 | term_glyph:
382 | dependency: transitive
383 | description:
384 | name: term_glyph
385 | url: "https://pub.dartlang.org"
386 | source: hosted
387 | version: "1.2.0-nullsafety.1"
388 | test_api:
389 | dependency: transitive
390 | description:
391 | name: test_api
392 | url: "https://pub.dartlang.org"
393 | source: hosted
394 | version: "0.2.19-nullsafety.2"
395 | typed_data:
396 | dependency: transitive
397 | description:
398 | name: typed_data
399 | url: "https://pub.dartlang.org"
400 | source: hosted
401 | version: "1.3.0-nullsafety.3"
402 | url_launcher:
403 | dependency: "direct main"
404 | description:
405 | name: url_launcher
406 | url: "https://pub.dartlang.org"
407 | source: hosted
408 | version: "5.5.0"
409 | url_launcher_linux:
410 | dependency: transitive
411 | description:
412 | name: url_launcher_linux
413 | url: "https://pub.dartlang.org"
414 | source: hosted
415 | version: "0.0.1+1"
416 | url_launcher_macos:
417 | dependency: transitive
418 | description:
419 | name: url_launcher_macos
420 | url: "https://pub.dartlang.org"
421 | source: hosted
422 | version: "0.0.1+7"
423 | url_launcher_platform_interface:
424 | dependency: transitive
425 | description:
426 | name: url_launcher_platform_interface
427 | url: "https://pub.dartlang.org"
428 | source: hosted
429 | version: "1.0.7"
430 | url_launcher_web:
431 | dependency: transitive
432 | description:
433 | name: url_launcher_web
434 | url: "https://pub.dartlang.org"
435 | source: hosted
436 | version: "0.1.2"
437 | vector_math:
438 | dependency: transitive
439 | description:
440 | name: vector_math
441 | url: "https://pub.dartlang.org"
442 | source: hosted
443 | version: "2.1.0-nullsafety.3"
444 | wallpaper_manager:
445 | dependency: "direct main"
446 | description:
447 | name: wallpaper_manager
448 | url: "https://pub.dartlang.org"
449 | source: hosted
450 | version: "1.0.10"
451 | xdg_directories:
452 | dependency: transitive
453 | description:
454 | name: xdg_directories
455 | url: "https://pub.dartlang.org"
456 | source: hosted
457 | version: "0.1.0"
458 | xml:
459 | dependency: transitive
460 | description:
461 | name: xml
462 | url: "https://pub.dartlang.org"
463 | source: hosted
464 | version: "4.2.0"
465 | yaml:
466 | dependency: transitive
467 | description:
468 | name: yaml
469 | url: "https://pub.dartlang.org"
470 | source: hosted
471 | version: "2.2.1"
472 | sdks:
473 | dart: ">=2.10.0-110 <2.11.0"
474 | flutter: ">=1.16.0 <2.0.0"
475 |
--------------------------------------------------------------------------------
/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 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
18 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
21 | /* End PBXBuildFile section */
22 |
23 | /* Begin PBXCopyFilesBuildPhase section */
24 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
25 | isa = PBXCopyFilesBuildPhase;
26 | buildActionMask = 2147483647;
27 | dstPath = "";
28 | dstSubfolderSpec = 10;
29 | files = (
30 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
31 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
32 | );
33 | name = "Embed Frameworks";
34 | runOnlyForDeploymentPostprocessing = 0;
35 | };
36 | /* End PBXCopyFilesBuildPhase section */
37 |
38 | /* Begin PBXFileReference section */
39 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
40 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
41 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
42 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
43 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
44 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
45 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
46 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
47 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
48 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
49 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
50 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
51 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
52 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
53 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
54 | /* End PBXFileReference section */
55 |
56 | /* Begin PBXFrameworksBuildPhase section */
57 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
58 | isa = PBXFrameworksBuildPhase;
59 | buildActionMask = 2147483647;
60 | files = (
61 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
62 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
63 | );
64 | runOnlyForDeploymentPostprocessing = 0;
65 | };
66 | /* End PBXFrameworksBuildPhase section */
67 |
68 | /* Begin PBXGroup section */
69 | 9740EEB11CF90186004384FC /* Flutter */ = {
70 | isa = PBXGroup;
71 | children = (
72 | 3B80C3931E831B6300D905FE /* App.framework */,
73 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
74 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
77 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
78 | );
79 | name = Flutter;
80 | sourceTree = "";
81 | };
82 | 97C146E51CF9000F007C117D = {
83 | isa = PBXGroup;
84 | children = (
85 | 9740EEB11CF90186004384FC /* Flutter */,
86 | 97C146F01CF9000F007C117D /* Runner */,
87 | 97C146EF1CF9000F007C117D /* Products */,
88 | );
89 | sourceTree = "";
90 | };
91 | 97C146EF1CF9000F007C117D /* Products */ = {
92 | isa = PBXGroup;
93 | children = (
94 | 97C146EE1CF9000F007C117D /* Runner.app */,
95 | );
96 | name = Products;
97 | sourceTree = "";
98 | };
99 | 97C146F01CF9000F007C117D /* Runner */ = {
100 | isa = PBXGroup;
101 | children = (
102 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
103 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
104 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
105 | 97C147021CF9000F007C117D /* Info.plist */,
106 | 97C146F11CF9000F007C117D /* Supporting Files */,
107 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
108 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
109 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
110 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
111 | );
112 | path = Runner;
113 | sourceTree = "";
114 | };
115 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
116 | isa = PBXGroup;
117 | children = (
118 | );
119 | name = "Supporting Files";
120 | sourceTree = "";
121 | };
122 | /* End PBXGroup section */
123 |
124 | /* Begin PBXNativeTarget section */
125 | 97C146ED1CF9000F007C117D /* Runner */ = {
126 | isa = PBXNativeTarget;
127 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
128 | buildPhases = (
129 | 9740EEB61CF901F6004384FC /* Run Script */,
130 | 97C146EA1CF9000F007C117D /* Sources */,
131 | 97C146EB1CF9000F007C117D /* Frameworks */,
132 | 97C146EC1CF9000F007C117D /* Resources */,
133 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
134 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
135 | );
136 | buildRules = (
137 | );
138 | dependencies = (
139 | );
140 | name = Runner;
141 | productName = Runner;
142 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
143 | productType = "com.apple.product-type.application";
144 | };
145 | /* End PBXNativeTarget section */
146 |
147 | /* Begin PBXProject section */
148 | 97C146E61CF9000F007C117D /* Project object */ = {
149 | isa = PBXProject;
150 | attributes = {
151 | LastUpgradeCheck = 1020;
152 | ORGANIZATIONNAME = "The Chromium Authors";
153 | TargetAttributes = {
154 | 97C146ED1CF9000F007C117D = {
155 | CreatedOnToolsVersion = 7.3.1;
156 | LastSwiftMigration = 0910;
157 | };
158 | };
159 | };
160 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
161 | compatibilityVersion = "Xcode 3.2";
162 | developmentRegion = en;
163 | hasScannedForEncodings = 0;
164 | knownRegions = (
165 | en,
166 | Base,
167 | );
168 | mainGroup = 97C146E51CF9000F007C117D;
169 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
170 | projectDirPath = "";
171 | projectRoot = "";
172 | targets = (
173 | 97C146ED1CF9000F007C117D /* Runner */,
174 | );
175 | };
176 | /* End PBXProject section */
177 |
178 | /* Begin PBXResourcesBuildPhase section */
179 | 97C146EC1CF9000F007C117D /* Resources */ = {
180 | isa = PBXResourcesBuildPhase;
181 | buildActionMask = 2147483647;
182 | files = (
183 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
184 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
185 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
186 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
187 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
188 | );
189 | runOnlyForDeploymentPostprocessing = 0;
190 | };
191 | /* End PBXResourcesBuildPhase section */
192 |
193 | /* Begin PBXShellScriptBuildPhase section */
194 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
195 | isa = PBXShellScriptBuildPhase;
196 | buildActionMask = 2147483647;
197 | files = (
198 | );
199 | inputPaths = (
200 | );
201 | name = "Thin Binary";
202 | outputPaths = (
203 | );
204 | runOnlyForDeploymentPostprocessing = 0;
205 | shellPath = /bin/sh;
206 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
207 | };
208 | 9740EEB61CF901F6004384FC /* Run Script */ = {
209 | isa = PBXShellScriptBuildPhase;
210 | buildActionMask = 2147483647;
211 | files = (
212 | );
213 | inputPaths = (
214 | );
215 | name = "Run Script";
216 | outputPaths = (
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | shellPath = /bin/sh;
220 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
221 | };
222 | /* End PBXShellScriptBuildPhase section */
223 |
224 | /* Begin PBXSourcesBuildPhase section */
225 | 97C146EA1CF9000F007C117D /* Sources */ = {
226 | isa = PBXSourcesBuildPhase;
227 | buildActionMask = 2147483647;
228 | files = (
229 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
230 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
231 | );
232 | runOnlyForDeploymentPostprocessing = 0;
233 | };
234 | /* End PBXSourcesBuildPhase section */
235 |
236 | /* Begin PBXVariantGroup section */
237 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
238 | isa = PBXVariantGroup;
239 | children = (
240 | 97C146FB1CF9000F007C117D /* Base */,
241 | );
242 | name = Main.storyboard;
243 | sourceTree = "";
244 | };
245 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
246 | isa = PBXVariantGroup;
247 | children = (
248 | 97C147001CF9000F007C117D /* Base */,
249 | );
250 | name = LaunchScreen.storyboard;
251 | sourceTree = "";
252 | };
253 | /* End PBXVariantGroup section */
254 |
255 | /* Begin XCBuildConfiguration section */
256 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
257 | isa = XCBuildConfiguration;
258 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
259 | buildSettings = {
260 | ALWAYS_SEARCH_USER_PATHS = NO;
261 | CLANG_ANALYZER_NONNULL = YES;
262 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
263 | CLANG_CXX_LIBRARY = "libc++";
264 | CLANG_ENABLE_MODULES = YES;
265 | CLANG_ENABLE_OBJC_ARC = YES;
266 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
267 | CLANG_WARN_BOOL_CONVERSION = YES;
268 | CLANG_WARN_COMMA = YES;
269 | CLANG_WARN_CONSTANT_CONVERSION = YES;
270 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
271 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
272 | CLANG_WARN_EMPTY_BODY = YES;
273 | CLANG_WARN_ENUM_CONVERSION = YES;
274 | CLANG_WARN_INFINITE_RECURSION = YES;
275 | CLANG_WARN_INT_CONVERSION = YES;
276 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
277 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
278 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
279 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
280 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
281 | CLANG_WARN_STRICT_PROTOTYPES = YES;
282 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
283 | CLANG_WARN_UNREACHABLE_CODE = YES;
284 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
285 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
286 | COPY_PHASE_STRIP = NO;
287 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
288 | ENABLE_NS_ASSERTIONS = NO;
289 | ENABLE_STRICT_OBJC_MSGSEND = YES;
290 | GCC_C_LANGUAGE_STANDARD = gnu99;
291 | GCC_NO_COMMON_BLOCKS = YES;
292 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
293 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
294 | GCC_WARN_UNDECLARED_SELECTOR = YES;
295 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
296 | GCC_WARN_UNUSED_FUNCTION = YES;
297 | GCC_WARN_UNUSED_VARIABLE = YES;
298 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
299 | MTL_ENABLE_DEBUG_INFO = NO;
300 | SDKROOT = iphoneos;
301 | TARGETED_DEVICE_FAMILY = "1,2";
302 | VALIDATE_PRODUCT = YES;
303 | };
304 | name = Profile;
305 | };
306 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
307 | isa = XCBuildConfiguration;
308 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
309 | buildSettings = {
310 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
311 | CLANG_ENABLE_MODULES = YES;
312 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
313 | ENABLE_BITCODE = NO;
314 | FRAMEWORK_SEARCH_PATHS = (
315 | "$(inherited)",
316 | "$(PROJECT_DIR)/Flutter",
317 | );
318 | INFOPLIST_FILE = Runner/Info.plist;
319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
320 | LIBRARY_SEARCH_PATHS = (
321 | "$(inherited)",
322 | "$(PROJECT_DIR)/Flutter",
323 | );
324 | PRODUCT_BUNDLE_IDENTIFIER = com.example.wallbay;
325 | PRODUCT_NAME = "$(TARGET_NAME)";
326 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
327 | SWIFT_VERSION = 4.0;
328 | VERSIONING_SYSTEM = "apple-generic";
329 | };
330 | name = Profile;
331 | };
332 | 97C147031CF9000F007C117D /* Debug */ = {
333 | isa = XCBuildConfiguration;
334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
335 | buildSettings = {
336 | ALWAYS_SEARCH_USER_PATHS = NO;
337 | CLANG_ANALYZER_NONNULL = YES;
338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
339 | CLANG_CXX_LIBRARY = "libc++";
340 | CLANG_ENABLE_MODULES = YES;
341 | CLANG_ENABLE_OBJC_ARC = YES;
342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
343 | CLANG_WARN_BOOL_CONVERSION = YES;
344 | CLANG_WARN_COMMA = YES;
345 | CLANG_WARN_CONSTANT_CONVERSION = YES;
346 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
348 | CLANG_WARN_EMPTY_BODY = YES;
349 | CLANG_WARN_ENUM_CONVERSION = YES;
350 | CLANG_WARN_INFINITE_RECURSION = YES;
351 | CLANG_WARN_INT_CONVERSION = YES;
352 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
353 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
354 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
355 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
356 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
357 | CLANG_WARN_STRICT_PROTOTYPES = YES;
358 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
359 | CLANG_WARN_UNREACHABLE_CODE = YES;
360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
361 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
362 | COPY_PHASE_STRIP = NO;
363 | DEBUG_INFORMATION_FORMAT = dwarf;
364 | ENABLE_STRICT_OBJC_MSGSEND = YES;
365 | ENABLE_TESTABILITY = YES;
366 | GCC_C_LANGUAGE_STANDARD = gnu99;
367 | GCC_DYNAMIC_NO_PIC = NO;
368 | GCC_NO_COMMON_BLOCKS = YES;
369 | GCC_OPTIMIZATION_LEVEL = 0;
370 | GCC_PREPROCESSOR_DEFINITIONS = (
371 | "DEBUG=1",
372 | "$(inherited)",
373 | );
374 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
375 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
376 | GCC_WARN_UNDECLARED_SELECTOR = YES;
377 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
378 | GCC_WARN_UNUSED_FUNCTION = YES;
379 | GCC_WARN_UNUSED_VARIABLE = YES;
380 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
381 | MTL_ENABLE_DEBUG_INFO = YES;
382 | ONLY_ACTIVE_ARCH = YES;
383 | SDKROOT = iphoneos;
384 | TARGETED_DEVICE_FAMILY = "1,2";
385 | };
386 | name = Debug;
387 | };
388 | 97C147041CF9000F007C117D /* Release */ = {
389 | isa = XCBuildConfiguration;
390 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
391 | buildSettings = {
392 | ALWAYS_SEARCH_USER_PATHS = NO;
393 | CLANG_ANALYZER_NONNULL = YES;
394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
395 | CLANG_CXX_LIBRARY = "libc++";
396 | CLANG_ENABLE_MODULES = YES;
397 | CLANG_ENABLE_OBJC_ARC = YES;
398 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
399 | CLANG_WARN_BOOL_CONVERSION = YES;
400 | CLANG_WARN_COMMA = YES;
401 | CLANG_WARN_CONSTANT_CONVERSION = YES;
402 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
404 | CLANG_WARN_EMPTY_BODY = YES;
405 | CLANG_WARN_ENUM_CONVERSION = YES;
406 | CLANG_WARN_INFINITE_RECURSION = YES;
407 | CLANG_WARN_INT_CONVERSION = YES;
408 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
409 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
413 | CLANG_WARN_STRICT_PROTOTYPES = YES;
414 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
415 | CLANG_WARN_UNREACHABLE_CODE = YES;
416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
418 | COPY_PHASE_STRIP = NO;
419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
420 | ENABLE_NS_ASSERTIONS = NO;
421 | ENABLE_STRICT_OBJC_MSGSEND = YES;
422 | GCC_C_LANGUAGE_STANDARD = gnu99;
423 | GCC_NO_COMMON_BLOCKS = YES;
424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
426 | GCC_WARN_UNDECLARED_SELECTOR = YES;
427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
428 | GCC_WARN_UNUSED_FUNCTION = YES;
429 | GCC_WARN_UNUSED_VARIABLE = YES;
430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
431 | MTL_ENABLE_DEBUG_INFO = NO;
432 | SDKROOT = iphoneos;
433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
434 | TARGETED_DEVICE_FAMILY = "1,2";
435 | VALIDATE_PRODUCT = YES;
436 | };
437 | name = Release;
438 | };
439 | 97C147061CF9000F007C117D /* Debug */ = {
440 | isa = XCBuildConfiguration;
441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
442 | buildSettings = {
443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
444 | CLANG_ENABLE_MODULES = YES;
445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
446 | ENABLE_BITCODE = NO;
447 | FRAMEWORK_SEARCH_PATHS = (
448 | "$(inherited)",
449 | "$(PROJECT_DIR)/Flutter",
450 | );
451 | INFOPLIST_FILE = Runner/Info.plist;
452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
453 | LIBRARY_SEARCH_PATHS = (
454 | "$(inherited)",
455 | "$(PROJECT_DIR)/Flutter",
456 | );
457 | PRODUCT_BUNDLE_IDENTIFIER = com.example.wallbay;
458 | PRODUCT_NAME = "$(TARGET_NAME)";
459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
461 | SWIFT_VERSION = 4.0;
462 | VERSIONING_SYSTEM = "apple-generic";
463 | };
464 | name = Debug;
465 | };
466 | 97C147071CF9000F007C117D /* Release */ = {
467 | isa = XCBuildConfiguration;
468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
469 | buildSettings = {
470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
471 | CLANG_ENABLE_MODULES = YES;
472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
473 | ENABLE_BITCODE = NO;
474 | FRAMEWORK_SEARCH_PATHS = (
475 | "$(inherited)",
476 | "$(PROJECT_DIR)/Flutter",
477 | );
478 | INFOPLIST_FILE = Runner/Info.plist;
479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
480 | LIBRARY_SEARCH_PATHS = (
481 | "$(inherited)",
482 | "$(PROJECT_DIR)/Flutter",
483 | );
484 | PRODUCT_BUNDLE_IDENTIFIER = com.example.wallbay;
485 | PRODUCT_NAME = "$(TARGET_NAME)";
486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
487 | SWIFT_VERSION = 4.0;
488 | VERSIONING_SYSTEM = "apple-generic";
489 | };
490 | name = Release;
491 | };
492 | /* End XCBuildConfiguration section */
493 |
494 | /* Begin XCConfigurationList section */
495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
496 | isa = XCConfigurationList;
497 | buildConfigurations = (
498 | 97C147031CF9000F007C117D /* Debug */,
499 | 97C147041CF9000F007C117D /* Release */,
500 | 249021D3217E4FDB00AE95B9 /* Profile */,
501 | );
502 | defaultConfigurationIsVisible = 0;
503 | defaultConfigurationName = Release;
504 | };
505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
506 | isa = XCConfigurationList;
507 | buildConfigurations = (
508 | 97C147061CF9000F007C117D /* Debug */,
509 | 97C147071CF9000F007C117D /* Release */,
510 | 249021D4217E4FDB00AE95B9 /* Profile */,
511 | );
512 | defaultConfigurationIsVisible = 0;
513 | defaultConfigurationName = Release;
514 | };
515 | /* End XCConfigurationList section */
516 |
517 | };
518 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
519 | }
520 |
--------------------------------------------------------------------------------