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

When Will Flutter Web Be Out of Beta?
Hello, does anyone know when Flutter Web will be out of beta?

December 01, 2020 at 02:21PM by candiddevmike
https://ift.tt/3lqPZK1
New post on /r/flutterdev subreddit:

How to split a string like "Word" into an array like[W,Wo,Wor,Word]
I am trying to create search keys for my firebase cloud database, so people can search through them because I read that firebase doesn't support search and Elastic search and Algolia are too expensive at this stage of my project so at the moment I need to improvise, I have a collection of items that contain products, with names like "hp laptop", "Lenovo laptop" so I want to be able to search through the names and the best way I can think of is to create search tags by splitting the names of products and using array contains when querying the database so if a user types H, or Hp, or Hp Laptop they will get the right result, does anyone know how I can achieve this?

December 01, 2020 at 03:42PM by OkManufacturer6506
https://ift.tt/3odCEGQ
New post on /r/flutterdev subreddit:

Flutter CMS SDK
Hi everybody! My team and I have just released the Flutter SDK for our Headless CMS. Right below there's a "Getting Started" article, we think it's pretty good. If you would like to give us a shot, please a read it and tell us what you think. If you're interested in our product, you'll find our contact form at the end of the article.It's free for developers, all kind of feedbacks are welcome.https://web.mburger.cloud/article/how-to-deliver-contents-to-your-flutter-app

December 01, 2020 at 03:17PM by gianlupu
https://ift.tt/3qeoiaS
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