Skip to content

Commit 9d62d8f

Browse files
author
Ashutosh Dwivedi
committed
chore: first commit
1 parent 1671521 commit 9d62d8f

File tree

150 files changed

+7160
-3
lines changed

Some content is hidden

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

150 files changed

+7160
-3
lines changed

.gitignore

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,45 @@
1-
node_modules
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.build/
9+
.buildlog/
10+
.history
11+
.svn/
12+
.swiftpm/
13+
migrate_working_dir/
14+
15+
# IntelliJ related
16+
*.iml
17+
*.ipr
18+
*.iws
19+
.idea/
20+
21+
# The .vscode folder contains launch configuration and tasks you configure in
22+
# VS Code which you may wish to be included in version control, so this line
23+
# is commented out by default.
24+
#.vscode/
25+
26+
# Flutter/Dart/Pub related
27+
**/doc/api/
28+
**/ios/Flutter/.last_build_id
29+
.dart_tool/
30+
.flutter-plugins
31+
.flutter-plugins-dependencies
32+
.pub-cache/
33+
.pub/
34+
/build/
35+
36+
# Symbolication related
37+
app.*.symbols
38+
39+
# Obfuscation related
40+
app.*.map.json
41+
42+
# Android Studio will place build artifacts here
43+
/android/app/debug
44+
/android/app/profile
45+
/android/app/release

.metadata

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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: "d7b523b356d15fb81e7d340bbe52b47f93937323"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
17+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
18+
- platform: android
19+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
20+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
21+
22+
# User provided section
23+
24+
# List of Local paths (relative to this file) that should be
25+
# ignored by the migrate tool.
26+
#
27+
# Files that are not part of the templates will be ignored by default.
28+
unmanaged_files:
29+
- 'lib/main.dart'
30+
- 'ios/Runner.xcodeproj/project.pbxproj'

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"cmake.sourceDirectory": "/home/ashu/app development/projects/the_wallpaper_company/linux",
3+
"cmake.ignoreCMakeListsMissing": true
4+
}

