Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New tweet from FlutterDev:

⚡️ Performance profiling and jank-busting These can seem like topics for advanced devs, but don't sell yourself short! In this blog post @filiphracek walks through how a few tools and a little know-how can add up to big time improvements... Read → https://t.co/SI0aIpe0UM https://t.co/khoOaJBwS2— Flutter (@FlutterDev) Sep 6, 2021

September 06, 2021 at 06:00PM
http://twitter.com/FlutterDev/status/1434909264347271173
New post on /r/flutterdev subreddit:

Widget inheritance versus composition - what should I do?
After a bit of research, I learned that Flutter for the most part prefers to use composition rather than inheritance when it comes to widgets. For example:- https://flutter.dev/docs/resources/architectural-overview#composition- https://stackoverflow.com/questions/51476234/subclass-a-class-that-extends-statelesswidget-or-statefulwidget-class-https://groups.google.com/g/flutter-dev/c/muVUV4z71fs/m/DS0twymQCAAJWhat if multiple widgets use the same class member (for example an APIService class)? My first instinct was to create a BasePage and have the classes inherit from this BasePage widget - but realized this may not be the proper way to do things in Flutter. For example:Class BasePageWidget {
final apiService = APIService();
}Class A extends BasePageWidget {
super.apiService to use inherited class
}What is the commonly accepted way to approach this? Do I simply add the class member to all of the widgets the utilize the ApiService? This seems a bit repetitive. For example:Class A {
final ApiService = APIService()...useApiService somwhere in the class
}Class B {
final ApiService = APIService()...useApiService somwhere in the class
}

September 06, 2021 at 07:01PM by Material_Problem_380
https://ift.tt/3DRXzrj
New post on /r/flutterdev subreddit:

How to use Graphqlprovider in multi provider
How can i use graphqlprovider in multiprovider that wraps the materialapp. I have other providers and want to include graphql. Any help? Thanks

September 07, 2021 at 01:24AM by Jaymal1
https://ift.tt/3l3M8V5
New post on /r/flutterdev subreddit:

Has anybody used Flutter web in the last couple of months?
How’s it like? Can I use it to build a portfolio website?

September 07, 2021 at 07:25AM by private256
https://ift.tt/3n6uker
New post on /r/flutterdev subreddit:

Riverpod vs Bloc
Which one and why?View Poll

September 07, 2021 at 10:42AM by Mesota22
https://ift.tt/3BS2aIv
New post on /r/flutterdev subreddit:

Looking for CSS like FR unit
Hi while doing some flutter courses I saw most of the time the instructor uses fixed sizes like 200, 300 etc.He mentioned the use of mediaquery to calculate the screen size and then take % of the space that you want of the screen, which is a much better approach.But coming from the web I really like that I can take a div and just create a grid inside it and define the width and height of items in that by fractions (fr) so basically I can say "item A takes 20% of the AVAILABLE SPACE, item B takes 50%, item C takes 30%" and then later I can take item B and create another grid inside it and create "b1,b2,b3 while b1 takes 60% of the available space, b2 takes 20%, b3 takes 20%" but since b1,b2,b3 are a part of B it means b1 is 60% of 50% of the space which is 30% of the parent div.​I probably explained it a bit complicated but overall I just look for a way to use CSS like grids without having to type defined widths each time, there must be a better way to position elements on your app that will fit the various different phone sizes.​Also can't flutter just take width: 100%? why do I need to do the long way of MediaQuery just to get the device width? you never do window.innerWidth in javascript

September 07, 2021 at 03:02PM by Physics_Total
https://ift.tt/3A3AXSk
New post on /r/flutterdev subreddit:

Enough with Firebase Flutter authentication videos.
Is it just me or someone else feels this too. Flutter Firebase authentication has been implemented by almost all possible ways in countless videos and articles. Please people stop with Firebase authentication videos.

September 08, 2021 at 07:36AM by coolshiv28
https://ift.tt/3ndn7JU
New post on /r/flutterdev subreddit:

[POC] Flutter MQTT client using MQTT protocol
Hello everyone,Since there is a shortage of Chat libraries in Flutter, I created a simple POC a week ago, it is a Flutter MQTT client for chatting app. The work is still in progress and I want you to give me some hints.You can check the application repo here.The Broker (MQTT server) that I used is HiveMQ with a custom chat extension.

September 08, 2021 at 11:00AM by Coffee__2__Code
https://ift.tt/3yU5WPE
New post on /r/flutterdev subreddit:

All my Flutter Animations Course projects are now on GitHub!
My Flutter Animations Course shows you how to build completely custom habit tracking application, along with some smaller projects such as the iOS stopwatch app.While the course is paid (and it was a lot of work to make!), I decided to share the source code for all the projects for free on GitHub:https://github.com/bizz84/flutter_animations_course_materialsThis repo also contains the full course syllabus, along with extra resources to learn about animations.Happy coding!

September 08, 2021 at 11:55AM by bizz84
https://ift.tt/3DY15jV
New post on /r/flutterdev subreddit:

Should I use SignalR with Flutter?
I need to add RTC features in my app. I am dotnet developer so I give chance firstly SignalR. Which one to should I use? SignalR, gRPC, SocketIO, Websocket. Also I need to use with Flutter. Is packages are enogh for SignalR.I am thinking like all backend system should be similar for performance. Can you give me advise for that?

September 08, 2021 at 03:34PM by Presentation-Short
https://ift.tt/3naEvPi
New post on /r/flutterdev subreddit:

Is Flutter good for building a video sharing social network?
I am new to Flutter and I just wanna ask a really quick question:Is Flutter suitable to make a video sharing app(like Tiktok and Youtube).I've heard some review that Flutter currently has a poor media capibility.Is this true and what's compare to other cross-platform framework?Tks.

September 08, 2021 at 04:44PM by Emergency-Carpet-728
https://ift.tt/2X4pTq1