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

QUESTION: how to write the BLOC pattern's state file?
Hi everyone, I was going through the flutter_bloc tutorial and they used two different ways to write the BLOC's state file. For one bloc they used an abstract class extended from Equitable while for the other they used a single class with factory constructor for defining states. My question is when do we use which one?

May 17, 2020 at 10:32AM by dontGiveAnEfAnynore
https://ift.tt/3fYeFb6
New post on /r/flutterdev subreddit:

Automatically deploying to Firebase after Flutter Build Web
Hi all , I basically want to automatically run firebase deploy after building the web client . Is their a trick to doing this ?

May 17, 2020 at 11:28AM by undefinedNANString
https://ift.tt/2X6huhA
New post on /r/flutterdev subreddit:

FlutterForce — Week 77
https://ift.tt/2ZddVZQ

May 17, 2020 at 12:43PM by flutterist
https://ift.tt/2ZdeWB8
New post on /r/flutterdev subreddit:

I'm confused about flutter
i'm afraid of be unemployed.What i have to know about advanced flutter? Shoul i have to learn mongodb,nodejs? I know firestore and local database(sqflite).What i have to learn guys?This is my question.Give me some advices

May 17, 2020 at 01:53PM by sonmohikan12
https://ift.tt/364F5Uc
New post on /r/flutterdev subreddit:

Should I use GetIt instead of InheritedWidgets?
I am about to start a really complex and huge project and I can't decide whether to use GetIt or not. My use case would be to "get" ChangeNotifier (or BLoC) objects, and common service objects like DbService, etc. On one hand, it would be nice to be able to access these objects without needing a BuildContext. On the other hand, GetIt kind of feels like a dirty solution and an easy way out since it is using a global map that has references to singleton classes. I need thoughts on why I should or not use GetIt instead of InheritedWidgets. I have been reading about this for hours but I haven't yet found a convincing enough answer that made me stop researching, so I decided to create a new post to see if there are some fresh ideas on this issue. I would appreciate explaining your thoughts with use cases instead of just stating them.EDIT: If I decide to go with InheritedWidgets, I am gonna use package:provider.

May 17, 2020 at 02:20PM by toplanisback
https://ift.tt/2TtGm2b
New post on /r/flutterdev subreddit:

Flutter JSON parsing: What is the fastest?
https://ift.tt/2X3e934

May 17, 2020 at 04:39PM by CraftThatBlock
https://ift.tt/2LzHk8x
New post on /r/flutterdev subreddit:

Windows or Ubuntu?
Where should I setup my environment? Is ubuntu faster for android development?

May 17, 2020 at 05:44PM by PinkmanLannister
https://ift.tt/2X7eL7B
New post on /r/flutterdev subreddit:

Navigation Rail Widget - Flutter v1.17
After Flutter latest version 1.17 there is a new Widget in Flutter Widgets familyNavigation RailHere is my effort: https://link.medium.com/NuImQh54y6Please do share your Design with me if u tried for learning purposesThanks a lot 😊

May 17, 2020 at 05:41PM by m_hamzashakeel
https://ift.tt/2TfKbaV
New post on /r/flutterdev subreddit:

Provider: How to handle model dependencies?
Hi!I've watched many Provider tutorials, and I love provider so far, however I have two architectural problems.​First issue is the login flow, after I get a successful login response with userId, I need to push HomeScreen() and load some initial data, from various providers.Example:​
//HomeScreen.dart initState() { super.initState(); initializeData(); } Future <void> initializeData() { var authenticationProvider = Provider.of<AuthenticationProvider>(context); var accountProvider = Provider.of<AccountProvider>(context); var albumProvider = Provider.of<AlbumProvider>(context); var songProvider = Provider.of<SongProvider>(context); await accountProvider.loadAccount(authenticationProvider.getLoggedInUser().id); await albumProvider.loadAlbums(); await songProvider.loadSongsForAlbums(albumProvider.getAlbums()) } 
This works, but feels ugly?​And second issue is:Imagine the API like this:api/albums (model contains info about album)api/albumpurchases (model contains which albumId and userId)​What would be the best way to get purchased albums of the logged in user?I can think of 3 different ways, none of which seem good:AlbumProvider having two arrays, albums[], and purchases[], and a method getAlbumByPurchase (String purchaseId) or getPurchaseForAlbum(String albumId) which then does .where() by Id and returns the item.Having AlbumProvider and AlbumPurchaseProvider, then using ProxyProvider to combine the two.I'm not sure how exactly would that be implemented, an example would be very appreciated!Adding "purchase" property to an Album, then manually mapping it similarly to way 1).I've used this so far, and it seems great in the beginning but gets very ugly very quick since your subsequent Album HTTP responses everywhere would be lacking that purchase property, so I either need to get the purchase again, or I need to get it an Album object with the purchase from AlbumProvider based on an Id in response I got.​Thank you all in advance!

May 17, 2020 at 06:29PM by snail_jake
https://ift.tt/2zHqW3h
New post on Flutter Dev Google group:

Flutter List filter issue
Hi all, I'm new to flutter but I have successfully done one application and already put on play store. I'm working on my second app and I'm facing an issue. I'm fetching a json List from a server Then I show that list in List view. Container( height: AppTheme.fullHeight(context),

May 17, 2020 at 06:36PM by yasitha perera
https://ift.tt/2y91SS8
New post on Flutter Dev Google group:

How to change Data when swap horizontally in Tab bar
Hi Team, I am facing a problem - when swapping the tab bar I am getting the same page for all the tabs. how can I change the data based on swapping? [image: image.png] [image: image.png] But I can able to change the data when taping the tab bar using* on tap* function, Kindly check this

May 17, 2020 at 06:41PM by Ram Kumar
https://ift.tt/2y91W4k
New post on /r/flutterdev subreddit:

Flutter apps (show me)
Hey,I still can't figure out if I should go Flutter way or RN. I know many RN apps, but can't say the same with flutter.Show me apps that you have made with flutter.

May 17, 2020 at 07:28PM by ilmep
https://ift.tt/2AzBVMp
New post on Flutter Dev Google group:

How to implement a custom drop down button?
I know there is a DropDownButton widget, but i need to use some other button, Like a FlatButton or RaisedButton, so that i can make a custom icon/text field as the trigger for drop down. Any ideas?

May 17, 2020 at 08:34PM by Hassan Hammad
https://ift.tt/2zKkk48
New post on Flutter Dev Google group:

rowspan & colspan in table in Flutter table as we use in HTML table
I want to show data in table format & it have merged cells, I tried it with flutter table but it does not have rowspan and colspan feature. Is there any way I can show the data as following [image: Screenshot 2020-05-18 at 12.15.15 AM.png] Please make sure that data is dynamic here.

May 17, 2020 at 08:52PM by AKHIL SRIVASTAVA
https://ift.tt/3dUHbsp
New post on Flutter Dev Google group:

Convert Java to dart
is there a way convert java to dart and vice versa ?

May 17, 2020 at 11:39PM by John Melody Me
https://ift.tt/2LDph1i