Coder Social home page Coder Social logo

hillelcoren / flutter-redux-starter Goto Github PK

View Code? Open in Web Editor NEW
286.0 286.0 43.0 246 KB

Starter project and code generator for Flutter/Redux

Home Page: https://www.youtube.com/watch?v=pMSokKmwp1U

Objective-C 1.15% Dart 72.30% Java 0.58% Shell 25.96%
bootstrap crud dart flutter redux rest starter

flutter-redux-starter's People

Contributors

bufferunderflower avatar danibjor avatar hillelcoren avatar victoraldir 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter-redux-starter's Issues

Use .dart extension for stub files

The stub folder needs to be excluded from the IDE to prevent code errors.

Once that's done the .dart extension can be added to the file names.

SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 35779

hi @hillelcoren , i create a spring boot backend, then use this starter,everything is ok ,but when i debug the app, the console print below log:
[INFO] LoggingMiddleware: {Action: LoadPrescsFailure{error: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 35818}, State: AppState {
and the screen is stuck in here
image
by the way, i used JWT, is that possible caused by this??
i need to log in first???
thank you for taking time to help me on this problem.

How to implement Login functionality

I have been trying this setup for a quite while. I have some experience in Android. A very little with flutter.

I have a REST API which is JWT authenticated. I need to authenticate the user before making any API requests.

I am bit confused on how to force open the login page on App Load.

I need to persist the JWT token than email & password.

Thanks,
Keethan

TODO comments fix

replace TODO with TODO: for it to be picked up by VScode plugins.

before:
screen shot 2018-11-19 at 8 34 15 am

after:
screen shot 2018-11-19 at 8 34 21 am

Couldn't clone hacker_news or posts

F:\Flutter Projects>git clone [email protected]:hillelcoren/flutter-redux-starter.git hacker_news && cd hacker_news
Cloning into 'hacker_news'...
The authenticity of host 'github.com (192.30.253.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

F:\Flutter Projects>git clone [email protected]:hillelcoren/flutter-redux-starter.git posts && cd posts
Cloning into 'posts'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Also add one list of the in the readme file so that anyone can use those publicly available apps to clone with redux flutter and make sure to update them as well from time to time. Thanks!!!

XXX has stoped

@hillelcoren ,hi hillelcoren,when i follow your example command,i got the error when install apk to emulator
image

but flutter mobile runs well
image

can you give some advice?

Installation fails due to `http` package dependency

I have a problem during installation. Fails immediately because of the version of the http package:

Running "flutter packages get" in hillelcoren-flutter-redux-starter...
Because every version of flutter_driver from sdk depends on http 0.12.0 and flutter_redux_starter depends on http ^0.11.3+17, flutter_driver from sdk is forbidden.
So, because flutter_redux_starter depends on flutter_driver any from sdk, version solving failed.

pub get failed (1)

Updating the version of http at ^0.12.0, in the pubspec.yaml file, I get another error:

Running "flutter packages get" in hillelcoren-flutter-redux-starter...
Because every version of flutter_driver from sdk depends on analyzer 0.33.0 and built_value_generator >=5.5.5 depends on analyzer ^0.32.1, flutter_driver from sdk is incompatible with built_value_generator >=5.5.5.
So, because nerv depends on both built_value_generator ^6.1.4 and flutter_driver any from sdk, version solving failed.

pub get failed (1)

The result of flutter --version is:

Flutter 0.9.4 • channel beta • https://github.com/flutter/flutter.git
Framework • revision f37c235c32 (3 weeks ago) • 2018-09-25 17:45:40 -0400
Engine • revision 74625aed32
Tools • Dart 2.1.0-dev.5.0.flutter-a2eb050044

Invalid argument(s): Unknown type on deserialization. Need either specifiedType or discriminator field

@hillelcoren ,i'm using java backend, when i post a login request to the backend,

i got the response:

{data: {accounts: [], version: 5.4, token: null, static: {}}, error: null}

when excute at this line(endities.g.dart line 237):

  result.data.replace(serializers.deserialize(value,
                specifiedType: const FullType(LoginResponseData))
            as LoginResponseData);

i got the error

I/flutter (11099): Deserializing '[data, {accounts: [], version: 5.4, token: null, static: {}}, null, null]' to 'LoginResponse' failed due to: Invalid argument(s): Unknown type on deserialization. Need either specifiedType or discriminator field.

E/flutter (11099): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (11099): type 'DeserializationError' is not a subtype of type 'String'

i have searched by google, still don't quite clear..would you please give me some tips ? thanks hillelcoren.

confusion when field is 'id'

You might want to include in your docs a warning to not use 'id' as a field name since it conflicts with your BaseEntity. I included 'id' in my list of fields and got some errors saying that it thought I was overriding 'id' from baseEntity.

No application found for TargetPlatform.android_x86

I'm on Linux Mint 18.3
When I try to run flutter run, I get the following message:

$ flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
No application found for TargetPlatform.android_x86.
Is your project missing an android/AndroidManifest.xml?
Consider running "flutter create ." to create one.

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.