diff --git a/rohith/app.apk b/rohith/app.apk new file mode 100644 index 0000000..7e468d9 Binary files /dev/null and b/rohith/app.apk differ diff --git a/rohith/news_app/.gitignore b/rohith/news_app/.gitignore new file mode 100644 index 0000000..0fa6b67 --- /dev/null +++ b/rohith/news_app/.gitignore @@ -0,0 +1,46 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +/build/ + +# Web related +lib/generated_plugin_registrant.dart + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release diff --git a/rohith/news_app/.gradle/6.1.1/executionHistory/executionHistory.lock b/rohith/news_app/.gradle/6.1.1/executionHistory/executionHistory.lock new file mode 100644 index 0000000..5cc0d50 Binary files /dev/null and b/rohith/news_app/.gradle/6.1.1/executionHistory/executionHistory.lock differ diff --git a/rohith/news_app/.gradle/6.1.1/fileChanges/last-build.bin b/rohith/news_app/.gradle/6.1.1/fileChanges/last-build.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/rohith/news_app/.gradle/6.1.1/fileChanges/last-build.bin differ diff --git a/rohith/news_app/.gradle/6.1.1/fileHashes/fileHashes.lock b/rohith/news_app/.gradle/6.1.1/fileHashes/fileHashes.lock new file mode 100644 index 0000000..af68112 Binary files /dev/null and b/rohith/news_app/.gradle/6.1.1/fileHashes/fileHashes.lock differ diff --git a/rohith/news_app/.gradle/6.1.1/gc.properties b/rohith/news_app/.gradle/6.1.1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/rohith/news_app/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/rohith/news_app/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000..cf84975 Binary files /dev/null and b/rohith/news_app/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/rohith/news_app/.gradle/buildOutputCleanup/cache.properties b/rohith/news_app/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..bddc65b --- /dev/null +++ b/rohith/news_app/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Sun Dec 05 11:17:51 IST 2021 +gradle.version=6.1.1 diff --git a/rohith/news_app/.gradle/checksums/checksums.lock b/rohith/news_app/.gradle/checksums/checksums.lock new file mode 100644 index 0000000..e0e73ba Binary files /dev/null and b/rohith/news_app/.gradle/checksums/checksums.lock differ diff --git a/rohith/news_app/.gradle/vcs-1/gc.properties b/rohith/news_app/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/rohith/news_app/.metadata b/rohith/news_app/.metadata new file mode 100644 index 0000000..be0f63d --- /dev/null +++ b/rohith/news_app/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: 4cc385b4b84ac2f816d939a49ea1f328c4e0b48e + channel: stable + +project_type: app diff --git a/rohith/news_app/README.md b/rohith/news_app/README.md new file mode 100644 index 0000000..3970e8e --- /dev/null +++ b/rohith/news_app/README.md @@ -0,0 +1,16 @@ +# news_app + +A Flutter application using news api. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) + +For help getting started with Flutter, view our +[online documentation](https://flutter.dev/docs), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/rohith/news_app/analysis_options.yaml b/rohith/news_app/analysis_options.yaml new file mode 100644 index 0000000..61b6c4d --- /dev/null +++ b/rohith/news_app/analysis_options.yaml @@ -0,0 +1,29 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at + # https://dart-lang.github.io/linter/lints/index.html. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/rohith/news_app/android/.gitignore b/rohith/news_app/android/.gitignore new file mode 100644 index 0000000..6f56801 --- /dev/null +++ b/rohith/news_app/android/.gitignore @@ -0,0 +1,13 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java + +# Remember to never publicly share your keystore. +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +key.properties +**/*.keystore +**/*.jks diff --git a/rohith/news_app/android/app/build.gradle b/rohith/news_app/android/app/build.gradle new file mode 100644 index 0000000..3ee3e12 --- /dev/null +++ b/rohith/news_app/android/app/build.gradle @@ -0,0 +1,55 @@ +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdkVersion 30 + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.news_app" + minSdkVersion 19 + targetSdkVersion 30 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} diff --git a/rohith/news_app/android/app/src/debug/AndroidManifest.xml b/rohith/news_app/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..af9b878 --- /dev/null +++ b/rohith/news_app/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/rohith/news_app/android/app/src/main/AndroidManifest.xml b/rohith/news_app/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..099e72b --- /dev/null +++ b/rohith/news_app/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + diff --git a/rohith/news_app/android/app/src/main/java/com/example/news_app/MainActivity.java b/rohith/news_app/android/app/src/main/java/com/example/news_app/MainActivity.java new file mode 100644 index 0000000..c433704 --- /dev/null +++ b/rohith/news_app/android/app/src/main/java/com/example/news_app/MainActivity.java @@ -0,0 +1,6 @@ +package com.example.news_app; + +import io.flutter.embedding.android.FlutterActivity; + +public class MainActivity extends FlutterActivity { +} diff --git a/rohith/news_app/android/app/src/main/res/drawable-v21/launch_background.xml b/rohith/news_app/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000..f74085f --- /dev/null +++ b/rohith/news_app/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/rohith/news_app/android/app/src/main/res/drawable/launch_background.xml b/rohith/news_app/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/rohith/news_app/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/rohith/news_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/rohith/news_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/rohith/news_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/rohith/news_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/rohith/news_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/rohith/news_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/rohith/news_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/rohith/news_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/rohith/news_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/rohith/news_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/rohith/news_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/rohith/news_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/rohith/news_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/rohith/news_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/rohith/news_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/rohith/news_app/android/app/src/main/res/values-night/styles.xml b/rohith/news_app/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..449a9f9 --- /dev/null +++ b/rohith/news_app/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/rohith/news_app/android/app/src/main/res/values/styles.xml b/rohith/news_app/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..d74aa35 --- /dev/null +++ b/rohith/news_app/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/rohith/news_app/android/app/src/profile/AndroidManifest.xml b/rohith/news_app/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..af9b878 --- /dev/null +++ b/rohith/news_app/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/rohith/news_app/android/build.gradle b/rohith/news_app/android/build.gradle new file mode 100644 index 0000000..622ddc5 --- /dev/null +++ b/rohith/news_app/android/build.gradle @@ -0,0 +1,27 @@ +buildscript { + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:4.1.0' + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" + project.evaluationDependsOn(':app') +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/rohith/news_app/android/gradle.properties b/rohith/news_app/android/gradle.properties new file mode 100644 index 0000000..94adc3a --- /dev/null +++ b/rohith/news_app/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx1536M +android.useAndroidX=true +android.enableJetifier=true diff --git a/rohith/news_app/android/gradle/wrapper/gradle-wrapper.properties b/rohith/news_app/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..bc6a58a --- /dev/null +++ b/rohith/news_app/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Jun 23 08:50:38 CEST 2017 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip diff --git a/rohith/news_app/android/settings.gradle b/rohith/news_app/android/settings.gradle new file mode 100644 index 0000000..44e62bc --- /dev/null +++ b/rohith/news_app/android/settings.gradle @@ -0,0 +1,11 @@ +include ':app' + +def localPropertiesFile = new File(rootProject.projectDir, "local.properties") +def properties = new Properties() + +assert localPropertiesFile.exists() +localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + +def flutterSdkPath = properties.getProperty("flutter.sdk") +assert flutterSdkPath != null, "flutter.sdk not set in local.properties" +apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/rohith/news_app/assets/images/mypic.jpg b/rohith/news_app/assets/images/mypic.jpg new file mode 100644 index 0000000..ec97166 Binary files /dev/null and b/rohith/news_app/assets/images/mypic.jpg differ diff --git a/rohith/news_app/ios/.gitignore b/rohith/news_app/ios/.gitignore new file mode 100644 index 0000000..151026b --- /dev/null +++ b/rohith/news_app/ios/.gitignore @@ -0,0 +1,33 @@ +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/ephemeral/ +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/rohith/news_app/ios/Flutter/AppFrameworkInfo.plist b/rohith/news_app/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..8d4492f --- /dev/null +++ b/rohith/news_app/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 9.0 + + diff --git a/rohith/news_app/ios/Flutter/Debug.xcconfig b/rohith/news_app/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/rohith/news_app/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/rohith/news_app/ios/Flutter/Release.xcconfig b/rohith/news_app/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/rohith/news_app/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/rohith/news_app/ios/Runner.xcodeproj/project.pbxproj b/rohith/news_app/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..e68e778 --- /dev/null +++ b/rohith/news_app/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,472 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; + 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, + 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 97C146F11CF9000F007C117D /* Supporting Files */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + ); + path = Runner; + sourceTree = ""; + }; + 97C146F11CF9000F007C117D /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 97C146F21CF9000F007C117D /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, + 97C146F31CF9000F007C117D /* main.m in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.newsApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.newsApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.newsApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/rohith/news_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/rohith/news_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/rohith/news_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/rohith/news_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/rohith/news_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/rohith/news_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/rohith/news_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/rohith/news_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/rohith/news_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/rohith/news_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/rohith/news_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..a28140c --- /dev/null +++ b/rohith/news_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/rohith/news_app/ios/Runner.xcworkspace/contents.xcworkspacedata b/rohith/news_app/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/rohith/news_app/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/rohith/news_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/rohith/news_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/rohith/news_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/rohith/news_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/rohith/news_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/rohith/news_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/rohith/news_app/ios/Runner/AppDelegate.h b/rohith/news_app/ios/Runner/AppDelegate.h new file mode 100644 index 0000000..36e21bb --- /dev/null +++ b/rohith/news_app/ios/Runner/AppDelegate.h @@ -0,0 +1,6 @@ +#import +#import + +@interface AppDelegate : FlutterAppDelegate + +@end diff --git a/rohith/news_app/ios/Runner/AppDelegate.m b/rohith/news_app/ios/Runner/AppDelegate.m new file mode 100644 index 0000000..70e8393 --- /dev/null +++ b/rohith/news_app/ios/Runner/AppDelegate.m @@ -0,0 +1,13 @@ +#import "AppDelegate.h" +#import "GeneratedPluginRegistrant.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [GeneratedPluginRegistrant registerWithRegistry:self]; + // Override point for customization after application launch. + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..dc9ada4 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..28c6bf0 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..f091b6b Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..4cde121 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..d0ef06e Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..dcdc230 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..2ccbfd9 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..c8f9ed8 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..a6d6b86 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..75b2d16 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..c4df70d Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..6a84f41 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..d0e1f58 Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/rohith/news_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +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. \ No newline at end of file diff --git a/rohith/news_app/ios/Runner/Base.lproj/LaunchScreen.storyboard b/rohith/news_app/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/rohith/news_app/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/rohith/news_app/ios/Runner/Base.lproj/Main.storyboard b/rohith/news_app/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/rohith/news_app/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/rohith/news_app/ios/Runner/Info.plist b/rohith/news_app/ios/Runner/Info.plist new file mode 100644 index 0000000..5390865 --- /dev/null +++ b/rohith/news_app/ios/Runner/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + news_app + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/rohith/news_app/ios/Runner/main.m b/rohith/news_app/ios/Runner/main.m new file mode 100644 index 0000000..dff6597 --- /dev/null +++ b/rohith/news_app/ios/Runner/main.m @@ -0,0 +1,9 @@ +#import +#import +#import "AppDelegate.h" + +int main(int argc, char* argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/rohith/news_app/lib/detail/custom_app_bar.dart b/rohith/news_app/lib/detail/custom_app_bar.dart new file mode 100644 index 0000000..c9d29ec --- /dev/null +++ b/rohith/news_app/lib/detail/custom_app_bar.dart @@ -0,0 +1,50 @@ +import 'package:flutter/material.dart'; + +class CustomAppBar extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.fromLTRB(4, 10, 4, 8), + child: Row( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.start, + children: const [ + CircleAvatar( + + // child: GestureDetector( + // onTap: () {Navigator.of(context).pushNamed(Portfolio.routeName);}, + // child: CustomAppBar()), + radius: 24, + backgroundImage: AssetImage('assets/images/mypic.jpg'), + ), + SizedBox(width: 80), + //Text('13 Oct,2021') + Text( + "NewsApp", + style: TextStyle(color: Colors.blue, fontWeight: FontWeight.w600,fontSize: 30), + ) + ], + ), + // Container( + // width: 300, + // child: TextField( + // style: TextStyle(fontSize: 15), + // cursorColor: Colors.black, + // decoration: InputDecoration( + // suffixIcon: const Icon( + // Icons.search, + // color: Colors.grey, + // ), + // border: InputBorder.none, + // hintText: "Search News", + // filled: true, + // fillColor: Colors.grey[200])), + // ), + + ], + ), + ); + } +} diff --git a/rohith/news_app/lib/detail/portfolio.dart b/rohith/news_app/lib/detail/portfolio.dart new file mode 100644 index 0000000..0424aa6 --- /dev/null +++ b/rohith/news_app/lib/detail/portfolio.dart @@ -0,0 +1,258 @@ +import 'package:flutter/material.dart'; +import 'package:news_app/views/home.dart'; + +class Portfolio extends StatelessWidget { + + static const routeName = 'Portfolio'; + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + backgroundColor: Colors.white, + leading: IconButton(onPressed: () { + Navigator.of(context).pop(); + }, icon: Icon(Icons.arrow_back_ios,color: Colors.black,),), + ), + body: Padding( + padding: EdgeInsets.fromLTRB(30.0, 20.0, 30.0, 5.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Center( + child: CircleAvatar( + backgroundImage: AssetImage('assets/images/mypic.jpg'), + radius: 40.0, + ), + ), + + SizedBox(height: 20.0,), + const Center( + child: Text( + 'Rohith Prakash', + style: TextStyle( + letterSpacing: 2.0, + fontSize: 20.0, + fontWeight: FontWeight.bold, + ), + ), + ), + const SizedBox(height: 15.0,), + Center( + child: Text( + 'Full Stack Developer', + style: TextStyle( + color: Colors.grey[600], + letterSpacing: 1.5, + ), + ), + ), + Divider( + height: 60.0, + color: Colors.grey[800], + ), + Container( + width: 420.0, + height:60.0, + padding: EdgeInsets.fromLTRB(20, 10, 10, 10), + decoration: BoxDecoration( + border: Border.all(color: Colors.grey), + borderRadius: const BorderRadius.all( + Radius.circular(5.0) + ), + + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text( + 'About', + style: TextStyle( + fontSize: 20.0, + fontWeight: FontWeight.bold, + ), + ), + Align( + child: Icon( + Icons.arrow_drop_down, + size: 40.0, + color: Colors.grey[850], + ), + ) + ], + ), + ), + + SizedBox(height: 10.0,), + Container( + width: 420.0, + height:60.0, + padding: EdgeInsets.fromLTRB(20, 10, 10, 10), + decoration: BoxDecoration( + border: Border.all(color: Colors.grey), + borderRadius: BorderRadius.all( + Radius.circular(5.0) + ), + + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text('Skills', + style: TextStyle( + fontSize: 20.0, + fontWeight: FontWeight.bold, + ), + ), + Align( + child: Icon( + Icons.arrow_drop_down, + size: 40.0, + color: Colors.grey[850], + ), + ) + ], + ), + ), + + SizedBox(height: 10.0,), + Container( + width: 420.0, + height:60.0, + padding: EdgeInsets.fromLTRB(20, 10, 10, 10), + decoration: BoxDecoration( + border: Border.all(color: Colors.grey), + borderRadius: BorderRadius.all( + Radius.circular(5.0) + ), + + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text('Connect', + style: TextStyle( + fontSize: 20.0, + fontWeight: FontWeight.bold, + ), + ), + Align( + child: Icon( + Icons.arrow_drop_up, + size: 40.0, + color: Colors.grey[850], + ), + ) + ], + ), + ), + + SizedBox(height: 30.0,), + + Padding( + padding: const EdgeInsets.fromLTRB(20.0, 0.0, 0.0, 0.0), + child: Row( + children: [ + Text( + 'Github:', + style: TextStyle( + color: Colors.grey[600], + fontSize: 20.0, + letterSpacing: 1.5, + ), + ), + SizedBox(width: 30.0,), + Text( + 'rohithp7777', + style: TextStyle( + color: Colors.yellowAccent[600], + letterSpacing: 2.0, + fontSize: 20.0, + fontWeight: FontWeight.bold, + ), + ), + ], + ), + ), + SizedBox(height: 30.0,), + Padding( + padding: const EdgeInsets.fromLTRB(20.0, 0.0, 0.0, 0.0), + child: Row( + children: [ + Text( + 'LinkedIn:', + style: TextStyle( + color: Colors.grey[600], + fontSize: 20.0, + letterSpacing: 1.5, + ), + ), + SizedBox(width: 30.0,), + Text( + 'rohith-prakash-', + style: TextStyle( + color: Colors.yellowAccent[600], + letterSpacing: 2.0, + fontSize: 20.0, + fontWeight: FontWeight.bold, + ), + ), + ], + ), + ), + SizedBox(height: 30.0,), + Padding( + padding: const EdgeInsets.fromLTRB(20.0, 0.0, 0.0, 0.0), + child: Row( + children: [ + Text( + 'Instagram:', + style: TextStyle( + color: Colors.grey[600], + fontSize: 20.0, + letterSpacing: 1.5, + ), + ), + SizedBox(width: 30.0,), + Text( + 'rohithp7._', + style: TextStyle( + color: Colors.yellowAccent[600], + letterSpacing: 2.0, + fontSize: 20.0, + fontWeight: FontWeight.bold, + ), + ), + ], + ), + ), + + SizedBox(height: 30.0,), + Padding( + padding: const EdgeInsets.fromLTRB(20.0, 0.0, 0.0, 0.0), + child: Row( + children: [ + Icon( + Icons.email, + size: 40.0, + color: Colors.grey[600], + ), + SizedBox(width: 10.0,), + Text( + 'rohithp8899@gmail.com', + style: TextStyle( + color: Colors.yellowAccent[600], + letterSpacing: 2.0, + fontSize: 18.0, + fontWeight: FontWeight.bold, + ), + ), + ], + ), + ), + + ], + ), + ), + ); + } +} diff --git a/rohith/news_app/lib/helper/data.dart b/rohith/news_app/lib/helper/data.dart new file mode 100644 index 0000000..7c7fa9a --- /dev/null +++ b/rohith/news_app/lib/helper/data.dart @@ -0,0 +1,54 @@ +import 'package:news_app/models/category_model.dart'; + +List getCategories(){ + + List myCategories = []; + CategorieModel categorieModel; + + //1 + + categorieModel = new CategorieModel(); + categorieModel.categorieName = "General"; + categorieModel.imageAssetUrl = "https://images.unsplash.com/photo-1495020689067-958852a7765e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=60"; + myCategories.add(categorieModel); + + categorieModel = new CategorieModel(); + categorieModel.categorieName = "Business"; + categorieModel.imageAssetUrl = "https://images.unsplash.com/photo-1507679799987-c73779587ccf?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1502&q=80"; + myCategories.add(categorieModel); + + //2 + categorieModel = new CategorieModel(); + categorieModel.categorieName = "Entertainment"; + categorieModel.imageAssetUrl = "https://images.unsplash.com/photo-1522869635100-9f4c5e86aa37?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1500&q=80"; + myCategories.add(categorieModel); + + //3 + + //4 + categorieModel = new CategorieModel(); + categorieModel.categorieName = "Health"; + categorieModel.imageAssetUrl = "https://images.unsplash.com/photo-1494390248081-4e521a5940db?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1595&q=80"; + myCategories.add(categorieModel); + + //5 + categorieModel = new CategorieModel(); + categorieModel.categorieName = "Science"; + categorieModel.imageAssetUrl = "https://images.unsplash.com/photo-1554475901-4538ddfbccc2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1504&q=80"; + myCategories.add(categorieModel); + + //5 + categorieModel = new CategorieModel(); + categorieModel.categorieName = "Sports"; + categorieModel.imageAssetUrl = "https://images.unsplash.com/photo-1495563923587-bdc4282494d0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80"; + myCategories.add(categorieModel); + + //5 + categorieModel = new CategorieModel(); + categorieModel.categorieName = "Technology"; + categorieModel.imageAssetUrl = "https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1500&q=80"; + myCategories.add(categorieModel); + + return myCategories; + +} \ No newline at end of file diff --git a/rohith/news_app/lib/helper/news.dart b/rohith/news_app/lib/helper/news.dart new file mode 100644 index 0000000..4c5d026 --- /dev/null +++ b/rohith/news_app/lib/helper/news.dart @@ -0,0 +1,109 @@ +import 'package:http/http.dart' as http; +import 'package:news_app/models/article.dart'; +import 'package:news_app/models/headline_model.dart'; +import 'dart:convert'; +import 'package:news_app/secret.dart'; + +class News { + + List
news = []; + + Future getNews() async{ + + String url = 'https://newsapi.org/v2/everything?q=the&sortBy=popularity&language=en&apiKey=${apiKey}'; + + var response = await http.get(Uri.parse(url)); + var jsonData = jsonDecode(response.body); + //log('tag:$jsonData'); + if(jsonData['status'] == "ok"){ + jsonData["articles"].forEach((element){ + + if(element['urlToImage'] != null && element['description'] != null){ + Article article = Article( + title: element['title'], + author: element['author'], + description: element['description'], + urlToImage: element['urlToImage'], + publshedAt: DateTime.parse(element['publishedAt']), + content: element["content"], + articleUrl: element["url"], + ); + news.add(article); + } + + }); + } + + + } + + +} + +class Headlines { + + List headlines = []; + + Future getHeadlines() async{ + + String url = 'http://newsapi.org/v2/top-headlines?country=in&excludeDomains=stackoverflow.com&sortBy=popularity&language=en&apiKey=${apiKey}'; + + var response = await http.get(Uri.parse(url)); + print(response); + var jsonData = jsonDecode(response.body); + + if(jsonData['status'] == "ok"){ + jsonData["articles"].forEach((element){ + + if(element['urlToImage'] != null && element['description'] != null){ + HeadlineModel head = HeadlineModel( + title: element['title'], + urlToImage: element['urlToImage'], + articleUrl: element["url"], + ); + headlines.add(head); + } + + }); + } + + } + + +} + +class NewsForCategorie { + + List
news = []; + + Future getNewsForCategory(String category) async{ + + String url = "http://newsapi.org/v2/top-headlines?country=in&category=$category&apiKey=${apiKey}"; + + var response = await http.get(Uri.parse(url)); + + var jsonData = jsonDecode(response.body); + + if(jsonData['status'] == "ok"){ + jsonData["articles"].forEach((element){ + + if(element['urlToImage'] != null && element['description'] != null){ + Article article = Article( + title: element['title'], + author: element['author'], + description: element['description'], + urlToImage: element['urlToImage'], + publshedAt: DateTime.parse(element['publishedAt']), + content: element["content"], + articleUrl: element["url"], + ); + news.add(article); + } + + }); + } + + + } + +} diff --git a/rohith/news_app/lib/helper/widgets.dart b/rohith/news_app/lib/helper/widgets.dart new file mode 100644 index 0000000..771fcd0 --- /dev/null +++ b/rohith/news_app/lib/helper/widgets.dart @@ -0,0 +1,148 @@ +import 'package:flutter/material.dart'; +import 'package:news_app/views/article_view.dart'; + +Widget MyAppBar(){ + return AppBar( + title: PreferredSize( + preferredSize: Size.fromHeight(100.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + "News", + style: + TextStyle(color: Colors.black87, fontWeight: FontWeight.w600), + ), + Text( + "App", + style: TextStyle(color: Colors.blue, fontWeight: FontWeight.w600), + ) + ], + ), + ), + backgroundColor: Colors.transparent, + elevation: 0.0, + ); +} + + +class NewsTile extends StatelessWidget { + final String imgUrl, title, desc, content, posturl; + + NewsTile({required this.imgUrl, required this.desc, required this.title, required this.content, required this.posturl}); + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: (){ + Navigator.push(context, MaterialPageRoute( + builder: (context) => ArticleView( + postUrl: posturl, + ) + )); + }, + child: Container( + margin: EdgeInsets.only(bottom: 24), + width: MediaQuery.of(context).size.width, + child: Container( + child: Container( + padding: EdgeInsets.symmetric(horizontal: 16), + alignment: Alignment.bottomCenter, + decoration: BoxDecoration( + borderRadius: BorderRadius.only(bottomRight: Radius.circular(6),bottomLeft: Radius.circular(6)) + ), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + ClipRRect( + borderRadius: BorderRadius.circular(6), + child: Image.network( + imgUrl, + height: 200, + width: MediaQuery.of(context).size.width, + fit: BoxFit.cover, + )), + SizedBox(height: 12,), + Text( + title, + maxLines: 2, + style: TextStyle( + color: Colors.black87, + fontSize: 20, + fontWeight: FontWeight.w500), + ), + SizedBox( + height: 4, + ), + Text( + desc, + maxLines: 2, + style: TextStyle(color: Colors.black54, fontSize: 14), + ) + ], + ), + ), + )), + ); + } +} + +class HeadlineTile extends StatelessWidget { + final String imgUrl, title, posturl; + + HeadlineTile({required this.imgUrl, required this.title, required this.posturl}); + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: (){ + Navigator.push(context, MaterialPageRoute( + builder: (context) => ArticleView( + postUrl: posturl, + ) + )); + }, + child: Container( + margin: EdgeInsets.only(bottom: 10,top:10), + width: MediaQuery.of(context).size.width, + child: Container( + child: Container( + padding: EdgeInsets.symmetric(horizontal: 16), + alignment: Alignment.bottomCenter, + decoration: BoxDecoration( + borderRadius: BorderRadius.only(bottomRight: Radius.circular(6),bottomLeft: Radius.circular(6)) + ), + child: Stack( + children: [ + ClipRRect( + borderRadius: BorderRadius.circular(6), + child: Image.network( + imgUrl, + height: 180, + width: MediaQuery.of(context).size.width, + fit: BoxFit.cover, + )), + Padding( + padding: const EdgeInsets.fromLTRB(8.0,108.0,8.0,8.0), + child: Container( + child: Text( + title, + maxLines: 2, + style: TextStyle(fontSize: 18,color: Colors.white,shadows: [ + Shadow( + blurRadius: 6.0, + color: Colors.black, + offset: Offset(1.0, 1.0), + ), + ],) + ), + ), + ), + ], + ), + ), + )), + ); + } +} \ No newline at end of file diff --git a/rohith/news_app/lib/main.dart b/rohith/news_app/lib/main.dart new file mode 100644 index 0000000..10743e9 --- /dev/null +++ b/rohith/news_app/lib/main.dart @@ -0,0 +1,108 @@ +import 'package:flutter/material.dart'; +import 'package:news_app/views/home.dart'; + +void main() { + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({Key? key}) : super(key: key); + + // This widget is the root of your application. + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Flutter Demo', + theme: ThemeData( + primarySwatch: Colors.blue, + ), + home: Home(), + ); + } +} + + +// class MyHomePage extends StatefulWidget { +// const MyHomePage({Key? key, required this.title}) : super(key: key); +// +// // This widget is the home page of your application. It is stateful, meaning +// // that it has a State object (defined below) that contains fields that affect +// // how it looks. +// +// // This class is the configuration for the state. It holds the values (in this +// // case the title) provided by the parent (in this case the App widget) and +// // used by the build method of the State. Fields in a Widget subclass are +// // always marked "final". +// +// final String title; +// +// @override +// State createState() => _MyHomePageState(); +// } +// +// class _MyHomePageState extends State { +// int _counter = 0; +// +// void _incrementCounter() { +// setState(() { +// // This call to setState tells the Flutter framework that something has +// // changed in this State, which causes it to rerun the build method below +// // so that the display can reflect the updated values. If we changed +// // _counter without calling setState(), then the build method would not be +// // called again, and so nothing would appear to happen. +// _counter++; +// }); +// } +// +// @override +// Widget build(BuildContext context) { +// // This method is rerun every time setState is called, for instance as done +// // by the _incrementCounter method above. +// // +// // The Flutter framework has been optimized to make rerunning build methods +// // fast, so that you can just rebuild anything that needs updating rather +// // than having to individually change instances of widgets. +// return Scaffold( +// appBar: AppBar( +// // Here we take the value from the MyHomePage object that was created by +// // the App.build method, and use it to set our appbar title. +// title: Text(widget.title), +// ), +// body: Center( +// // Center is a layout widget. It takes a single child and positions it +// // in the middle of the parent. +// child: Column( +// // Column is also a layout widget. It takes a list of children and +// // arranges them vertically. By default, it sizes itself to fit its +// // children horizontally, and tries to be as tall as its parent. +// // +// // Invoke "debug painting" (press "p" in the console, choose the +// // "Toggle Debug Paint" action from the Flutter Inspector in Android +// // Studio, or the "Toggle Debug Paint" command in Visual Studio Code) +// // to see the wireframe for each widget. +// // +// // Column has various properties to control how it sizes itself and +// // how it positions its children. Here we use mainAxisAlignment to +// // center the children vertically; the main axis here is the vertical +// // axis because Columns are vertical (the cross axis would be +// // horizontal). +// mainAxisAlignment: MainAxisAlignment.center, +// children: [ +// const Text( +// 'You have pushed the button this many times:', +// ), +// Text( +// '$_counter', +// style: Theme.of(context).textTheme.headline4, +// ), +// ], +// ), +// ), +// floatingActionButton: FloatingActionButton( +// onPressed: _incrementCounter, +// tooltip: 'Increment', +// child: const Icon(Icons.add), +// ), // This trailing comma makes auto-formatting nicer for build methods. +// ); +// } +// } diff --git a/rohith/news_app/lib/models/article.dart b/rohith/news_app/lib/models/article.dart new file mode 100644 index 0000000..b6c425c --- /dev/null +++ b/rohith/news_app/lib/models/article.dart @@ -0,0 +1,16 @@ +class Article{ + + String title; + String author; + String description; + String urlToImage; + DateTime publshedAt; + String content; + String articleUrl; + + Article({required this.title,required this.description,required this.author,required this.content,required this.publshedAt, + required this.urlToImage, required this.articleUrl}); + + + +} \ No newline at end of file diff --git a/rohith/news_app/lib/models/category_model.dart b/rohith/news_app/lib/models/category_model.dart new file mode 100644 index 0000000..b3a927d --- /dev/null +++ b/rohith/news_app/lib/models/category_model.dart @@ -0,0 +1,5 @@ +class CategorieModel { + late String imageAssetUrl; + late String categorieName; + +} \ No newline at end of file diff --git a/rohith/news_app/lib/models/headline_model.dart b/rohith/news_app/lib/models/headline_model.dart new file mode 100644 index 0000000..4987b3c --- /dev/null +++ b/rohith/news_app/lib/models/headline_model.dart @@ -0,0 +1,12 @@ +class HeadlineModel{ + + String title; + String urlToImage; + String articleUrl; + + HeadlineModel({required this.title, + required this.urlToImage, required this.articleUrl}); + + + +} \ No newline at end of file diff --git a/rohith/news_app/lib/secret.dart b/rohith/news_app/lib/secret.dart new file mode 100644 index 0000000..611c968 --- /dev/null +++ b/rohith/news_app/lib/secret.dart @@ -0,0 +1 @@ +String apiKey = "965914d66c794716be9e4eb9fd3c7b24"; \ No newline at end of file diff --git a/rohith/news_app/lib/views/article_view.dart b/rohith/news_app/lib/views/article_view.dart new file mode 100644 index 0000000..1a518e3 --- /dev/null +++ b/rohith/news_app/lib/views/article_view.dart @@ -0,0 +1,60 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:news_app/detail/custom_app_bar.dart'; +import 'package:webview_flutter/webview_flutter.dart'; + +class ArticleView extends StatefulWidget { + + final String postUrl; + const ArticleView({required this.postUrl}); + + @override + _ArticleViewState createState() => _ArticleViewState(); +} + +class _ArticleViewState extends State { + + final Completer _controller = Completer(); + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + leading: IconButton(onPressed: () { + Navigator.of(context).pop(); + }, icon: Icon(Icons.arrow_back_ios,color: Colors.black,),), + title: PreferredSize( + preferredSize: Size.fromHeight(100.0), + + child: Padding( + padding: const EdgeInsets.fromLTRB(0, 10, 4, 8), + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: const [ + //Text('13 Oct,2021') + Text( + "NewsApp", + style: TextStyle(color: Colors.blue, fontWeight: FontWeight.w600,fontSize: 30), + ), + SizedBox(width: 20,) + ], + ), + + ), + ), + backgroundColor: Colors.transparent, + elevation: 0.0, + ), + body: Container( + height: MediaQuery.of(context).size.height, + width: MediaQuery.of(context).size.width, + child: WebView( + initialUrl: widget.postUrl, + onWebViewCreated: (WebViewController webViewController){ + _controller.complete(webViewController); + }, + ), + ), + ); + } +} diff --git a/rohith/news_app/lib/views/home.dart b/rohith/news_app/lib/views/home.dart new file mode 100644 index 0000000..e7283b2 --- /dev/null +++ b/rohith/news_app/lib/views/home.dart @@ -0,0 +1,176 @@ +import "package:cached_network_image/cached_network_image.dart"; + +import 'package:flutter/material.dart'; +import 'package:news_app/detail/custom_app_bar.dart'; +import 'package:news_app/detail/portfolio.dart'; +import 'package:news_app/helper/data.dart'; +import 'package:news_app/helper/widgets.dart'; +import 'package:news_app/models/category_model.dart'; +import '../helper/news.dart'; +import 'news_category.dart'; + +class Home extends StatefulWidget { + @override + _HomePageState createState() => _HomePageState(); +} + +class _HomePageState extends State { + + late bool _loading; + var newslist,headlist; + + List categories = []; + void getNews() async { + News news = News(); + await news.getNews(); + newslist = news.news; + Headlines headlines = Headlines(); + await headlines.getHeadlines(); + headlist = headlines.headlines; + setState(() { + _loading = false; + }); + } + + @override + void initState() { + _loading = true; + super.initState(); + + categories = getCategories(); + getNews(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: PreferredSize( + preferredSize: Size.fromHeight(100.0), + child: GestureDetector( + onTap: () { Navigator.push(context, new MaterialPageRoute( + builder: (context) => new Portfolio()) + ); + }, + child: CustomAppBar()), + ), + backgroundColor: Colors.transparent, + elevation: 0.0, + ), + body: SafeArea( + child: _loading + ? Center( + child: CircularProgressIndicator(), + ) + : SingleChildScrollView( + child: Container( + child: Column( + children: [ + /// Categories + /// + Container( + // padding: EdgeInsets.symmetric(horizontal: 16), + height: 180, + child: ListView.builder( + scrollDirection: Axis.horizontal, + itemCount: headlist.length, + shrinkWrap: true, + itemBuilder: (context, index) { + return HeadlineTile( + imgUrl: headlist[index].urlToImage ?? "", + title: headlist[index].title ?? "", + posturl: headlist[index].articleUrl ?? "", + ); + }), + ), + Container( + padding: EdgeInsets.symmetric(horizontal: 16), + height: 70, + child: ListView.builder( + scrollDirection: Axis.horizontal, + itemCount: categories.length, + itemBuilder: (context, index) { + return CategoryCard( + imageAssetUrl: categories[index].imageAssetUrl, + categoryName: categories[index].categorieName, + ); + }), + ), + + /// News Article + Container( + margin: EdgeInsets.only(top: 16), + child: ListView.builder( + itemCount: newslist.length, + shrinkWrap: true, + physics: ClampingScrollPhysics(), + itemBuilder: (context, index) { + return NewsTile( + imgUrl: newslist[index].urlToImage ?? "", + title: newslist[index].title ?? "", + desc: newslist[index].description ?? "", + content: newslist[index].content ?? "", + posturl: newslist[index].articleUrl ?? "", + ); + }), + ), + ], + ), + ), + ), + ), + ); + } +} + +class CategoryCard extends StatelessWidget { + final String imageAssetUrl, categoryName; + + CategoryCard({Key? key, required this.imageAssetUrl, required this.categoryName}) : super(key: key); + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: (){ + Navigator.push(context, MaterialPageRoute( + builder: (context) => CategoryNews( + newsCategory: categoryName.toLowerCase(), + ) + )); + }, + child: Container( + margin: EdgeInsets.only(right: 14), + child: Stack( + children: [ + ClipRRect( + borderRadius: BorderRadius.circular(5), + child: CachedNetworkImage( + imageUrl: imageAssetUrl, + height: 60, + width: 120, + fit: BoxFit.cover, + ), + ), + Container( + alignment: Alignment.center, + height: 60, + width: 120, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(5), + color: Colors.black26 + ), + child: Text( + categoryName, + textAlign: TextAlign.center, + style: TextStyle( + color: Colors.white, + fontSize: 14, + fontWeight: FontWeight.w500), + ), + ) + ], + ), + ), + ); + } +} diff --git a/rohith/news_app/lib/views/news_category.dart b/rohith/news_app/lib/views/news_category.dart new file mode 100644 index 0000000..dff4a37 --- /dev/null +++ b/rohith/news_app/lib/views/news_category.dart @@ -0,0 +1,113 @@ +import 'package:flutter/material.dart'; +import 'package:news_app/helper/news.dart'; +import 'package:news_app/helper/widgets.dart'; + +class CategoryNews extends StatefulWidget { + + final String newsCategory; + + const CategoryNews({required this.newsCategory}); + + @override + _CategoryNewsState createState() => _CategoryNewsState(); +} + +class _CategoryNewsState extends State { + var newslist; + bool _loading = true; + + @override + void initState() { + getNews(); + super.initState(); + } + + void getNews() async { + NewsForCategorie news = NewsForCategorie(); + await news.getNewsForCategory(widget.newsCategory); + newslist = news.news; + setState(() { + _loading = false; + }); + } + + + @override + Widget build(BuildContext context) { + return Scaffold( + // appBar: AppBar( + // title: Row( + // mainAxisAlignment: MainAxisAlignment.center, + // children: [ + // Text( + // "Flutter", + // style: + // TextStyle(color: Colors.black87, fontWeight: FontWeight.w600), + // ), + // Text( + // "News", + // style: TextStyle(color: Colors.blue, fontWeight: FontWeight.w600), + // ) + // ], + // ), + // actions: [ + // Opacity( + // opacity: 0, + // child: Container( + // padding: EdgeInsets.symmetric(horizontal: 16), + // child: Icon(Icons.share,)), + // ) + // ], + // backgroundColor: Colors.transparent, + // elevation: 0.0, + // ), + appBar: AppBar( + leading: IconButton(onPressed: () { + Navigator.of(context).pop(); + }, icon: Icon(Icons.arrow_back_ios,color: Colors.black,),), + title: PreferredSize( + preferredSize: Size.fromHeight(100.0), + child: Padding( + padding: const EdgeInsets.fromLTRB(0, 10, 4, 8), + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: const [ + //Text('13 Oct,2021') + Text( + "NewsApp", + style: TextStyle(color: Colors.blue, fontWeight: FontWeight.w600,fontSize: 30), + ), + SizedBox(width: 20,) + ], + ), + + ), + ), + backgroundColor: Colors.transparent, + elevation: 0.0, + ), + body: _loading ? Center( + child: CircularProgressIndicator(), + ) : SingleChildScrollView( + child: Container( + child: Container( + margin: EdgeInsets.only(top: 16), + child: ListView.builder( + itemCount: newslist.length, + shrinkWrap: true, + physics: ClampingScrollPhysics(), + itemBuilder: (context, index) { + return NewsTile( + imgUrl: newslist[index].urlToImage ?? "", + title: newslist[index].title ?? "", + desc: newslist[index].description ?? "", + content: newslist[index].content ?? "", + posturl: newslist[index].articleUrl ?? "", + ); + }), + ), + ), + ), + ); + } +} diff --git a/rohith/news_app/local.properties b/rohith/news_app/local.properties new file mode 100644 index 0000000..a5cf2a7 --- /dev/null +++ b/rohith/news_app/local.properties @@ -0,0 +1,8 @@ +## This file must *NOT* be checked into Version Control Systems, +# as it contains information specific to your local configuration. +# +# Location of the SDK. This is only used by Gradle. +# For customization when using a Version Control System, please read the +# header note. +#Mon Nov 29 17:03:12 IST 2021 +sdk.dir=/home/rohith/Android/Sdk diff --git a/rohith/news_app/pubspec.lock b/rohith/news_app/pubspec.lock new file mode 100644 index 0000000..316963c --- /dev/null +++ b/rohith/news_app/pubspec.lock @@ -0,0 +1,399 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.8.1" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + cached_network_image: + dependency: "direct main" + description: + name: cached_network_image + url: "https://pub.dartlang.org" + source: hosted + version: "3.2.0" + cached_network_image_platform_interface: + dependency: transitive + description: + name: cached_network_image_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" + cached_network_image_web: + dependency: transitive + description: + name: cached_network_image_web + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + characters: + dependency: transitive + description: + name: characters + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.3.1" + clock: + dependency: transitive + description: + name: clock + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.15.0" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.1" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + fake_async: + dependency: transitive + description: + name: fake_async + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0" + ffi: + dependency: transitive + description: + name: ffi + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.2" + file: + dependency: transitive + description: + name: file + url: "https://pub.dartlang.org" + source: hosted + version: "6.1.2" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_blurhash: + dependency: transitive + description: + name: flutter_blurhash + url: "https://pub.dartlang.org" + source: hosted + version: "0.6.0" + flutter_cache_manager: + dependency: transitive + description: + name: flutter_cache_manager + url: "https://pub.dartlang.org" + source: hosted + version: "3.3.0" + flutter_lints: + dependency: "direct dev" + description: + name: flutter_lints + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + http: + dependency: "direct main" + description: + name: http + url: "https://pub.dartlang.org" + source: hosted + version: "0.13.4" + http_parser: + dependency: transitive + description: + name: http_parser + url: "https://pub.dartlang.org" + source: hosted + version: "4.0.0" + lints: + dependency: transitive + description: + name: lints + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + matcher: + dependency: transitive + description: + name: matcher + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.10" + meta: + dependency: transitive + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.7.0" + octo_image: + dependency: transitive + description: + name: octo_image + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.0" + path_provider: + dependency: transitive + description: + name: path_provider + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" + path_provider_android: + dependency: transitive + description: + name: path_provider_android + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.9" + path_provider_ios: + dependency: transitive + description: + name: path_provider_ios + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.7" + path_provider_linux: + dependency: transitive + description: + name: path_provider_linux + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.2" + path_provider_macos: + dependency: transitive + description: + name: path_provider_macos + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.4" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.1" + path_provider_windows: + dependency: transitive + description: + name: path_provider_windows + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.4" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.dartlang.org" + source: hosted + version: "1.11.1" + platform: + dependency: transitive + description: + name: platform + url: "https://pub.dartlang.org" + source: hosted + version: "3.1.0" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" + process: + dependency: transitive + description: + name: process + url: "https://pub.dartlang.org" + source: hosted + version: "4.2.4" + rxdart: + dependency: transitive + description: + name: rxdart + url: "https://pub.dartlang.org" + source: hosted + version: "0.27.3" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.1" + sqflite: + dependency: transitive + description: + name: sqflite + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.1" + sqflite_common: + dependency: transitive + description: + name: sqflite_common + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.1+1" + stack_trace: + dependency: transitive + description: + name: stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "1.10.0" + stream_channel: + dependency: transitive + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + synchronized: + dependency: transitive + description: + name: synchronized + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.0" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.2.0" + test_api: + dependency: transitive + description: + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.4.2" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.3.0" + uuid: + dependency: transitive + description: + name: uuid + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.5" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + webview_flutter: + dependency: "direct main" + description: + name: webview_flutter + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.0" + webview_flutter_android: + dependency: transitive + description: + name: webview_flutter_android + url: "https://pub.dartlang.org" + source: hosted + version: "2.8.0" + webview_flutter_platform_interface: + dependency: transitive + description: + name: webview_flutter_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.0" + webview_flutter_wkwebview: + dependency: transitive + description: + name: webview_flutter_wkwebview + url: "https://pub.dartlang.org" + source: hosted + version: "2.7.0" + win32: + dependency: transitive + description: + name: win32 + url: "https://pub.dartlang.org" + source: hosted + version: "2.3.1" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.0" +sdks: + dart: ">=2.14.0 <3.0.0" + flutter: ">=2.5.0" diff --git a/rohith/news_app/pubspec.yaml b/rohith/news_app/pubspec.yaml new file mode 100644 index 0000000..0f5fd4e --- /dev/null +++ b/rohith/news_app/pubspec.yaml @@ -0,0 +1,94 @@ +name: news_app +description: A Flutter application using news api. + +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +version: 1.0.0+1 + +environment: + sdk: '>=2.12.0-0.0 <3.0.0' + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + http: ^0.13.4 + cached_network_image: ^3.2.0 + webview_flutter: ^3.0.0 + + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.4 + +dev_dependencies: + flutter_test: + sdk: flutter + + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: ^1.0.4 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + assets: + - assets/images/mypic.jpg + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware. + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/rohith/news_app/test/widget_test.dart b/rohith/news_app/test/widget_test.dart new file mode 100644 index 0000000..e203161 --- /dev/null +++ b/rohith/news_app/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility that Flutter provides. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:news_app/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +} diff --git a/rohith/scs/Screenshot_2021-12-10-00-33-21-235_com.example.news_app.jpg b/rohith/scs/Screenshot_2021-12-10-00-33-21-235_com.example.news_app.jpg new file mode 100644 index 0000000..3e55eab Binary files /dev/null and b/rohith/scs/Screenshot_2021-12-10-00-33-21-235_com.example.news_app.jpg differ diff --git a/rohith/scs/Screenshot_2021-12-10-00-33-35-326_com.example.news_app.jpg b/rohith/scs/Screenshot_2021-12-10-00-33-35-326_com.example.news_app.jpg new file mode 100644 index 0000000..ff14e83 Binary files /dev/null and b/rohith/scs/Screenshot_2021-12-10-00-33-35-326_com.example.news_app.jpg differ diff --git a/rohith/scs/Screenshot_2021-12-10-00-36-35-002_com.example.news_app.jpg b/rohith/scs/Screenshot_2021-12-10-00-36-35-002_com.example.news_app.jpg new file mode 100644 index 0000000..8606d34 Binary files /dev/null and b/rohith/scs/Screenshot_2021-12-10-00-36-35-002_com.example.news_app.jpg differ