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

Any HTML WYSIWYG Editor available?
Hi Guys, I’m looking for a HTML WYSIWYG editor available as of now which is updated with Flutter 2.0 and works best in all platforms (Android, iOS and web) with minimal issues. I tried html_editor_enhanced but seems like it has quite a few issues.Thanks

May 01, 2021 at 06:56AM by anamak9
https://ift.tt/3e59hnE
New post on Flutter Dev Google group:

Flutter APP Api call
Hi, I am working on a project were I have to fetch more than 5 API on the page load..So is there any way to do that? Or call each service one by one? \ Thank you.

May 01, 2021 at 09:02AM by SHYAMILI T C
https://ift.tt/3t3DLed
New post on /r/flutterdev subreddit:

How's Firestore pricing if I use SearchDelegate?
Firestore charges per read. If I use SearchDelegate, and say I have a collection of 10,000 documents. Does this mean that every query a user types is charged 10,000 reads? Is this true?Thank you

May 01, 2021 at 09:30AM by JamesLarana
https://ift.tt/3vyRlYB
New post on /r/flutterdev subreddit:

Upgrading Flutter is very difficult.
If I upgrade Flutter's version, all packages and code in my current project get errors. Even if all errors are corrected, the build does not work properly.​flutter upgradeThis is the scariest command.

May 01, 2021 at 10:21AM by cjkis
https://ift.tt/3umf12l
New post on /r/flutterdev subreddit:

