inshorts News App Clone with flutter and newsapi.org API

Overview

Inshorts clone (The News App)

The Clone of the populer News App in India

Try latest inshorts Clone app apk from below ๐Ÿ‘‡

inshortsClone.apk

GitHub license

Update

Multiple Language Support

English เคนเคฟเค‚เคฆเฅ€ เคฎเคฐเคพเค เฅ€ เฒ•เฒจเณเฒจเฒก

Instruction

Replace the API Key field with your own key, for key visit newsapi.org and create your id.

  |-- lib
  |  |-- global
  |      |-- global.dart

    final String apikey = "YOUR_KEY";

Features

  • Dark Mode
  • Multi Language Support [ English, เคนเคฟเค‚เคฆเฅ€, เคฎเคฐเคพเค เฅ€, เฒ•เฒจเณเฒจเฒก ]
  • Share News Card As Image
  • Offline Read
  • Watermark on shared news card
  • Webview

ScreenShots

Dscover Feed Settings Language Support
Search Dark Mode Dark Mode Watermark
Bookmark Loading Web Screen Share

Packages Used

  • flutter_bloc & Dio : for http Request Handling.
  • Provider : for State Management.
  • Hive : for Local Strorage Management.
  • esys_flutter_share : for Sharing News card.
  • webview_flutter : web view inside the app.
  • auto_route : Page Routing.
  • photo_view : gives extra features like image scaling.

License

MIT License

