GithubHelp home page GithubHelp logo

flutter_news's Introduction

flutter_news

A Hacker News client made with Flutter.

iOS Android
iOS screenshot Android screenshot

TODO

  • "Load more" when user reaches bottom of the list
  • Fetch news, show, ask, etc
  • Dark theme (add side bar menu) - thanks to jgroman
  • Add fuzzy time ("timeago")
  • Save user preferences - thanks to jgroman
  • Better layout for comments
  • Share item

flutter_news's People

Contributors

andresaraujo avatar jgroman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter_news's Issues

cannot resolve class 'LocaleQueryData' from 'FlutterNewsStrings'

Launching lib\main.dart on MI 6 in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
Error: 'package:flutter_news/fnews_strings.dart': malformed type: line 12 pos 34: cannot resolve class 'LocaleQueryData' from 'FlutterNewsStrings'
class FlutterNewsStrings extends LocaleQueryData {
^
Failed to run the Flutter compiler. Exit code: 254

FAILURE: Build failed with an exception.

  • Where:
    Script 'D:\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 329

  • What went wrong:
    Execution failed for task ':app:flutterDependenciesDebug'.

Process 'command 'D:\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 254

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Finished with error: Gradle build failed: 1

package:http/http.dart

That library is in a package that is not known. Maybe you forgot to mention it in your pubspec.yaml file?

Consider using var

When the variable is initialized immediately with a clear type, consider using var. var in Dart+strong mode (the default in Flutter) means "infer", so you don't lose type information.

Instead of:

  FlutterNewsConfiguration _configuration = new FlutterNewsConfiguration(
    themeName: ThemeName.light,
    showFullComment: false,
    expandCommentTree: false,
  );

You can do:

  var_configuration = new FlutterNewsConfiguration(
    themeName: ThemeName.light,
    showFullComment: false,
    expandCommentTree: false,
  );

Build failed with a gradle exception

Finished with error: Please review your Gradle project setup in the android/ folder.
* Error running Gradle:
Exit code 1 from: /Users/twiceYuan/WorkSpace/FlutterLab/flutter_news/android/gradlew app:properties:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/twiceYuan/WorkSpace/FlutterLab/flutter_news/android/build.gradle' line: 20

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Could not resolve all dependencies for configuration ':app:_debugApk'.
      > A problem occurred configuring project ':shared_preferences'.
         > buildToolsVersion is not specified.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.