Flutter Heroes
26K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on Flutter Dev Google group:

Phone Authentication in Web
My app uses phone authentication and work perfect on Android but doesn't work on Chrome. Don't know where is the problem?

March 16, 2021 at 06:00AM by Haider Ali
https://ift.tt/2Q9GWDl
New post on Flutter Dev Google group:

webview_flutter is not working
hello there! I want to open a web page through web view and used *webview_flutter*: ^2.0.2 plugin for that but getting error on *javascriptMode *as The named parameter 'javascriptMode' is not defined. Can anyone point me in the right direction?

March 16, 2021 at 06:38AM by Raman Plaha
https://ift.tt/3tm11Ve
New post on /r/flutterdev subreddit:

Firebase Pricing Example
im trying to understand the firebase pricing model and I stumbled over this. https://firebase.google.com/docs/firestore/pricingQueries other than document reads For queries other than document reads, such as a request for a list of collection IDs, you are billed for one document read. If fetching the complete set of results requires more than one request (for example, if you are using pagination), you are billed once per request.Let's say Im fetching 10 profiles from a profiles
collection (10.000 documents) randomly limit(10)
it would cost me 10 reads.
return FirebaseFirestore.instance .collection('profiles') .limit(10) .get() .then(...) 
Now I want to show my 10 results in the UI and I also want to show the clients a heart icon which is filled if the client liked the profile or not. I would fetch the user data and check if the user liked one of the 10 profiles. I already learned storing the user specific data in the same collection profiles
doesn't make sense, lets say we are saving it in a users
collection subcollection called profilelikes:
return FirebaseFirestore.instance .collection('users') .doc('userId') .collection('profilelikes') .get() .then((QuerySnapshot querySnapshot) => { querySnapshot.docs.forEach((doc) { if () { // check if profiles from list matches userprofile document } }) }); 
What does it mean for this case exactly? Lets say the user has 5000 documents inside the profilelikes
Im searching in 5000 documents if 10 of them are matching or not. Let's say 2 of them are matching:How many costs do we have here?First Query: 10 reads because we have 10 results here
Second Query: ???

March 16, 2021 at 09:55AM by md186
https://ift.tt/3bPsGYx
👍1
New post on /r/flutterdev subreddit:

Is Flutter 2.0 capable of supporting a real mobile solution migration approach?
My team wants to migrate away from a large native mobile app toward a complete flutter solution. What I read about add-to-app being limited to a single module and no new maturity of support in 2.0. I dont see how such a migration is possible (replace a native feature one at a time until we have a full flutter app). Is this limitation still there in 2.0? If so, I dont see how flutter can become a real approach for mobile teams to embrace such a framework. The risk to move to it is still too high. If it is true, shouldnt this be a major focus for the project?

March 16, 2021 at 10:18AM by RavenRIP
https://ift.tt/3vvZYUE
New post on /r/flutterdev subreddit:

Backend and map recommendation for app like uber
So I'm making an app like uber and i wanted your recommendations for a backend database and map considering lower costs Thanks

March 16, 2021 at 11:34AM by ihs_ahm
https://ift.tt/3czr6tf
New post on /r/flutterdev subreddit:

Flutter: Realtime API data fetch
I came across to this one solution where we need to use Timer() in order to fetch the changes over time and add to stream controller. Just a simple question, does this method will consume more internet usage for the user?Because, even the API data does not have new value, the apps still will fetch the API when the period in Timer() reach, which I consider this is just waste of process and internet usage.​link to stackoverflow : https://stackoverflow.com/questions/66653346/flutter-realtime-api-data-fetch

March 16, 2021 at 11:32AM by sangkaraka
https://ift.tt/3tmRBJ2
New post on /r/flutterdev subreddit:

firebase flutter
can anyone explain this code please ?​var data=db.collection('name of collection').getDocuments();if(data!=null){details=data.documents.map( (document)=>nameOfClass.fromMap(document) ).toList();​okay first one we fetch documents from it that is fine with me but second one​​why write documents ? we have documents from first line ?function map how take this callback function ? what is document ?how return it key value pairThank you so much

March 16, 2021 at 02:37PM by SolidSize1433
https://ift.tt/3vwH93G
New post on Flutter Dev Google group:

How to go back to initial page in in a PageView thats in a TabBarView when the TabBarView changes?
I have a TabBarView with a PageView that has 2 pages in it. I have access to the indexIsChanging property in the TabBar. How can I go back to page 1 whenever the TabBar changes?

March 16, 2021 at 04:52PM by Scott J
https://ift.tt/3cyuK6y
New post on /r/flutterdev subreddit:

In app subscription
I want to implement in-app subscription in my flutter app to remove the ads which is similar like OTT plateform but I doesn't know how to do that or is its possible to do without google billing

March 16, 2021 at 04:31PM by Prashant_4200
https://ift.tt/3eHpf8p
New post on /r/flutterdev subreddit:

Null Safety Driving me nuts.
I get it. It’ll be good long term. But as a novice coder, I regularly reference docs and examples in flutter documentation...which are all null safe.Things like figuring out what late is and why a “this” suddenly isn’t allowed when I’m copying and pasting the example exactly was driving me nuts.But then migrating to null safety breaks SO MUCH in my app. Like, why did my AnimatedBuilder suddenly break? Gotta figure that out...So what’s the best guide out there on moving to null safety? Guide for idiots I guess would be best.

March 16, 2021 at 07:54PM by jbryanh
https://ift.tt/3eLDokJ
New post on /r/flutterdev subreddit:

How to Create a 2D Snake Game in Flutter
https://ift.tt/30PMNQk

March 16, 2021 at 07:41PM by Swefnian
https://ift.tt/3lpidGp
New post on Flutter Dev Google group:

Container within Expanded widget resizes on adding a child
Hi, I have setup a container with the dimensions of the screen. Furthermore, I have set-up a column within this container and finally the column widget has two more containers within. My problem is that everytime I try to add a child to one of the containers within this column, the container

March 16, 2021 at 09:02PM by Ameya Paranjape
https://ift.tt/2OCsH9u