Copyright (c) 2020 Sanjay Soni

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Comments
  • The name 'Router' is defined in the libraries '

    The name 'Router' is defined in the libraries '

    The name 'Router' is defined in the libraries 'package:flutter/src/widgets/router.dart' and 'package:inshort_clone/routes/routesgr.dart'. Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports. image image

    opened by vipuluthaiah 5
  • setState() or markNeedsBuild() called during build.

    setState() or markNeedsBuild() called during build.

    When I get app then it show error.

    ======== Exception caught by foundation library ==================================================== The following assertion was thrown while dispatching notifications for FeedProvider: setState() or markNeedsBuild() called during build.

    This _DefaultInheritedProviderScope widget cannot be marked as needing to build because the framework is already in the process of building widgets. A widget can be marked as needing to be built during the build phase only if one of its ancestors is currently building. This exception is allowed because the framework builds parent widgets before children, which means a dirty descendant will always be built. Otherwise, the framework might not visit this widget during this build phase. The widget on which setState() or markNeedsBuild() was called was: _DefaultInheritedProviderScope value: Instance of 'FeedProvider' listening to value The widget which was currently being built when the offending call was made was: BlocBuilder<NewsFeedBloc, NewsFeedState> dirty state: _BlocBuilderBaseState<NewsFeedBloc, NewsFeedState>#b5032 When the exception was thrown, this was the stack: #0 Element.markNeedsBuild. (package:flutter/src/widgets/framework.dart:4328:11) #1 Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4343:6) #2 _InheritedProviderScopeMixin.markNeedsNotifyDependents (package:provider/src/inherited_provider.dart:269:5) #3 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:243:25) #4 FeedProvider.setDataLoaded (package:inshort_clone/controller/provider.dart:68:5) ... The FeedProvider sending notification was: Instance of 'FeedProvider'

    opened by webaddicted 4
  • Router issue for new page

    Router issue for new page

    Why you are comment all Router usage line? For example if we want to open the setting page right now it not work bcz you comment the relative code in the source.

    opened by ci30 2
  • Improving Code Quality

    Improving Code Quality

    Description: This fix would help in easier readability of the code and also help in easier debugging wherever necessary

    Future Work: If approved, these can also be implemented

    • https://pub.dev/packages/pedantic
    • https://pub.dev/packages/dart_code_metrics
    opened by adithyaakrishna 0
  • [ImgBot] Optimize images

    [ImgBot] Optimize images

    Beep boop. Your images are optimized!

    Your image file size has been reduced by 14% ๐ŸŽ‰

    Details

    | File | Before | After | Percent reduction | |:--|:--|:--|:--| | /screenshots/settings.png | 66.41kb | 45.83kb | 30.99% | | /screenshots/watermark.png | 566.40kb | 479.15kb | 15.40% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 2.25kb | 1.91kb | 15.30% | | /screenshots/bookmarks.png | 840.55kb | 713.45kb | 15.12% | | /screenshots/darkmode1.png | 747.02kb | 635.89kb | 14.88% | | /screenshots/feed.png | 991.18kb | 845.77kb | 14.67% | | /screenshots/darkmode.png | 450.32kb | 391.86kb | 12.98% | | /screenshots/loading.png | 136.67kb | 119.15kb | 12.81% | | /screenshots/language.png | 436.83kb | 380.93kb | 12.80% | | /screenshots/search.png | 747.76kb | 663.04kb | 11.33% | | /screenshots/web.png | 1,072.52kb | 957.33kb | 10.74% | | | | | | | Total : | 6,057.90kb | 5,234.30kb | 13.60% |


    Black Lives Matter | ๐Ÿ’ฐ donate | ๐ŸŽ“ learn | โœ๐Ÿพ sign

    ๐Ÿ“ docs | :octocat: repo | ๐Ÿ™‹๐Ÿพ issues | ๐Ÿ… swag | ๐Ÿช marketplace

    opened by imgbot[bot] 0
  • [ImgBot] Optimize images

    [ImgBot] Optimize images

    Beep boop. Your images are optimized!

    Your image file size has been reduced by 15% ๐ŸŽ‰

    Details

    | File | Before | After | Percent reduction | |:--|:--|:--|:--| | /assets/icons/logo.png | 9.93kb | 4.82kb | 51.44% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 39.72kb | 19.42kb | 51.11% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 6.59kb | 4.50kb | 31.67% | | /android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png | 7.02kb | 4.87kb | 30.58% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 5.73kb | 4.11kb | 28.28% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 4.68kb | 3.36kb | 28.12% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 4.68kb | 3.36kb | 28.12% | | /android/app/src/main/res/drawable/logo.png | 2.80kb | 2.02kb | 27.72% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 6.18kb | 4.49kb | 27.44% | | /android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png | 5.53kb | 4.08kb | 26.24% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 5.53kb | 4.08kb | 26.24% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 4.49kb | 3.37kb | 24.99% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 3.92kb | 2.99kb | 23.52% | | /android/app/src/main/res/mipmap-xhdpi/launcher_icon.png | 3.74kb | 2.95kb | 21.02% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 3.37kb | 2.68kb | 20.43% | | /assets/icons/all.png | 17.74kb | 14.24kb | 19.71% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 3.00kb | 2.43kb | 19.03% | | /assets/icons/loading.png | 53.94kb | 43.72kb | 18.94% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 3.14kb | 2.54kb | 18.90% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 2.83kb | 2.33kb | 17.65% | | /android/app/src/main/res/mipmap-hdpi/launcher_icon.png | 2.83kb | 2.33kb | 17.65% | | /assets/icons/bookmark.png | 15.33kb | 12.85kb | 16.20% | | /banner.png | 453.47kb | 382.74kb | 15.60% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 2.24kb | 1.90kb | 15.16% | | /assets/icons/india.png | 47.62kb | 40.80kb | 14.34% | | /assets/icons/trending.png | 19.50kb | 16.79kb | 13.92% | | /assets/icons/international.png | 67.79kb | 58.49kb | 13.71% | | /assets/icons/fashion.png | 53.24kb | 46.10kb | 13.41% | | /assets/icons/technology.png | 52.74kb | 45.86kb | 13.05% | | /assets/icons/startups.png | 71.85kb | 62.58kb | 12.91% | | /assets/icons/politics.png | 55.00kb | 47.95kb | 12.82% | | /assets/icons/education.png | 48.16kb | 42.00kb | 12.78% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 2.21kb | 1.93kb | 12.66% | | /assets/icons/entertainment.png | 37.09kb | 32.40kb | 12.65% | | /assets/icons/science.png | 34.46kb | 30.11kb | 12.61% | | /assets/icons/automobile.png | 39.26kb | 34.45kb | 12.26% | | /assets/icons/business.png | 53.02kb | 46.60kb | 12.11% | | /assets/icons/sports.png | 65.59kb | 57.67kb | 12.07% | | /assets/icons/travel.png | 53.69kb | 47.40kb | 11.72% | | /assets/icons/unread.png | 20.61kb | 18.31kb | 11.18% | | /android/app/src/main/res/mipmap-mdpi/launcher_icon.png | 1.87kb | 1.66kb | 11.05% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 2.01kb | 1.79kb | 10.56% | | /assets/icons/coronavirus.png | 196.82kb | 181.58kb | 7.74% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 1.58kb | 1.50kb | 4.88% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 1.58kb | 1.50kb | 4.88% | | /assets/images/coronavirus.jpg | 84.69kb | 80.86kb | 4.52% | | /ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] | 1.18kb | 1.16kb | 1.74% | | | | | | | Total : | 1,679.97kb | 1,435.68kb | 14.54% |


    Black Lives Matter | ๐Ÿ’ฐ donate | ๐ŸŽ“ learn | โœ๐Ÿพ sign

    ๐Ÿ“ docs | :octocat: repo | ๐Ÿ™‹๐Ÿพ issues | ๐Ÿ… swag | ๐Ÿช marketplace

    opened by imgbot[bot] 0
  • setState() or markNeedsBuild() called during build

    setState() or markNeedsBuild() called during build

    Hi guys, On the real device the appbar not appear and it cause below exception:

    `โ•โ•โ•ก EXCEPTION CAUGHT BY FOUNDATION LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ• The following assertion was thrown while dispatching notifications for FeedProvider: setState() or markNeedsBuild() called during build. This _DefaultInheritedProviderScope widget cannot be marked as needing to build because the framework is already in the process of building widgets. A widget can be marked as needing to be built during the build phase only if one of its ancestors is currently building. This exception is allowed because the framework builds parent widgets before children, which means a dirty descendant will always be built. Otherwise, the framework might not visit this widget during this build phase. The widget on which setState() or markNeedsBuild() was called was: _DefaultInheritedProviderScope The widget which was currently being built when the offending call was made was: Builder

    When the exception was thrown, this was the stack: #0 Element.markNeedsBuild. (package:flutter/src/widgets/framework.dart:4210:11) #1 Element.markNeedsBuild (package:flutter/src/widgets/framework.dart:4225:6) #2 _InheritedProviderScopeMixin.markNeedsNotifyDependents (package:provider/src/inherited_provider.dart:269:5) #3 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:243:25) #4 FeedProvider.setScreenController (package:seventy_mm/controller/provider.dart:117:5) #5 _AppBaseState.initState (package:seventy_mm/view/app_base/app_base.dart:46:14) #6 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4704:57) #7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4541:5) ... Normal element mounting (166 frames) #173 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3603:14) #174 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6170:32) ... Normal element mounting (143 frames) #317 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3603:14) #318 Element.updateChild (package:flutter/src/widgets/framework.dart:3355:20) #319 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4592:16) #320 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4739:11) #321 Element.rebuild (package:flutter/src/widgets/framework.dart:4261:5) #322 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2578:33) #323 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:875:21) #324 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:329:5) #325 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15) #326 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1082:9) #327 SchedulerBinding.scheduleWarmUpFrame. (package:flutter/src/scheduler/binding.dart:865:7) (elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)`

    opened by ci30 0
  • How to get started

    How to get started

    Hi there,

    I am new to app building and the software world. I know how to code and all but haven't tried end-to-end yet. Can you pls tell me how and where I can run this so that I can get started in doing some edits of my own?

    opened by chandakmukesh350 1
  • Top Appbar not working in release Apk. & Gesture also not working properly on news card

    Top Appbar not working in release Apk. & Gesture also not working properly on news card

    Top Appbar not working in release Apk, it works fine in debug Apk. I think the problem in Stream Controller which I used for page transition. I'll fix this issue soon.

    bug help wanted 
    opened by imSanjaySoni 5
