├── .gitignore
├── .metadata
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── first_flutter_app
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ └── splash.png
│ │ │ ├── drawable-mdpi
│ │ │ └── splash.png
│ │ │ ├── drawable-v21
│ │ │ ├── background.png
│ │ │ ├── launch_background.xml
│ │ │ └── launch_image.jpg
│ │ │ ├── drawable-xhdpi
│ │ │ └── splash.png
│ │ │ ├── drawable-xxhdpi
│ │ │ └── splash.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ └── splash.png
│ │ │ ├── drawable
│ │ │ ├── background.png
│ │ │ ├── launch_background.xml
│ │ │ └── launch_image.jpg
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launch_image.jpg
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launch_image.jpg
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launch_image.jpg
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launch_image.jpg
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ └── launch_image.jpg
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── settings.gradle
└── settings_aar.gradle
├── assets
├── et_header.jpg
└── launch_image.jpg
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ ├── LaunchBackground.imageset
│ │ ├── Contents.json
│ │ └── background.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── appbar_actions.dart
├── categories
│ ├── amazonquiz.dart
│ ├── cashback.dart
│ └── freecourses.dart
├── drawer.dart
├── main.dart
├── postdetails.dart
├── posts.dart
└── search.dart
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-512.png
├── index.html
├── manifest.json
└── splash
├── img
├── dark-1x.png
├── dark-2x.png
├── dark-3x.png
├── light-1x.png
├── light-2x.png
└── light-3x.png
└── style.css
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/.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: d79295af24c3ed621c33713ecda14ad196fd9c31
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flutter Blog/News App
2 |
3 | A New Blog/News App based on Flutter with Wordpress Rest API.
4 |
5 | ## Features
6 | - Splash Screen
7 | - Latest Posts
8 | - Tabs Categories
9 | - Search Bar
10 | - Drawer
11 | - Single Post Page
12 |
13 | More Features Coming Soon.
14 |
15 | ## ScreenShots
16 |
17 | [](https://earningtricks.in "Flutter News App")
18 |
19 | [](https://earningtricks.in "Flutter News App")
20 |
21 | [](https://earningtricks.in "Flutter News App")
22 |
23 | [](https://earningtricks.in "Flutter News App")
24 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 30
30 | sourceSets {
31 | main.java.srcDirs += 'src/main/kotlin'
32 | }
33 |
34 | defaultConfig {
35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36 | applicationId "com.earningtricks.app"
37 | minSdkVersion 19
38 | targetSdkVersion 30
39 | versionCode 1
40 | versionName "1.0"
41 | }
42 |
43 | buildTypes {
44 | release {
45 | // TODO: Add your own signing config for the release build.
46 | // Signing with the debug keys for now, so `flutter run --release` works.
47 | signingConfig signingConfigs.debug
48 | }
49 | }
50 | }
51 |
52 | flutter {
53 | source '../..'
54 | }
55 |
56 | dependencies {
57 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
58 | }
59 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
7 |
14 |
18 |
22 |
27 |
31 |
32 |
33 |
34 |
35 |
36 |
38 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/first_flutter_app/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.first_flutter_app
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-hdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/drawable-hdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-mdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/drawable-mdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/drawable-v21/background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 | -
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/drawable-v21/launch_image.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/drawable-xhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/drawable-xxhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-xxxhdpi/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/drawable-xxxhdpi/splash.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/drawable/background.png
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
5 |
6 | -
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/drawable/launch_image.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/launch_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/mipmap-hdpi/launch_image.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/launch_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/mipmap-mdpi/launch_image.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/launch_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/mipmap-xhdpi/launch_image.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/launch_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/mipmap-xxhdpi/launch_image.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/launch_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/android/app/src/main/res/mipmap-xxxhdpi/launch_image.jpg
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
16 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #ffffff
4 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
16 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/android/settings_aar.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/assets/et_header.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/assets/et_header.jpg
--------------------------------------------------------------------------------
/assets/launch_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/assets/launch_image.jpg
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.firstFlutterApp;
295 | PRODUCT_NAME = "$(TARGET_NAME)";
296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
297 | SWIFT_VERSION = 5.0;
298 | VERSIONING_SYSTEM = "apple-generic";
299 | };
300 | name = Profile;
301 | };
302 | 97C147031CF9000F007C117D /* Debug */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = dwarf;
333 | ENABLE_STRICT_OBJC_MSGSEND = YES;
334 | ENABLE_TESTABILITY = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_DYNAMIC_NO_PIC = NO;
337 | GCC_NO_COMMON_BLOCKS = YES;
338 | GCC_OPTIMIZATION_LEVEL = 0;
339 | GCC_PREPROCESSOR_DEFINITIONS = (
340 | "DEBUG=1",
341 | "$(inherited)",
342 | );
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
350 | MTL_ENABLE_DEBUG_INFO = YES;
351 | ONLY_ACTIVE_ARCH = YES;
352 | SDKROOT = iphoneos;
353 | TARGETED_DEVICE_FAMILY = "1,2";
354 | };
355 | name = Debug;
356 | };
357 | 97C147041CF9000F007C117D /* Release */ = {
358 | isa = XCBuildConfiguration;
359 | buildSettings = {
360 | ALWAYS_SEARCH_USER_PATHS = NO;
361 | CLANG_ANALYZER_NONNULL = YES;
362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
363 | CLANG_CXX_LIBRARY = "libc++";
364 | CLANG_ENABLE_MODULES = YES;
365 | CLANG_ENABLE_OBJC_ARC = YES;
366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
367 | CLANG_WARN_BOOL_CONVERSION = YES;
368 | CLANG_WARN_COMMA = YES;
369 | CLANG_WARN_CONSTANT_CONVERSION = YES;
370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
372 | CLANG_WARN_EMPTY_BODY = YES;
373 | CLANG_WARN_ENUM_CONVERSION = YES;
374 | CLANG_WARN_INFINITE_RECURSION = YES;
375 | CLANG_WARN_INT_CONVERSION = YES;
376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
381 | CLANG_WARN_STRICT_PROTOTYPES = YES;
382 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
383 | CLANG_WARN_UNREACHABLE_CODE = YES;
384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
386 | COPY_PHASE_STRIP = NO;
387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
388 | ENABLE_NS_ASSERTIONS = NO;
389 | ENABLE_STRICT_OBJC_MSGSEND = YES;
390 | GCC_C_LANGUAGE_STANDARD = gnu99;
391 | GCC_NO_COMMON_BLOCKS = YES;
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
399 | MTL_ENABLE_DEBUG_INFO = NO;
400 | SDKROOT = iphoneos;
401 | SUPPORTED_PLATFORMS = iphoneos;
402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
403 | TARGETED_DEVICE_FAMILY = "1,2";
404 | VALIDATE_PRODUCT = YES;
405 | };
406 | name = Release;
407 | };
408 | 97C147061CF9000F007C117D /* Debug */ = {
409 | isa = XCBuildConfiguration;
410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
411 | buildSettings = {
412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
413 | CLANG_ENABLE_MODULES = YES;
414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
415 | ENABLE_BITCODE = NO;
416 | INFOPLIST_FILE = Runner/Info.plist;
417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.firstFlutterApp;
419 | PRODUCT_NAME = "$(TARGET_NAME)";
420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
422 | SWIFT_VERSION = 5.0;
423 | VERSIONING_SYSTEM = "apple-generic";
424 | };
425 | name = Debug;
426 | };
427 | 97C147071CF9000F007C117D /* Release */ = {
428 | isa = XCBuildConfiguration;
429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
430 | buildSettings = {
431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
432 | CLANG_ENABLE_MODULES = YES;
433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434 | ENABLE_BITCODE = NO;
435 | INFOPLIST_FILE = Runner/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.firstFlutterApp;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
440 | SWIFT_VERSION = 5.0;
441 | VERSIONING_SYSTEM = "apple-generic";
442 | };
443 | name = Release;
444 | };
445 | /* End XCBuildConfiguration section */
446 |
447 | /* Begin XCConfigurationList section */
448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
449 | isa = XCConfigurationList;
450 | buildConfigurations = (
451 | 97C147031CF9000F007C117D /* Debug */,
452 | 97C147041CF9000F007C117D /* Release */,
453 | 249021D3217E4FDB00AE95B9 /* Profile */,
454 | );
455 | defaultConfigurationIsVisible = 0;
456 | defaultConfigurationName = Release;
457 | };
458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147061CF9000F007C117D /* Debug */,
462 | 97C147071CF9000F007C117D /* Release */,
463 | 249021D4217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | /* End XCConfigurationList section */
469 | };
470 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
471 | }
472 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/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/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "background.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "scale" : "2x"
11 | },
12 | {
13 | "idiom" : "universal",
14 | "scale" : "3x"
15 | }
16 | ],
17 | "info" : {
18 | "author" : "xcode",
19 | "version" : 1
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "filename" : "LaunchImage.png",
5 | "idiom" : "universal",
6 | "scale" : "1x"
7 | },
8 | {
9 | "filename" : "LaunchImage@2x.png",
10 | "idiom" : "universal",
11 | "scale" : "2x"
12 | },
13 | {
14 | "filename" : "LaunchImage@3x.png",
15 | "idiom" : "universal",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "author" : "xcode",
21 | "version" : 1
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/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 | first_flutter_app
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 | UIStatusBarHidden
45 |
46 |
47 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/appbar_actions.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:url_launcher/url_launcher.dart';
3 |
4 | class PopupMenu extends StatelessWidget{
5 | @override
6 | Widget build(BuildContext context){
7 | return PopupMenuButton(
8 | icon: Icon(Icons.more_horiz),
9 | onSelected: (itemselect){
10 | if(itemselect == 0){
11 | launch("https://earningtricks.in/privacy-policy");
12 | }else if(itemselect == 1){
13 | launch("https://earningtricks.in/about-us");
14 | }else if(itemselect == 2){
15 | launch("https://earningtricks.in/contact-us");
16 | }else if(itemselect == 3){
17 | launch("https://earningtricks.in/advertise");
18 | }
19 | },
20 | itemBuilder: (context) => [
21 | PopupMenuItem(
22 | child: Text("Privacy Policy"),
23 | value: 0,
24 | ),
25 | PopupMenuItem(
26 | child: Text("About Us"),
27 | value: 1,
28 | ),
29 | PopupMenuItem(
30 | child: Text("Contact Us"),
31 | value: 2,
32 | ),
33 | PopupMenuItem(
34 | child: Text("Advertise"),
35 | value: 3,
36 | )
37 | ]
38 | );
39 | }
40 | }
--------------------------------------------------------------------------------
/lib/categories/amazonquiz.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'dart:convert';
3 | import 'package:flutter_html/flutter_html.dart';
4 | import 'package:http/http.dart' as http;
5 | import '../postdetails.dart';
6 |
7 | var data;
8 |
9 | class Amazonquiz extends StatefulWidget {
10 | @override
11 | _AmazonquizState createState() => _AmazonquizState();
12 | }
13 |
14 | class _AmazonquizState extends State {
15 | var amazonquizurl =
16 | "https://earningtricks.in/index.php/wp-json/wp/v2/posts?per_page=10&categories=7&status=publish";
17 |
18 | getData() async {
19 | var res = await http.get(Uri.parse(amazonquizurl));
20 | data = jsonDecode(res.body);
21 | setState(() {});
22 | }
23 |
24 | @override
25 | void initState() {
26 | super.initState();
27 | getData();
28 | }
29 |
30 | @override
31 | Widget build(BuildContext context) {
32 | return Container(
33 | child: Padding(
34 | padding: const EdgeInsets.fromLTRB(16, 8, 16, 8),
35 | child: data != null
36 | ? ListView.builder(
37 | itemCount: data.length,
38 | itemBuilder: (context, index) {
39 | return Card(
40 | child: InkWell(
41 | onTap: () {
42 | Navigator.push(
43 | context,
44 | MaterialPageRoute(
45 | builder: (context) => PostDetail(
46 | featureimage: data[index]
47 | ["uagb_featured_image_src"]
48 | ["jnews-360x180"][0],
49 | title: data[index]["title"]['rendered']
50 | .replaceAll("#8211;", ""),
51 | description: data[index]["content"]
52 | ["rendered"],
53 | link: data[index]["link"],
54 | author: data[index]["uagb_author_info"]
55 | ["display_name"],
56 | )));
57 | },
58 | child: Column(
59 | children: [
60 | Hero(
61 | tag: Key(data[index]["title"]['rendered']
62 | .replaceAll("#8211;", "")),
63 | child: Image.network(data[index]
64 | ["uagb_featured_image_src"]["jnews-360x180"]
65 | [0]),
66 | ),
67 | Padding(
68 | padding: const EdgeInsets.all(8.0),
69 | child: Text(
70 | data[index]["title"]['rendered']
71 | .replaceAll("#8211;", ""),
72 | style: TextStyle(
73 | fontSize: 18,
74 | fontWeight: FontWeight.bold,
75 | ),
76 | ),
77 | ),
78 | ],
79 | ),
80 | ));
81 | },
82 | )
83 | : Center(
84 | child: CircularProgressIndicator(),
85 | )),
86 | );
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/lib/categories/cashback.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'dart:convert';
3 | import 'package:http/http.dart' as http;
4 | import 'package:flutter_html/flutter_html.dart';
5 | import '../postdetails.dart';
6 |
7 | var data;
8 |
9 | class Cashbackoffers extends StatefulWidget {
10 | @override
11 | _CashbackoffersState createState() => _CashbackoffersState();
12 | }
13 |
14 | class _CashbackoffersState extends State {
15 | var cashbackoffersurl =
16 | "https://earningtricks.in/index.php/wp-json/wp/v2/posts?per_page=10&categories=159&status=publish";
17 | getData() async {
18 | var res = await http.get(Uri.parse(cashbackoffersurl));
19 | data = jsonDecode(res.body);
20 | setState(() {});
21 | }
22 |
23 | @override
24 | void initState() {
25 | super.initState();
26 | getData();
27 | }
28 |
29 | @override
30 | Widget build(BuildContext context) {
31 | return Container(
32 | child: Padding(
33 | padding: const EdgeInsets.fromLTRB(16, 8, 16, 8),
34 | child: data != null
35 | ? ListView.builder(
36 | itemCount: data.length,
37 | itemBuilder: (context, index) {
38 | return Card(
39 | child: InkWell(
40 | onTap: () {
41 | Navigator.push(
42 | context,
43 | MaterialPageRoute(
44 | builder: (context) => PostDetail(
45 | featureimage: data[index]
46 | ["uagb_featured_image_src"]
47 | ["jnews-360x180"][0],
48 | title: data[index]["title"]['rendered']
49 | .replaceAll("#8211;", ""),
50 | description: data[index]["content"]
51 | ["rendered"],
52 | link: data[index]["link"],
53 | author: data[index]["uagb_author_info"]
54 | ["display_name"],
55 | )));
56 | },
57 | child: Column(
58 | children: [
59 | Hero(
60 | tag: Key(data[index]["title"]['rendered']
61 | .replaceAll("#8211;", "")),
62 | child: Image.network(data[index]
63 | ["uagb_featured_image_src"]["jnews-360x180"]
64 | [0]),
65 | ),
66 | Padding(
67 | padding: const EdgeInsets.all(8.0),
68 | child: Text(
69 | data[index]["title"]['rendered']
70 | .replaceAll("#8211;", ""),
71 | style: TextStyle(
72 | fontSize: 18,
73 | fontWeight: FontWeight.bold,
74 | ),
75 | ),
76 | ),
77 | ],
78 | ),
79 | ));
80 | },
81 | )
82 | : Center(
83 | child: CircularProgressIndicator(),
84 | )),
85 | );
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/lib/categories/freecourses.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'dart:convert';
3 | import 'package:http/http.dart' as http;
4 | import 'package:flutter_html/flutter_html.dart';
5 | import '../postdetails.dart';
6 |
7 | var data;
8 |
9 | class Freecourses extends StatefulWidget {
10 | @override
11 | _FreecoursesState createState() => _FreecoursesState();
12 | }
13 |
14 | class _FreecoursesState extends State {
15 | var udemycourseurl =
16 | "https://earningtricks.in/index.php/wp-json/wp/v2/posts?per_page=10&categories=30&status=publish";
17 | getData() async {
18 | var res = await http.get(Uri.parse(udemycourseurl));
19 | data = jsonDecode(res.body);
20 | setState(() {});
21 | }
22 |
23 | @override
24 | void initState() {
25 | super.initState();
26 | getData();
27 | }
28 |
29 | @override
30 | Widget build(BuildContext context) {
31 | return Container(
32 | child: Padding(
33 | padding: const EdgeInsets.fromLTRB(16, 8, 16, 8),
34 | child: data != null
35 | ? ListView.builder(
36 | itemCount: data.length,
37 | itemBuilder: (context, index) {
38 | return Card(
39 | child: InkWell(
40 | onTap: () {
41 | Navigator.push(
42 | context,
43 | MaterialPageRoute(
44 | builder: (context) => PostDetail(
45 | featureimage: data[index]
46 | ["uagb_featured_image_src"]
47 | ["jnews-featured-750"][0],
48 | title: data[index]["title"]['rendered']
49 | .replaceAll("#8211;", ""),
50 | description: data[index]["content"]
51 | ["rendered"],
52 | link: data[index]["link"],
53 | author: data[index]["uagb_author_info"]
54 | ["display_name"],
55 | )));
56 | },
57 | child: Column(
58 | children: [
59 | Hero(
60 | tag: Key(data[index]["title"]['rendered']
61 | .replaceAll("#8211;", "")),
62 | child: Image.network(data[index]
63 | ["uagb_featured_image_src"]["jnews-360x180"]
64 | [0]),
65 | ),
66 | Padding(
67 | padding: const EdgeInsets.all(8.0),
68 | child: Text(
69 | data[index]["title"]['rendered']
70 | .replaceAll("#8211;", ""),
71 | style: TextStyle(
72 | fontSize: 18,
73 | fontWeight: FontWeight.bold,
74 | ),
75 | ),
76 | ),
77 | ],
78 | ),
79 | ));
80 | },
81 | )
82 | : Center(
83 | child: CircularProgressIndicator(),
84 | )),
85 | );
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/lib/drawer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:url_launcher/url_launcher.dart';
3 | import 'package:share/share.dart';
4 | import 'package:font_awesome_flutter/font_awesome_flutter.dart';
5 |
6 | class MyDrawer extends StatelessWidget{
7 | @override
8 | Widget build(BuildContext context){
9 | return Drawer(
10 | child: ListView(
11 | children: [
12 | DrawerHeader(
13 | decoration: BoxDecoration(
14 | color: Colors.white,
15 | ),
16 | child: Image.asset("assets/et_header.jpg"),
17 | ),
18 | ListTile(
19 | leading: FaIcon(FontAwesomeIcons.telegram),
20 | title: Text("Telegram"),
21 | trailing: Icon(Icons.arrow_forward),
22 | onTap: (){
23 | launch("https://t.me/earningtricksin");
24 | },
25 | ),
26 | ListTile(
27 | leading: FaIcon(FontAwesomeIcons.instagram),
28 | title: Text("Instagram"),
29 | trailing: Icon(Icons.open_in_new),
30 | onTap: (){
31 | launch("https://instagram.com/earningtricksoffl");
32 | },
33 | ),
34 | ListTile(
35 | leading: FaIcon(FontAwesomeIcons.facebook),
36 | title: Text("Facebook"),
37 | trailing: Icon(Icons.open_in_new),
38 | onTap: (){
39 | launch("https://instagram.com/earningtricksoffl");
40 | },
41 | ),
42 | ListTile(
43 | leading: FaIcon(FontAwesomeIcons.share),
44 | title: Text("Share App"),
45 | trailing: Icon(Icons.open_in_new),
46 | onTap: (){
47 | Share.share("Wanna Earn Some Money/Paytm Cash in Free Time? \n We Will Provide You Latest Earning Apps and Cashback offers. Download the App Now \n https://earningtricks.in/app");
48 | },
49 | ),
50 | ListTile(
51 | leading: Icon(Icons.language),
52 | title: Text("Website"),
53 | trailing: Icon(Icons.open_in_browser),
54 | onTap: (){
55 | launch("https://earningtricks.in");
56 | },
57 | ),
58 | ],
59 | ),
60 | );
61 | }
62 | }
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'appbar_actions.dart';
3 | import 'drawer.dart';
4 | import 'posts.dart';
5 | import 'categories/freecourses.dart';
6 | import 'categories/cashback.dart';
7 | import 'categories/amazonquiz.dart';
8 | import 'search.dart';
9 | import 'package:connectivity/connectivity.dart';
10 |
11 | void main() {
12 | runApp(MaterialApp(
13 | title: "Earning Tricks",
14 | home: HomePage(),
15 | ));
16 | }
17 |
18 | class HomePage extends StatefulWidget {
19 | @override
20 | _HomePageState createState() => _HomePageState();
21 | }
22 |
23 | class _HomePageState extends State {
24 | bool isSearching = false;
25 | List tabs = [];
26 |
27 | @override
28 | void initState() {
29 | super.initState();
30 | tabs.add(tab("Latest"));
31 | tabs.add(tab("Free Courses"));
32 | tabs.add(tab("Cashback Offers"));
33 | tabs.add(tab("Amazon Quiz"));
34 | }
35 |
36 | Widget tab(String tabName) {
37 | return Tab(
38 | text: tabName,
39 | );
40 | }
41 |
42 | @override
43 | Widget build(BuildContext context) {
44 | return DefaultTabController(
45 | length: tabs.length,
46 | child: Scaffold(
47 | appBar: AppBar(
48 | title: !isSearching
49 | ? Text(
50 | "Earning Tricks",
51 | style: TextStyle(
52 | fontWeight: FontWeight.bold,
53 | ),
54 | )
55 | : TextField(
56 | textInputAction: TextInputAction.search,
57 | onSubmitted: (value) {
58 | Navigator.push(
59 | context,
60 | MaterialPageRoute(
61 | builder: (context) => SearchDetail(
62 | search: value,
63 | )));
64 | },
65 | style: TextStyle(
66 | color: Colors.white
67 | ),
68 | decoration: InputDecoration(
69 | icon: Icon(
70 | Icons.search,
71 | color: Colors.white,
72 | ),
73 | hintText: "Search Here...",
74 | hintStyle: TextStyle(
75 | color: Colors.white,
76 | ),
77 | enabledBorder: UnderlineInputBorder(
78 | borderSide: BorderSide(color: Colors.white),
79 | ),
80 | focusedBorder: UnderlineInputBorder(
81 | borderSide: BorderSide(color: Colors.white),
82 | ),
83 | ),
84 | ),
85 | backgroundColor: Colors.orange,
86 | bottom: TabBar(
87 | tabs: tabs,
88 | isScrollable: true,
89 | labelColor: Colors.white,
90 | unselectedLabelColor: Colors.white,
91 | indicatorSize: TabBarIndicatorSize.label,
92 | indicatorColor: Colors.white,
93 | ),
94 | actions: [
95 | isSearching
96 | ? IconButton(
97 | icon: Icon(Icons.cancel),
98 | onPressed: () {
99 | setState(() {
100 | this.isSearching = false;
101 | });
102 | },
103 | )
104 | : IconButton(
105 | icon: Icon(Icons.search),
106 | onPressed: () {
107 | setState(() {
108 | this.isSearching = true;
109 | });
110 | },
111 | ),
112 | PopupMenu(),
113 | ],
114 | ),
115 | drawer: MyDrawer(),
116 | body: StreamBuilder(
117 | stream: Connectivity().onConnectivityChanged,
118 | builder: (BuildContext context,
119 | AsyncSnapshot snapshot) {
120 | if (snapshot.hasData && snapshot.data != ConnectivityResult.none) {
121 | return TabBarView(
122 | children: [
123 | Posts(),
124 | Freecourses(),
125 | Cashbackoffers(),
126 | Amazonquiz(),
127 | ],
128 | );
129 | } else {
130 | return AlertDialog(
131 | title: const Text('No Internet!'),
132 | content: SingleChildScrollView(
133 | child: ListBody(
134 | children: const [
135 | Text('Please Connect to the Internet First.'),
136 | ],
137 | ),
138 | ),
139 | actions: [
140 | TextButton(
141 | child: const Text('Exit'),
142 | onPressed: () {
143 | Navigator.of(context).pop();
144 | },
145 | ),
146 | ],
147 | );
148 | }
149 | },
150 | ),
151 | ),
152 | );
153 | }
154 | }
155 |
--------------------------------------------------------------------------------
/lib/postdetails.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_html/flutter_html.dart';
3 | import 'package:url_launcher/url_launcher.dart';
4 | import 'package:html/dom.dart' as dom;
5 |
6 | class PostDetail extends StatefulWidget{
7 | var featureimage;
8 | var title;
9 | var description;
10 | var link;
11 | var author;
12 | PostDetail({this.featureimage,this.title,this.description,this.link,this.author});
13 |
14 | @override
15 | _PostDetailState createState() => _PostDetailState();
16 | }
17 |
18 | class _PostDetailState extends State {
19 | @override
20 | Widget build(BuildContext context){
21 | return Scaffold(
22 | appBar: AppBar(
23 | title: Text(widget.title),
24 | backgroundColor: Colors.orange,
25 | actions: [
26 | Padding(padding: const EdgeInsets.all(8),
27 | child: GestureDetector(
28 | onTap: () {
29 | launch(widget.link);
30 | },
31 | child: Icon(
32 | Icons.open_in_new,
33 | size: 26.0,
34 | ),
35 | )
36 | )
37 | ],
38 | ),
39 | floatingActionButton: FloatingActionButton(
40 | child: Icon(Icons.comment),
41 | backgroundColor: Colors.orange,
42 | foregroundColor: Colors.white,
43 | onPressed: () => {
44 | launch(widget.link)
45 | },
46 | ),
47 | body: SingleChildScrollView(
48 | child: Container(
49 | child: Column(
50 | children: [
51 | Hero(
52 | tag: Key(widget.title),
53 | child: Image.network(widget.featureimage,
54 | width: double.infinity,
55 | fit: BoxFit.cover,),
56 | ),
57 | Padding(
58 | padding: const EdgeInsets.all(8),
59 | child: Text(
60 | widget.title,
61 | style: TextStyle(
62 | fontSize: 18,
63 | fontWeight: FontWeight.bold,
64 | ),
65 |
66 | ),
67 | ),
68 | Text(
69 | "By " + widget.author,
70 | textAlign: TextAlign.start,
71 | ),
72 | Padding(padding: EdgeInsets.all(8),
73 | child: Html(
74 | data: widget.description,
75 | onLinkTap: (String? url, RenderContext context, Map attributes, dom.Element? element) async{
76 | if (await canLaunch("$url")) {
77 | await launch(
78 | "$url",
79 | );
80 | } else {
81 | throw 'Could not launch $url';
82 | }
83 | },
84 | ),),
85 | ],
86 | )
87 | ),
88 | ),
89 | );
90 | }
91 |
92 | openLink(url){
93 | launch(url);
94 | }
95 |
96 | }
--------------------------------------------------------------------------------
/lib/posts.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'dart:convert';
3 | import 'package:http/http.dart' as http;
4 | import 'postdetails.dart';
5 |
6 | class Posts extends StatefulWidget {
7 | @override
8 | _PostsState createState() => _PostsState();
9 | }
10 |
11 | class _PostsState extends State {
12 | var latest =
13 | "https://earningtricks.in/index.php/wp-json/wp/v2/posts?per_page=10&status=publish";
14 | var data;
15 |
16 | void postData() async {
17 | var res = await http.get(Uri.parse(latest));
18 | data = jsonDecode(res.body);
19 | setState(() {});
20 | }
21 |
22 | @override
23 | void initState() {
24 | super.initState();
25 | postData();
26 | }
27 |
28 | @override
29 | Widget build(BuildContext context) {
30 | return Container(
31 | child: Padding(
32 | padding: const EdgeInsets.fromLTRB(16, 8, 16, 8),
33 | child: data != null
34 | ? RefreshIndicator(
35 | child: ListView.builder(
36 | itemCount: data.length,
37 | itemBuilder: (context, index) {
38 | return Card(
39 | child: InkWell(
40 | onTap: () {
41 | Navigator.push(
42 | context,
43 | MaterialPageRoute(
44 | builder: (context) => PostDetail(
45 | featureimage: data[index]["uagb_featured_image_src"]["jnews-360x180"][0],
46 | title: data[index]["title"]['rendered'].replaceAll("#8211;", ""),
47 | description: data[index]["content"]["rendered"],
48 | link: data[index]["link"],
49 | author: data[index]["uagb_author_info"]["display_name"],
50 | )));
51 | },
52 | child: Column(
53 | children: [
54 | Hero(
55 | tag: Key(data[index]["title"]['rendered'].replaceAll("#8211;", "")),
56 | child: Image.network(data[index]["uagb_featured_image_src"]["jnews-360x180"][0]),
57 | ),
58 | Padding(
59 | padding: const EdgeInsets.all(8.0),
60 | child: Text(
61 | data[index]["title"]['rendered'].replaceAll("#8211;", ""),
62 | style: TextStyle(
63 | fontSize: 18,
64 | fontWeight: FontWeight.bold,
65 | ),
66 | ),
67 | ),
68 | ],
69 | ),
70 | ),
71 | );
72 | },
73 | ),
74 | onRefresh: _getData,
75 | )
76 | : Center(
77 | child: CircularProgressIndicator(),
78 | )),
79 | );
80 | }
81 |
82 | Future _getData() async {
83 | await Future.delayed(Duration(seconds: 3));
84 | setState(() {
85 | postData();
86 | });
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/lib/search.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'dart:convert';
3 | import 'package:http/http.dart' as http;
4 | import 'postdetails.dart';
5 |
6 | class SearchDetail extends StatefulWidget{
7 | var search;
8 | SearchDetail({this.search});
9 |
10 | @override
11 | _SearchDetailState createState() => _SearchDetailState(search: search);
12 | }
13 |
14 | class _SearchDetailState extends State {
15 |
16 | var search;
17 | _SearchDetailState({this.search});
18 |
19 | var searchurl = "https://earningtricks.in/index.php/wp-json/wp/v2/posts?per_page=10&status=publish&search=";
20 | var data;
21 |
22 | void postData() async {
23 | var searchdata = searchurl+search;
24 | var res = await http.get(Uri.parse(searchdata));
25 | data = jsonDecode(res.body);
26 | setState(() {});
27 | }
28 |
29 | @override
30 | void initState() {
31 | super.initState();
32 | postData();
33 | }
34 |
35 | @override
36 | Widget build(BuildContext context){
37 | return Scaffold(
38 | appBar: AppBar(
39 | title: Text(search),
40 | backgroundColor: Colors.orange,
41 | ),
42 | body: Container(
43 | child: Padding(
44 | padding: const EdgeInsets.fromLTRB(16, 8, 16, 8),
45 | child: data != null
46 | ? ListView.builder(
47 | itemCount: data.length,
48 | itemBuilder: (context, index) {
49 | return Card(
50 | child: InkWell(
51 | onTap: () {
52 | Navigator.push(
53 | context,
54 | MaterialPageRoute(
55 | builder: (context) => PostDetail(
56 | featureimage: data[index]["uagb_featured_image_src"]["jnews-360x180"][0],
57 | title: data[index]["title"]['rendered'].replaceAll("#8211;", ""),
58 | description: data[index]["content"]["rendered"],
59 | link: data[index]["link"],
60 | author: data[index]["uagb_author_info"]["display_name"],
61 | )));
62 | },
63 | child: Column(
64 | children: [
65 | Hero(
66 | tag: Key(data[index]["title"]['rendered'].replaceAll("#8211;", "")),
67 | child: Image.network(data[index]["uagb_featured_image_src"]["jnews-360x180"][0]),
68 | ),
69 | Padding(
70 | padding: const EdgeInsets.all(8.0),
71 | child: Text(
72 | data[index]["title"]['rendered'].replaceAll("#8211;", ""),
73 | style: TextStyle(
74 | fontSize: 18,
75 | fontWeight: FontWeight.bold,
76 | ),
77 | ),
78 | ),
79 | ],
80 | ),
81 | ),
82 | );
83 | },
84 | )
85 | : Center(
86 | child: CircularProgressIndicator(),
87 | )),
88 | ),
89 | );
90 | }
91 |
92 | }
--------------------------------------------------------------------------------
/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: "3.1.2"
11 | args:
12 | dependency: transitive
13 | description:
14 | name: args
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.1.1"
18 | async:
19 | dependency: transitive
20 | description:
21 | name: async
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.6.1"
25 | boolean_selector:
26 | dependency: transitive
27 | description:
28 | name: boolean_selector
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "2.1.0"
32 | characters:
33 | dependency: transitive
34 | description:
35 | name: characters
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.1.0"
39 | charcode:
40 | dependency: transitive
41 | description:
42 | name: charcode
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.2.0"
46 | chewie:
47 | dependency: transitive
48 | description:
49 | name: chewie
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.2.2"
53 | chewie_audio:
54 | dependency: transitive
55 | description:
56 | name: chewie_audio
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.2.0"
60 | clock:
61 | dependency: transitive
62 | description:
63 | name: clock
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.1.0"
67 | collection:
68 | dependency: transitive
69 | description:
70 | name: collection
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "1.15.0"
74 | connectivity:
75 | dependency: "direct main"
76 | description:
77 | name: connectivity
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "3.0.6"
81 | connectivity_for_web:
82 | dependency: transitive
83 | description:
84 | name: connectivity_for_web
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "0.4.0"
88 | connectivity_macos:
89 | dependency: transitive
90 | description:
91 | name: connectivity_macos
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "0.2.0"
95 | connectivity_platform_interface:
96 | dependency: transitive
97 | description:
98 | name: connectivity_platform_interface
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "2.0.1"
102 | crypto:
103 | dependency: transitive
104 | description:
105 | name: crypto
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "3.0.1"
109 | csslib:
110 | dependency: transitive
111 | description:
112 | name: csslib
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "0.17.0"
116 | cupertino_icons:
117 | dependency: "direct main"
118 | description:
119 | name: cupertino_icons
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "1.0.3"
123 | fake_async:
124 | dependency: transitive
125 | description:
126 | name: fake_async
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "1.2.0"
130 | ffi:
131 | dependency: transitive
132 | description:
133 | name: ffi
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "1.1.2"
137 | flutter:
138 | dependency: "direct main"
139 | description: flutter
140 | source: sdk
141 | version: "0.0.0"
142 | flutter_html:
143 | dependency: "direct main"
144 | description:
145 | name: flutter_html
146 | url: "https://pub.dartlang.org"
147 | source: hosted
148 | version: "2.1.0"
149 | flutter_layout_grid:
150 | dependency: transitive
151 | description:
152 | name: flutter_layout_grid
153 | url: "https://pub.dartlang.org"
154 | source: hosted
155 | version: "1.0.3"
156 | flutter_math_fork:
157 | dependency: transitive
158 | description:
159 | name: flutter_math_fork
160 | url: "https://pub.dartlang.org"
161 | source: hosted
162 | version: "0.3.3+1"
163 | flutter_native_splash:
164 | dependency: "direct dev"
165 | description:
166 | name: flutter_native_splash
167 | url: "https://pub.dartlang.org"
168 | source: hosted
169 | version: "1.2.0"
170 | flutter_svg:
171 | dependency: transitive
172 | description:
173 | name: flutter_svg
174 | url: "https://pub.dartlang.org"
175 | source: hosted
176 | version: "0.22.0"
177 | flutter_test:
178 | dependency: "direct dev"
179 | description: flutter
180 | source: sdk
181 | version: "0.0.0"
182 | flutter_web_plugins:
183 | dependency: transitive
184 | description: flutter
185 | source: sdk
186 | version: "0.0.0"
187 | font_awesome_flutter:
188 | dependency: "direct main"
189 | description:
190 | name: font_awesome_flutter
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "9.1.0"
194 | html:
195 | dependency: transitive
196 | description:
197 | name: html
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "0.15.0"
201 | http:
202 | dependency: "direct main"
203 | description:
204 | name: http
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "0.13.3"
208 | http_parser:
209 | dependency: transitive
210 | description:
211 | name: http_parser
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "4.0.0"
215 | image:
216 | dependency: transitive
217 | description:
218 | name: image
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "3.0.2"
222 | js:
223 | dependency: transitive
224 | description:
225 | name: js
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "0.6.3"
229 | matcher:
230 | dependency: transitive
231 | description:
232 | name: matcher
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "0.12.10"
236 | meta:
237 | dependency: transitive
238 | description:
239 | name: meta
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "1.3.0"
243 | mime:
244 | dependency: transitive
245 | description:
246 | name: mime
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "1.0.0"
250 | nested:
251 | dependency: transitive
252 | description:
253 | name: nested
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "1.0.0"
257 | numerus:
258 | dependency: transitive
259 | description:
260 | name: numerus
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "1.1.1"
264 | path:
265 | dependency: transitive
266 | description:
267 | name: path
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "1.8.0"
271 | path_drawing:
272 | dependency: transitive
273 | description:
274 | name: path_drawing
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "0.5.1"
278 | path_parsing:
279 | dependency: transitive
280 | description:
281 | name: path_parsing
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "0.2.1"
285 | pedantic:
286 | dependency: transitive
287 | description:
288 | name: pedantic
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "1.11.1"
292 | petitparser:
293 | dependency: transitive
294 | description:
295 | name: petitparser
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "4.1.0"
299 | plugin_platform_interface:
300 | dependency: transitive
301 | description:
302 | name: plugin_platform_interface
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "2.0.0"
306 | provider:
307 | dependency: transitive
308 | description:
309 | name: provider
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "5.0.0"
313 | quiver:
314 | dependency: transitive
315 | description:
316 | name: quiver
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "3.0.1"
320 | share:
321 | dependency: "direct main"
322 | description:
323 | name: share
324 | url: "https://pub.dartlang.org"
325 | source: hosted
326 | version: "2.0.4"
327 | sky_engine:
328 | dependency: transitive
329 | description: flutter
330 | source: sdk
331 | version: "0.0.99"
332 | source_span:
333 | dependency: transitive
334 | description:
335 | name: source_span
336 | url: "https://pub.dartlang.org"
337 | source: hosted
338 | version: "1.8.1"
339 | stack_trace:
340 | dependency: transitive
341 | description:
342 | name: stack_trace
343 | url: "https://pub.dartlang.org"
344 | source: hosted
345 | version: "1.10.0"
346 | stream_channel:
347 | dependency: transitive
348 | description:
349 | name: stream_channel
350 | url: "https://pub.dartlang.org"
351 | source: hosted
352 | version: "2.1.0"
353 | string_scanner:
354 | dependency: transitive
355 | description:
356 | name: string_scanner
357 | url: "https://pub.dartlang.org"
358 | source: hosted
359 | version: "1.1.0"
360 | term_glyph:
361 | dependency: transitive
362 | description:
363 | name: term_glyph
364 | url: "https://pub.dartlang.org"
365 | source: hosted
366 | version: "1.2.0"
367 | test_api:
368 | dependency: transitive
369 | description:
370 | name: test_api
371 | url: "https://pub.dartlang.org"
372 | source: hosted
373 | version: "0.3.0"
374 | tuple:
375 | dependency: transitive
376 | description:
377 | name: tuple
378 | url: "https://pub.dartlang.org"
379 | source: hosted
380 | version: "2.0.0"
381 | typed_data:
382 | dependency: transitive
383 | description:
384 | name: typed_data
385 | url: "https://pub.dartlang.org"
386 | source: hosted
387 | version: "1.3.0"
388 | universal_io:
389 | dependency: transitive
390 | description:
391 | name: universal_io
392 | url: "https://pub.dartlang.org"
393 | source: hosted
394 | version: "2.0.4"
395 | url_launcher:
396 | dependency: "direct main"
397 | description:
398 | name: url_launcher
399 | url: "https://pub.dartlang.org"
400 | source: hosted
401 | version: "6.0.8"
402 | url_launcher_linux:
403 | dependency: transitive
404 | description:
405 | name: url_launcher_linux
406 | url: "https://pub.dartlang.org"
407 | source: hosted
408 | version: "2.0.0"
409 | url_launcher_macos:
410 | dependency: transitive
411 | description:
412 | name: url_launcher_macos
413 | url: "https://pub.dartlang.org"
414 | source: hosted
415 | version: "2.0.0"
416 | url_launcher_platform_interface:
417 | dependency: transitive
418 | description:
419 | name: url_launcher_platform_interface
420 | url: "https://pub.dartlang.org"
421 | source: hosted
422 | version: "2.0.3"
423 | url_launcher_web:
424 | dependency: transitive
425 | description:
426 | name: url_launcher_web
427 | url: "https://pub.dartlang.org"
428 | source: hosted
429 | version: "2.0.1"
430 | url_launcher_windows:
431 | dependency: transitive
432 | description:
433 | name: url_launcher_windows
434 | url: "https://pub.dartlang.org"
435 | source: hosted
436 | version: "2.0.0"
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"
444 | video_player:
445 | dependency: transitive
446 | description:
447 | name: video_player
448 | url: "https://pub.dartlang.org"
449 | source: hosted
450 | version: "2.1.6"
451 | video_player_platform_interface:
452 | dependency: transitive
453 | description:
454 | name: video_player_platform_interface
455 | url: "https://pub.dartlang.org"
456 | source: hosted
457 | version: "4.1.0"
458 | video_player_web:
459 | dependency: transitive
460 | description:
461 | name: video_player_web
462 | url: "https://pub.dartlang.org"
463 | source: hosted
464 | version: "2.0.1"
465 | wakelock:
466 | dependency: transitive
467 | description:
468 | name: wakelock
469 | url: "https://pub.dartlang.org"
470 | source: hosted
471 | version: "0.5.2"
472 | wakelock_macos:
473 | dependency: transitive
474 | description:
475 | name: wakelock_macos
476 | url: "https://pub.dartlang.org"
477 | source: hosted
478 | version: "0.1.0+1"
479 | wakelock_platform_interface:
480 | dependency: transitive
481 | description:
482 | name: wakelock_platform_interface
483 | url: "https://pub.dartlang.org"
484 | source: hosted
485 | version: "0.2.1+1"
486 | wakelock_web:
487 | dependency: transitive
488 | description:
489 | name: wakelock_web
490 | url: "https://pub.dartlang.org"
491 | source: hosted
492 | version: "0.2.0+1"
493 | wakelock_windows:
494 | dependency: transitive
495 | description:
496 | name: wakelock_windows
497 | url: "https://pub.dartlang.org"
498 | source: hosted
499 | version: "0.1.0"
500 | webview_flutter:
501 | dependency: transitive
502 | description:
503 | name: webview_flutter
504 | url: "https://pub.dartlang.org"
505 | source: hosted
506 | version: "2.0.9"
507 | win32:
508 | dependency: transitive
509 | description:
510 | name: win32
511 | url: "https://pub.dartlang.org"
512 | source: hosted
513 | version: "2.2.4"
514 | xml:
515 | dependency: transitive
516 | description:
517 | name: xml
518 | url: "https://pub.dartlang.org"
519 | source: hosted
520 | version: "5.1.2"
521 | yaml:
522 | dependency: transitive
523 | description:
524 | name: yaml
525 | url: "https://pub.dartlang.org"
526 | source: hosted
527 | version: "3.1.0"
528 | sdks:
529 | dart: ">=2.13.0 <3.0.0"
530 | flutter: ">=2.2.0"
531 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: first_flutter_app
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.12.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 |
27 |
28 | # The following adds the Cupertino Icons font to your application.
29 | # Use with the CupertinoIcons class for iOS style icons.
30 | cupertino_icons: ^1.0.2
31 | http: ^0.13.3
32 | flutter_html: ^2.1.0
33 | url_launcher: ^6.0.8
34 | share: ^2.0.4
35 | font_awesome_flutter: ^9.1.0
36 | connectivity: ^3.0.6
37 |
38 | dev_dependencies:
39 | flutter_test:
40 | sdk: flutter
41 |
42 | flutter_native_splash: ^1.2.0
43 |
44 | flutter_native_splash:
45 | color: "#ffffff"
46 | image: assets/launch_image.jpg
47 | android: true
48 | ios: true
49 |
50 | # For information on the generic Dart part of this file, see the
51 | # following page: https://dart.dev/tools/pub/pubspec
52 |
53 | # The following section is specific to Flutter.
54 | flutter:
55 |
56 | # The following line ensures that the Material Icons font is
57 | # included with your application, so that you can use the icons in
58 | # the material Icons class.
59 | uses-material-design: true
60 |
61 | # To add assets to your application, add an assets section, like this:
62 | assets:
63 | - assets/
64 | # - images/a_dot_burr.jpeg
65 | # - images/a_dot_ham.jpeg
66 |
67 | # An image asset can refer to one or more resolution-specific "variants", see
68 | # https://flutter.dev/assets-and-images/#resolution-aware.
69 |
70 | # For details regarding adding assets from package dependencies, see
71 | # https://flutter.dev/assets-and-images/#from-packages
72 |
73 | # To add custom fonts to your application, add a fonts section here,
74 | # in this "flutter" section. Each entry in this list should have a
75 | # "family" key with the font family name, and a "fonts" key with a
76 | # list giving the asset and other descriptors for the font. For
77 | # example:
78 | # fonts:
79 | # - family: Schyler
80 | # fonts:
81 | # - asset: fonts/Schyler-Regular.ttf
82 | # - asset: fonts/Schyler-Italic.ttf
83 | # style: italic
84 | # - family: Trajan Pro
85 | # fonts:
86 | # - asset: fonts/TrajanPro.ttf
87 | # - asset: fonts/TrajanPro_Bold.ttf
88 | # weight: 700
89 | #
90 | # For details regarding fonts from package dependencies,
91 | # see https://flutter.dev/custom-fonts/#from-packages
92 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:first_flutter_app/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | first_flutter_app
32 |
33 |
34 |
35 |
36 |
39 |
103 |
104 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "first_flutter_app",
3 | "short_name": "first_flutter_app",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/web/splash/img/dark-1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/web/splash/img/dark-1x.png
--------------------------------------------------------------------------------
/web/splash/img/dark-2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/web/splash/img/dark-2x.png
--------------------------------------------------------------------------------
/web/splash/img/dark-3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/web/splash/img/dark-3x.png
--------------------------------------------------------------------------------
/web/splash/img/light-1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/web/splash/img/light-1x.png
--------------------------------------------------------------------------------
/web/splash/img/light-2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/web/splash/img/light-2x.png
--------------------------------------------------------------------------------
/web/splash/img/light-3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tronajay/flutter-news-app-wordpress/3ea6e033a9a457a754231d26986c091926c0b14b/web/splash/img/light-3x.png
--------------------------------------------------------------------------------
/web/splash/style.css:
--------------------------------------------------------------------------------
1 | body, html {
2 | margin:0;
3 | height:100%;
4 | background: #ffffff;
5 | background-image: url("img/light-background.png");
6 | background-size: 100% 100%;
7 | }
8 |
9 | .center {
10 | margin: 0;
11 | position: absolute;
12 | top: 50%;
13 | left: 50%;
14 | -ms-transform: translate(-50%, -50%);
15 | transform: translate(-50%, -50%);
16 | }
17 |
18 | .contain {
19 | display:block;
20 | width:100%; height:100%;
21 | object-fit: contain;
22 | }
23 |
24 | .stretch {
25 | display:block;
26 | width:100%; height:100%;
27 | }
28 |
29 | .cover {
30 | display:block;
31 | width:100%; height:100%;
32 | object-fit: cover;
33 | }
34 |
35 | @media (prefers-color-scheme: dark) {
36 | body {
37 | margin:0;
38 | height:100%;
39 | background: #ffffff;
40 | background-image: url("img/dark-background.png");
41 | background-size: 100% 100%;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------