hillelcoren / flutter-redux-starter Goto Github PK
View Code? Open in Web Editor NEWStarter project and code generator for Flutter/Redux
Home Page: https://www.youtube.com/watch?v=pMSokKmwp1U
Starter project and code generator for Flutter/Redux
Home Page: https://www.youtube.com/watch?v=pMSokKmwp1U
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.
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
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.
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
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!!!
@hillelcoren ,hi hillelcoren,when i follow your example command,i got the error when install apk to emulator
can you give some advice?
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
@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.
May I know is there a way to run the script in Windows OS?
Thanks in advance!
model .g file not create while i create new module with command
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.
any tutorial video for login function
https://stackoverflow.com/questions/22764330/syntax-for-specifying-file-path-relative-and-absolute
This makes it a lot easier for reusable code in other projects.
Here is a plugin in vs code that does this already: https://marketplace.visualstudio.com/items?itemName=luanpotter.dart-import
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.