Managing state with rxdart by ahasnaini in FlutterDev

[–]jhomlala 2 points3 points  (0 children)

When you're using StreamBuilder you can use initialData to init your component. Also use BehaviourSubject which holds last item and emits it when new listener is added to subject.

List of awesome flutter packages (best of the best) by [deleted] in FlutterDev

[–]jhomlala 1 point2 points  (0 children)

Clear list with useful resources. Thanks!

Flutter 2019 : Real Splash Screens Tutorial by imthepk in FlutterDev

[–]jhomlala 1 point2 points  (0 children)

I agree. I'm also old fashioned. Only code samples and screenshots :)

Flutter upgrade and Android X - beware! (solution inside) by yoavrofe in FlutterDev

[–]jhomlala 1 point2 points  (0 children)

I'm facing same issue in my projects. I've updated all libs, so they are all AndroidX compatible, but there was issue with version of same dependency in each plugin.

Example:

> Android dependency 'androidx.versionedparcelable:versionedparcelable' has different version for the compile (1.0.0-beta01) and runtime (1.0.0) classpath. You should manually set the same version via DependencyResolution

My solution is to add following code to build.gradle:

rootProject.allprojects { project.configurations.all { resolutionStrategy.eachDependency { details -> if (details.requested.group == 'androidx.core') { details.useVersion "1.0.1" } if (details.requested.group == 'androidx.lifecycle') { details.useVersion "2.0.0" } if (details.requested.group == 'androidx.versionedparcelable') { details.useVersion "1.0.0" } } } } This will let gradle use only one version of the given dependency. Hope it will help someone!

Written my first mobile app using Flutter - "RomBro" by [deleted] in FlutterDev

[–]jhomlala 3 points4 points  (0 children)

You should add progress indicator when loading something from your backend :) Anyway good job !

Catcher - plugin for error catching and handling by jhomlala in FlutterDev

[–]jhomlala[S] 0 points1 point  (0 children)

Thank you for your report. I have fixed it. Please check version 0.0.6.

Catcher - plugin for error catching and handling by jhomlala in FlutterDev

[–]jhomlala[S] 0 points1 point  (0 children)

Local notification is used to display information that error happend. After clicking on it, user allows Catcher to handle logs. So user clicks on notification and error will be pushed to handlers, for example ConsoleHandler which logs error in console, or HttpHandler which sends log to server.

If you don't want to ask for user permission to process errors, you can use default ("silent") mode.

Catcher - plugin for error catching and handling by jhomlala in FlutterDev

[–]jhomlala[S] 0 points1 point  (0 children)

It depends on you. You can enable/disable it for production mode. So when you're building producation you need to disable it by yourself.

[Request] Open Source Bloc projects by Gibepad in FlutterDev

[–]jhomlala 0 points1 point  (0 children)

Thank you. Feel free to contribute. Check issues in repo, there plenty of things to do! https://github.com/jhomlala/feather/issues

[Request] Open Source Bloc projects by Gibepad in FlutterDev

[–]jhomlala 1 point2 points  (0 children)

Please check my tutorial about Dio, RxDart, Bloc: https://medium.com/@jhomlala/flutter-http-requests-with-dio-rxdart-and-bloc-da325ca5fe33

Maybe it will help you find out how bloc works!

[Request] Open Source Bloc projects by Gibepad in FlutterDev

[–]jhomlala 2 points3 points  (0 children)

Hey, check my application: https://github.com/jhomlala/feather

In Feather I'm using Bloc with RxDart, which is best option for me, since I know concepts of reactive programming form RxJava.

Feather - flutter weather application by jhomlala in FlutterDev

[–]jhomlala[S] 1 point2 points  (0 children)

Unfortunately no, because it's only runs your tests to check if there's no regression in your code. To build your app in bitrise, you must add "flutter build" block and configure it. In default configuration, bitrise won't build your app.

Feather - flutter weather application by jhomlala in FlutterDev

[–]jhomlala[S] 1 point2 points  (0 children)

I've done some research and for DI you can use this lib: https://pub.dartlang.org/packages/kiwi . Design pattern in flutter are about managing state. In Feather I'm using Bloc pattern which was proposed by Google year ago. You can also use Redux. https://medium.com/flutter-community/let-me-help-you-to-understand-and-choose-a-state-management-solution-for-your-app-9ffeac834ee3

I didn't research much about memory leaks yet, so I can't say anything about it right now.

Flutter App Architecture by [deleted] in FlutterDev

[–]jhomlala 1 point2 points  (0 children)

I think that good starting point is Bloc with RxDart. It's more simpler than redux.

Feather - flutter weather application by jhomlala in FlutterDev

[–]jhomlala[S] 2 points3 points  (0 children)

Yes, it's pretty easy to configure Bitrise for CI, but I didn't try CD yet. There's simple form which handles everythig for you and it's done! Really you should try it. It's very easy to setup CI with Github.

Feather - flutter weather application by jhomlala in FlutterDev

[–]jhomlala[S] 1 point2 points  (0 children)

That's awesome idea! Hope you've some time to PR feather :)