Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on /r/flutterdev subreddit:

Flutter - use case
Hello, I would like to discuss the idea of using Flutter for an app use case. Me and friends of mine came up with and app / startup idea for mobile app. The app would use a lot of platform API (in future / not currently in MVP), such as GPS (Geofencing), camera, compass and one day AR. Despite the fact I made a lot of native Android apps and some Flutter apps (2 apps currently on App Store / GPlay) and really like Flutter, I am not sure about using it in this use case. On the other hand, we have almost or little experience in iOS, which is a problem as well.What do you think, would you use Flutter, despite the fact that platform APIs may be the thin and easily broken part of the app?View Poll

December 01, 2020 at 08:34PM by szalis
https://ift.tt/3qiVzBO
New post on Flutter Dev Google group:


How to remove markers from a flutter leaflet map? I used this program .But, it is not working. When I uncomment the traveler_markers = traveler_markers2; (after print statement)it removes all markers from other functions also. I want to remove only this set of marker from the super set.

December 02, 2020 at 07:20AM by sona
https://ift.tt/37tD9p9
New post on /r/flutterdev subreddit:

Flutter - Grocery App - Payment & RazorPay Payment Gateway
🔥 Flutter - Grocery App - WordPress - WooCommerce Series 🔥 - EP 10 - PayPal & RazorPay Gateway*Episode 10 : Payment Gateway*🛑🔑 Key Features :➡️ Payment Screen Design➡️ InAppWebView to Integrate any type of Payment Gateway➡️ RazorPay Payment Gateway➡️ Paypal Payment Gateway​📹Video : https://youtu.be/KVyOXxnS9Uw​LIKE, COMMENT and SHARE to reach out the course to those who need. Also, SUBSCRIBE if you find something meaningful!❤️Happy Coding!!

December 02, 2020 at 08:36AM by SnippetCoder_YT
https://ift.tt/2JFkwGw
New post on /r/flutterdev subreddit:

How do you use BLoC - Flutter Bloc
So recently I've been thinking about a way to structure my blocs in a way that would be simple and intuitive. So I came up with two ways:One event - One data - One stateSo this one is quite simple to understand: When a public event is triggered, only one type of data will be fetched/loaded and this data and only this data will be yield, which means that if you need to fetch/load more data you'll need what I call a private event. Those private events are triggered by previous events.I've come to find that this method works best with freezed and yield by copyWith.Here's a visual representation of how it works:Public event Data loaded Yield state.copyWith Private event Data loaded Yield state.copyWith etc...Here a code example:```dart yield* event.map( publicEvent: (event) async* { User user = await loadUser();
 yield state.copyWith( user: user, ); add(const MyBloc.privateEvent1()); }, privateEvent1: (event) async* { List<Post> posts = await loadPosts(); yield state.copyWith( posts: posts, ); if (something) { add(const MyBloc.privateEvent2()); } }, privateEvent2: (event) async* { List<Draft> drafts = await loadDrafts(); yield state.copyWith( drafts: drafts, ); }, 
); ```This method seems to ensure that the code in each event is short and readable. It also more or less respect the single responsibility principle by allowing one API call per event.A drawback I find with this method is that the more private events and condition you have the more complex it becomes to keep in mind how the entire logic flow. I have to admit that I had to use drawio to have a visual representation of the logic flow.I haven't been able to found any significant performance issues even with 10+ consecutive private events.One event - One stateThis one is the simplest way to structure your bloc. An event is triggered, you fetch/load all the data you need for this event and then you yield them all.Here's a visual representation of how it works:Event Data loaded Data loaded Data loaded Yield stateHere a code example:```dart yield* event.map( publicEvent: (event) async* { User user = await loadUser(); List<Post> posts - await loadPosts();
 List<Draft> drafts = <Draft>[]; if (something) { drafts = await loadDrafts(); } yield state.copyWith( user: user, posts: posts, drafts: drafts, ); }, 
); ```This method has the merit of being direct. You have everything you need in one place and it's easy to have a visual representation of the logic flow.The problem I personally have with this method is having this much calls in one place. The more data you need to fetch/load and the more condition you have, the more bloated the code becomes.Overall I don't have a preference for either of these methods and I use them as I see fit but I would like to have a method that I can use all over my codebase for consistency reason.If you have your own way of structuring blocs please feel free to share, hopefully, we'll be able to find a "universal" structure.

December 02, 2020 at 12:02PM by SSebigo
https://ift.tt/3lzCs2B
New post on /r/flutterdev subreddit:

