Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
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
New post on /r/flutterdev subreddit:

Managing playlists in Flutter with Just Audio
https://ift.tt/3xGyTz1

May 02, 2021 at 10:52AM by Suragch
https://ift.tt/3xQto0W
New post on Flutter Dev Google group:

How to process Back button?
This is related to Android platform. How to process a Back button (a button of a smartphone that closes an application)?

May 02, 2021 at 03:07PM by Steepe Hare
https://ift.tt/334IIbY
New post on /r/flutterdev subreddit:

Flutter Marketplace payment gateway
Hello guys,​I am currently coding an app a bit like Depop. Users have the option to sell items but also to buy.I am now at a point where i need to integrate a payment gateway. I have started with Stripe Connect but I find it a bit overcomplicated since every users need to create a Stripe account in order to enter their bank details.I was wondering if some of you had already coded apps like this and what gateways you used.​Thanks

May 02, 2021 at 02:29PM by tobiodp12
https://ift.tt/3nD3KYO