README.md

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,76 @@
1-
# template
2-
A Template Repository for OpenSpringFest (OSF)
1+
# The Wallpaper Company
2+
3+
A production-ready Flutter wallpaper app for the Kroozelabs Intern Challenge.
4+
5+
## Screenshots
6+
7+
![App Screenshot](screenshots.png)
8+
9+
---
10+
11+
## Setup & Installation
12+
13+
1. **Clone the repository:**
14+
```bash
15+
git clone <your-repo-url>
16+
cd the_wallpaper_company
17+
```
18+
2. **Install dependencies:**
19+
```bash
20+
flutter pub get
21+
```
22+
3. **Run the app:**
23+
```bash
24+
flutter run
25+
```
26+
27+
## Firebase Setup
28+
29+
1. Install the FlutterFire CLI:
30+
```bash
31+
dart pub global activate flutterfire_cli
32+
```
33+
2. Login to Firebase:
34+
```bash
35+
flutterfire login
36+
```
37+
3. Initialize Firebase in your project:
38+
```bash
39+
flutterfire configure
40+
```
41+
- Select your Firebase project and platforms (Android/iOS).
42+
- This will generate `lib/firebase_options.dart` automatically.
43+
4. Add `google-services.json` (Android) to `android/app/`.
44+
5. Add `GoogleService-Info.plist` (iOS) to `ios/Runner/`.
45+
6. Enable **Cloud Messaging** and **Remote Config** in the Firebase Console.
46+
47+
For more details, see the [FlutterFire CLI documentation](https://firebase.flutter.dev/docs/cli/).
48+
49+
## Remote Config Keys Used
50+
51+
- `dark_mode_enabled` (bool): Toggles dark mode in the app.
52+
- Example usage: `remoteConfig.getBool('dark_mode_enabled')`
53+
54+
## JSON Endpoint Usage
55+
56+
Wallpapers are fetched from:
57+
```
58+
https://jsonkeeper.com/b/ORGZR
59+
```
60+
- The endpoint returns a list of wallpaper objects in JSON format.
61+
- Each wallpaper object contains: `id`, `title`, `imageUrl`, `category`.
62+
63+
64+
## Features
65+
- Home screen with category carousel
66+
- Staggered grid and shimmer loading(Printerest Style)
67+
- Fullscreen preview and favorites
68+
- Pull-to-refresh and double-tap to like animation
69+
- Firebase Remote Config for dark mode
70+
- Firebase Cloud Messaging for notifications
71+
- Provider for state management
72+
- Persistent image cache
73+
- Modern UI
74+
75+
## License
76+
MIT

analysis_options.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
prefer_const_constructors: true
27+
prefer_const_literals_to_create_immutables: true
28+
prefer_const_declarations: true
29+
30+
# Additional information about this file can be found at
31+
# https://dart.dev/guides/language/analysis-options

android/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
.cxx/
9+
10+
# Remember to never publicly share your keystore.
11+
# See https://flutter.dev/to/reference-keystore
12+
key.properties
13+
**/*.keystore
14+
**/*.jks

android/app/build.gradle.kts

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
plugins {
2+
id("com.android.application")
3+
// START: FlutterFire Configuration
4+
id("com.google.gms.google-services")
5+
// END: FlutterFire Configuration
6+
id("kotlin-android")
7+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
8+
id("dev.flutter.flutter-gradle-plugin")
9+
}
10+
11+
android {
12+
namespace = "com.example.the_wallpaper_company"
13+
compileSdk = flutter.compileSdkVersion
14+
ndkVersion = "27.0.12077973"
15+
16+
compileOptions {
17+
sourceCompatibility = JavaVersion.VERSION_1_8
18+
targetCompatibility = JavaVersion.VERSION_1_8
19+
// Add this line to enable core library desugaring
20+
isCoreLibraryDesugaringEnabled = true
21+
}
22+
23+
kotlinOptions {
24+
// Change the jvmTarget to 1.8 to match the compileOptions
25+
jvmTarget = "1.8"
26+
}
27+
28+
defaultConfig {
29+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
30+
applicationId = "com.example.the_wallpaper_company"
31+
// You can update the following values to match your application needs.
32+
// For more information, see: https://flutter.dev/to/review-gradle-config.
33+
minSdk = 23
34+
targetSdk = flutter.targetSdkVersion
35+
versionCode = flutter.versionCode
36+
versionName = flutter.versionName
37+
}
38+
39+
buildTypes {
40+
release {
41+
// TODO: Add your own signing config for the release build.
42+
// Signing with the debug keys for now, so `flutter run --release` works.
43+
signingConfig = signingConfigs.getByName("debug")
44+
}
45+
}
46+
}
47+
48+
flutter {
49+
source = "../.."
50+
}
51+
52+
dependencies {
53+
54+
implementation(platform("com.google.firebase:firebase-bom:32.7.0"))
55+
56+
implementation("com.google.firebase:firebase-messaging")
57+
implementation("com.google.firebase:firebase-analytics")
58+
59+
// Core library desugaring
60+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
61+
62+
// Other dependencies for your project...
63+
}

android/app/google-services.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"project_info": {
3+
"project_number": "1007761128242",
4+
"project_id": "the-wallpaper-co",
5+
"storage_bucket": "the-wallpaper-co.firebasestorage.app"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:1007761128242:android:8d9f5601121a05fa8ff52b",
11+
"android_client_info": {
12+
"package_name": "com.example.the_wallpaper_company"
13+
}
14+
},
15+
"oauth_client": [],
16+
"api_key": [
17+
{
18+
"current_key": "AIzaSyBsIkDVA-ATiZzWcOoLHHo2UE-pQAze1c4"
19+
}
20+
],
21+
"services": {
22+
"appinvite_service": {
23+
"other_platform_oauth_client": []
24+
}
25+
}
26+
}
27+
],
28+
"configuration_version": "1"
29+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<!-- The INTERNET permission is required for development. Specifically,
3+
the Flutter tool needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<application
3+
android:label="the_wallpaper_company"
4+
android:name="${applicationName}"
5+
android:icon="@mipmap/ic_launcher">
6+
<activity
7+
android:name=".MainActivity"
8+
android:exported="true"
9+
android:launchMode="singleTop"
10+
android:taskAffinity=""
11+
android:theme="@style/LaunchTheme"
12+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
13+
android:hardwareAccelerated="true"
14+
android:windowSoftInputMode="adjustResize">
15+
<!-- Specifies an Android theme to apply to this Activity as soon as
16+
the Android process has started. This theme is visible to the user
17+
while the Flutter UI initializes. After that, this theme continues
18+
to determine the Window background behind the Flutter UI. -->
19+
<meta-data
20+
android:name="io.flutter.embedding.android.NormalTheme"
21+
android:resource="@style/NormalTheme"
22+
/>
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN"/>
25+
<category android:name="android.intent.category.LAUNCHER"/>
26+
</intent-filter>
27+
</activity>
28+
<!-- Don't delete the meta-data below.
29+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
30+
<meta-data
31+
android:name="flutterEmbedding"
32+
android:value="2" />
33+
</application>
34+
<!-- Required to query activities that can process text, see:
35+
https://developer.android.com/training/package-visibility and
36+
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
37+
38+
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
39+
<queries>
40+
<intent>
41+
<action android:name="android.intent.action.PROCESS_TEXT"/>
42+
<data android:mimeType="text/plain"/>
43+
</intent>
44+
</queries>
45+
</manifest>

0 commit comments

Comments
 (0)