Flutter Web Scrolling
The performance of the scrolling and the feel in Flutter Web is really not on the level that I would like. It's laggy and there is no scrollbar.I have made packages for each problem, so feel free to use them. I created both of them almost from scratch. You can find them in the following links:Smooth ScrollingScrollbar For Flutter WebI hope it can help you guys. We should use Flutter on the web regardless it is only available on the beta channel, but I have been developing with Flutter web, and the experience is a lot better than a year ago.

December 02, 2020 at 11:56AM by ImDeZz
https://ift.tt/3mv0g9b
New post on Flutter Dev Google group:

Image upload from internet -error
Hai all I was successful in uploading an image from asset (drive) to my project but I am getting an error while trying to upload an image from internet for my project. Flutter is throwing an exception -Invalid image data, I tried with different ursl , but it is happening again and again. I had

December 02, 2020 at 03:21PM by Abhi
https://ift.tt/2JDT8Zy
New post on /r/flutterdev subreddit:

Flutter app to track smartphone app activity?
Hello all,I want to create a system to track my smartphone use and see which apps I use most often and in what time frames. I am trying to cut down on smartphone use and seeing the trends and number would help me. Are there any packages/apps you know of using Flutter that can track app activity?Note, this will most likely be for personal use only so asking for permissions is not an issue here. If I create the app, I want to be able to control my own data, thus I would prefer to build the app myself.Thanks in advance!

December 02, 2020 at 08:06PM by joeschmidt97
https://ift.tt/3lviPJ1
New post on Flutter Dev Google group:

Hi Flutter Community!
Hello! My names Chris Scarborough and I've been struggling severely getting my mind wrapped around creating my own app! I love the idea of learning and creating an app with flutter considering its cross compatible and all, but I'm also terrified by the idea of waiting to long to make my idea,

December 03, 2020 at 02:13AM by Chris Scarborough
https://ift.tt/3g8PAL9
New post on /r/flutterdev subreddit:

Which Framework do you think the best in 2021?
View Poll

December 03, 2020 at 03:47AM by deldev
https://ift.tt/2KU0mcA
New post on /r/flutterdev subreddit:

Flutter Web, the chance to make websites
Does anyone here don't like html, css etc, and because of this don't develop websites? just apps, and with Flutter Web got excited to build some websites?I personally don't like html css, I was always avoiding to learn web development, now I might start studying React, since flutter web might take a long time to really be ready for production.Plus, People say that web apps is not the same etc...Anyone in the same situation?

December 03, 2020 at 03:03AM by D_apps
https://ift.tt/3mAYJym
New post on Flutter Dev Google group:

New Dart DevTools Release - 0.9.5
*DevTools 0.9.5 Release Notes* Dart DevTools - A Suite of Performance Tools for Dart and Flutter *Memory Updates* - New chart subsystem exposed in memory view. New charts are faster, smaller, easier to use and more customizable to our needs. - Once the memory view is

December 03, 2020 at 04:40AM by Terry Lucas
https://ift.tt/2JFRkzu
New post on /r/flutterdev subreddit:

CompleterEx - a package for diagnosing Completers that don't complete.
CompleteEx is a simple package that wraps a dart Completer.https://pub.dev/packages/completer_exIt works exactly as a Completer does and is a drop in replacement.So why use CompleterEx?If you fail to 'complete' a Completer it can be close to impossible to find the problem completer.CompleterEx solves this problem by logging any completer that hasn't completed within a given time period (10 seconds by default).It then logs the stacktrace to the code that created the completer making it easy to find the problem code.I've spent hours trying to track down completer problems. This class makes the problem obvious.

December 03, 2020 at 05:33AM by bsutto
https://ift.tt/36yzOGf
New post on /r/flutterdev subreddit:

Flutter Clean architecture Sample
DoneIt 📝 is a sample Note app.✔️ Clean Architecture✔️ BLoC state management tool.✔️ Unit Tests.✔️ In memory database.If you found it useful do give it a () on GitHub.GitHub Repo

December 03, 2020 at 08:29AM by developerguruji
https://ift.tt/37s0oAd
New post on Flutter Dev Google group:

I have a suggestion for flutter. Please read it
I think it would be better to refactor the UI code of fluent in a similar way to HTML. Don't rush to reject me, please see the figure. Please compare the left and right sides of the picture. On the left side of the figure is similar to HTML code, on the right side is flutter code, and the code on

December 03, 2020 at 10:30AM by sven Wu
https://ift.tt/37yNDUi