Releases(1.0.1)
Inshorts News App Clone Built With Flutter

Inshorts clone (The News App) The Clone of the populer News App in India Try latest inshorts Clone app apk from below ?? inshortsClone.apk Update Mult

Prakhar Srivastava 2 Sep 26, 2022
A Flutter News application using data from newsapi.org

A Flutter News application using data from newsapi.org

null 0 Oct 1, 2021
A news application powered by newsapi.org

News App A simple news application built with Flutter and connected to API for fetching realtime news update from the internet. Packages http: A compo

Samuel Adekunle 2 Nov 9, 2021
News App is made using Flutter & Dart for fetching news from NewsApi.

News App By Hasan Abbas Sorathiya News App is made using Flutter & Dart for fetching news from NewsApi. Installation Use the Flutter Pub get to instal

HASAN ABBAS SORATHIYA 2 Mar 9, 2022
News app - News App using Flutter and Firebase Auth

News App in Flutter using Firebase Auth, Firebase Realtime Database & Times of I

Raunak Chatterjee 6 Nov 6, 2022
A Flutter News app which organises and highlights all the latest news

News App A Flutter News app which organises and highlights all the latest news, headlines belong to India so that you can be up to date with all the s

null 2 Dec 12, 2021
News App - A News Flutter application using Bloc, Dio, and shared preferences