Using a GraphQL-like API Between Flutter Part and Native Part
Is the a good or a bad idea?I'd like to add Flutter to an existing app which of course has an existing data model and existing way to fetch and store data locally. I don't want to (and can't) reimplement this in Flutter.Instead, I had the idea to create a GraphQL-like endpoint for the Dart side to query and mutate data. I refrain from directly using GraphQL because that seems to require large changes/additions to the native side.I will simplify the query language to this:
query = {props} props = "{" {prop} "}" prop = Name [params] [props] params = "(" {Name ":" Value} ")" 
This is an EBNF grammar. Name is the usual identifier. Value is a JSON value. I left out its rules for brevity. A simple query might look like this:
hero(id=3) { name friends { name } } 
I send a JSON representation, so that parsing the query string is done once on the Dart side. The native side can safely assume that the request is valid and utilize a builtin JSON parser.As a proof of concept I was able to hack together a resolver library that adapts an existing data model so that queries can be executed in about 100 lines of Dart. A Swift or Kotlin version should look very similar. I'd have thought this is much more difficult ;-) My parser, that transforms queries into Dart objects needs more lines of code.I haven't thought about mutations, though.Here is my example: https://dartpad.dev/257537883905263d2b0a7640b4240833?null_safety=trueOf course, I'm lacking GraphQL's generic type description and I have absolutely no interactive IDE to compose queries by trial and error. Still, similar to GraphQL, I could setup a mock server for development have a clean separation with a well defined API between the native part and the Flutter part.PS: It shouldn't be difficult to come up with a parser for type declarations like the following example and for example type-check responses in development mode or generate boilerplate code.

May 01, 2021 at 12:00PM by eibaan
https://ift.tt/3gTVYrW
New post on /r/flutterdev subreddit:

Flutter development on 8GB M1 Macbook Air
Is anyone doing Flutter development, running VSCode and an emulator, on an 8GB M1 Macbook Air? What is the performance like? Any issues? Would you recommend it? (I realise 16GB would be much better but in the UK the Macbook Air's are much cheaper and only come with 8GB).

May 01, 2021 at 03:33PM by maximeridius
https://ift.tt/332ULq7
New post on /r/flutterdev subreddit:

Flutter performance for a big scale Android App.
I am planning to make an app using Flutter for a client, it is seemingly a long project and the app is basically a Learning app with a subscription model.I want to know if choosing Flutter would result in significant performance trade-offs down the line.Typically the features I'm worried about are:- Video playback with play/pause. Storing time of video played till now and starting from that spot in subsequent plays.- Infinite growing lists with images.- An integrated timed-test with focus on time spent on each section, and on multiple sections in different tabs.- Display a sort of learning material in app (something like a notes section which includes diagrams and explanations related to study videos)I don't want to give time and resources to this project and later find out that the performance penalty is too severe for it to be a viable app.Appreciate any advice (btw the app will mostly be Android only, however if you could also let me know about performance in iOS)

May 01, 2021 at 07:03PM by xaro-Xhoan-Daxos
https://ift.tt/3nChYJk
New post on /r/flutterdev subreddit:

Why the emulator is not working
There is no avd manager

May 01, 2021 at 08:03PM by Available_Ad_1691
https://ift.tt/3nEKXwa
New post on /r/flutterdev subreddit:

What is the reason behind using barrell files?
I have seen a couple of tutorials using the "barrell file" which includes all of the imports of a certain folder. However, I don't see any reasonable advantage of using it since all the imports are managed by the IDE (Android Studio in my case). My IDE also displays three dots instead of all the imports so I don't care about the number of imports.So why use the barrell file? Am I missing something?

May 01, 2021 at 08:57PM by jindra-zak
https://ift.tt/3nDX50e
New post on /r/flutterdev subreddit:

Rules is a simple yet powerful and feature-rich validation library for both dart and flutter.
https://ift.tt/2Yepaz5

May 01, 2021 at 10:15PM by marsNemophilist
https://ift.tt/2SkXpWn
New post on /r/flutterdev subreddit:

There is another way of navigation
In 2020, flutter team announced the declarative way of navigation, but just after its release a lot of bad reviews came out from developers from all over the world saying it is too verbose process to implement navigation using navigator 2, BUT, if we just try to understand the process of using navigator 2, then the power that flutter provides with navigator 2 can help us achieve great navigation flexibility in very simple way. After understanding and implementing the navigator 2 on few Projects I found it to be a game changer for any app.In the article, I tried to explain the concept that one needs to know before using the Navigator 2.0. The link of the article is on the first comment of this post, I hope you guys would find this article helpful.Let me know your thoughts on flutter's navigator 2 on comments below.Thanks

May 01, 2021 at 09:15PM by ankitbansal14
https://ift.tt/3aVYSZt
New post on /r/flutterdev subreddit:

Handling errors with ChangeNotifier.
I use ChangeNotifier to maintain state, and update my UI when this state changes. I am curious how other handle errors when using ChangeNotifier.For example, lets say I have a ChangeNotifier that handles signing in a user (simplified for this example).The states it can be in are as follows....State.noUserState.signingInState.hasUser​The method that can be called on it is...signIn(email , password)​When I call signIn , the state transitions to 'signingIn', when signin it complete, the state will transition to 'noUser' or 'hasUser'. But if the signIn fails, I have to communicate an error. I see two options to do so, and I am curious what how other people solve this problem.Option 1: Add a new value to my State enum called 'signInError'. The only reason this feels off to me, is because I need to create a brand new method just to transition out of this state..For Example, I might create a method called clearError() that will transition the state back to 'noUser' after an error has occured. So if I show an error dialog, dismissing it would called clearError() on the ChangeNotifier. This has code smell for me, but I am not sure why.Option 2: Have all method calls to the ChangeNotifier have a success/error return value. In the simplest implementation this could just be a bool that represents success/failure. That way, the State of the ChangeNotifier stays clean.....it represents the current user state an nothing more. But on the downside, now there is more state that will be pushed to the UI. The UI will have to handle this bool return value, store it in a variable in a statefulWidget, and then call setState to display some error UI dependant on this bool.​What are peoples thoughts on this problem? How have you handled it? Have you found any particular state management solution better or worse for handling this problem?

May 01, 2021 at 10:38PM by scorr204
https://ift.tt/3nIGLeL
New post on Flutter Dev Google group:

Flutter, Firebase, M1 Mac Chip
Hey! I am in the process of setting up authentication, firestore, etc. on my Flutter project. I can run with all the file changes even after adding the app to firebase, but as soon as I add any firebase package, whether it is firebase_auth, firebase_core or any other package, a huge error comes

May 02, 2021 at 08:23AM by Tomic Riedel
https://ift.tt/3tcSfrY
New post on Flutter Dev Google group:

How to change a label value automatically when we change other text fields in flutter?
I have used TextEditingController to fetch the changes in the text fields. Using the same I created a submit button and when the user clicks the submit button, it will calculate the values and update the label at the end. Below is the code. Stackoverflow link for image and code: https://stackov

May 02, 2021 at 08:50AM by Thunder Birds
https://ift.tt/3xGqpIb
New post on /r/flutterdev subreddit:

How to create a directory in Flutter - Flutter Folder Application
https://ift.tt/3eOxuxI

May 02, 2021 at 09:08AM by rrtutors
https://ift.tt/3tbPQ0W
New post on /r/flutterdev subreddit:

FlutterForce — Week 119
https://ift.tt/2Rkv2qx

May 02, 2021 at 10:56AM by flutterist
https://ift.tt/3td3kJA