News App A new Flutter application. Getting Started Flutter application using Bl

Mohamed Awad 9 Nov 14, 2022
Fashion App Clone - a clone app from Emre Altunbilek's Flutter Course

Fashion App Clone This is a clone app from Emre Altunbilek's Flutter Course. I am trying to clone UI and improve code.

Eren 5 Oct 2, 2022
WiwaChat-WhatsApp-Like-Clone - A beautiful and fully functional WhatsApp UI clone in Flutter

Wiwa Chat - A WhatsApp Clone in Flutter A beautiful and fully functional WhatsAp

Ogbodo ThankGod 7 Nov 6, 2022
Whats-App-Clone-UI-using-Flutter - WhatsApp Clone UI using Flutter

WhatsApp ?? Clone UI ?? using Flutter ?? Screenshots Links My Socials Youtube ch

AmirHossein Bayat 6 Dec 7, 2022
Wordle-clone - A Wordle-clone built using Flutter

Wordle-clone The project consists of two applications : wordle_clone_api : Which

Aswin Gopinathan 2 Jan 25, 2022
Whatapp clone UI - WhatApp UI clone in flutter

whatapp clone in flutter WhatApp UI clone in flutter Getting Started

Neha Tanwar 4 Feb 6, 2022
Whatsapp-clone - A whatsapp clone with dart

whatsapp-clone Just a simple whatsapp clone with dart

arinzejustinng 1 Mar 28, 2022
A simple and clean news app made with Flutter and Dart

News_Application A new Flutter project. Getting Started This project is a starting point for a Flutter application. Google Sing In. Internet Connctivi

Ramu 18 Apr 26, 2021
An app to get you the latest and the trending news based on your location.

An app to get you the latest and the trending news based on your location.

Ayush Shekhar 19 Nov 11, 2022
It is an application where you can find out how many people are in space, news about space and access random space photos.

It is an application where you can find out how many people are in space, news about space and access random space photos. This application was made to learn the dart language.

Emre Taner ร‡etinkaya 4 Oct 8, 2021
News App Built With Flutter

Installation flutter pub get Usage flutter run Learn Created & Maintained By Vivek_punar You can also nominate me for Github Star developer program

Vivek_Punnad 2 Oct 17, 2021
A Simple News App built with Flutter

Flutter News App A Simple News App built with Flutter. In this app, there is a Home page, which will display top news from newsapi.org. News categorie

waleed 1 Apr 4, 2022
FlutterNews - A Simple News App With Flutter

FlutterNews - A Simple News App With Flutter

Walid soussi 3 Nov 2, 2022