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

Pro Tip: enableDithering property
My gradients weren't looking smooth, so i googled it and came across this stackoverflow answer: https://stackoverflow.com/a/64807773/13972151It made my gradients way more smooth, color stops are way less visible now. I saw that this property isn't mentioned much; so i thought it could be useful to some.

November 09, 2021 at 05:50PM by ercantomac
https://ift.tt/3qnrJ1h
New post on /r/flutterdev subreddit:

HTTP GET and POST are very slow in IOS compared to Android
I recently knew about a problem in Flutter in IOS physical devices, which is mainly (HTTP GET and POST are very slow in IOS compared to android) I'm starting a project that depends heavily on the back-end, so I'd like to hear from people having the same case and went to production. Do you have this issue? Is it fixed in Flutter 2.5?

November 09, 2021 at 05:41PM by Own-Fact-778
https://ift.tt/3kmyHjs
New tweet from FlutterDev:

πŸ¦‹ Chapter 5: Pop Quiz! Which of the following widgets is essentially a Column or Row that can scroll? #flutterapprenticeβ€” Flutter (@FlutterDev) Nov 9, 2021

November 09, 2021 at 06:05PM
https://twitter.com/FlutterDev/status/1458118663710466048
New post on /r/flutterdev subreddit:

Actual State of the Art of Flutter framework
I would like what is the state of the art framework written in dart for flutter. In particular, there is currently a framework that speeds up the development of the flutter app for many platforms?​Thanks

November 09, 2021 at 08:07PM by crazyjoker96
https://ift.tt/3EXeTLt
New post on /r/flutterdev subreddit:

I was trying to use withConverter firestore to display data. It display nothing
Is it just me or you guys facing it tooo??

November 09, 2021 at 09:35PM by redHero0010
https://ift.tt/3wDdvKX
New post on /r/flutterdev subreddit:

What are common practices in Flutter
Atm, I'm one month into Flutter and as stated in the title, I would like to know, what are the best or common practices in Flutter regarding things like the project structure, files naming, placing widgets as functions etc. Also how do you decide if u want to use stateless or statefull widget. How do you decide when to extract a widget to a separate file and inject/import it where & when needed.I haven't really watched any tutorials or taken any courses when learning Flutter, I mostly followed Flutter documentation as much as I could.

November 09, 2021 at 11:05PM by donzavo
https://ift.tt/3H3parg
New post on /r/flutterdev subreddit:

Flutter State Managers: Do big companies/projects rather use GetX, BLOC, or Provider?
Hi, I'm new to flutter and I want to know which state manager is more useful to learn. I've had some experience in all 3, but not sure what big companies or projects use. Or do they use a combination?Do they use the Provider package cause its the most popular one? Or do they use BLOC, which is complex for beginners. Or do they use GetX which I don't know why but I have seen more Youtube tutorials using it nowadays.Thanks!

November 09, 2021 at 11:55PM by sailllyon
https://ift.tt/3odifDp
New post on /r/flutterdev subreddit:

Push Notification In Flutter and Firebase | Advance Tutorial 2021
https://youtu.be/PpAoCXEnvvM

November 10, 2021 at 08:03AM by backslashflutter
https://ift.tt/3H7MqVe
New post on /r/flutterdev subreddit:

Securing socket connection in flutter
I was working with socket io and was wondering if there was any way to make sure that the data getting passed is coming from an authenticated user.

November 10, 2021 at 10:54AM by abdimussa87
https://ift.tt/3EZcIXK
New post on /r/flutterdev subreddit:

Bot submissions on Flutter Web Forms
What are you using to prevent/minimize bot form submissions on flutter web? Pub.dev doesn't appear to have a solution out of the box on first glance. I know I can do some arithmetic validation like "answer 3+5", but a more robust solution would be great.

November 10, 2021 at 01:37PM by sonicworkflow
https://ift.tt/3quAg2R
New post on /r/flutterdev subreddit:

We made a package to add passwordless auth into your Flutter apps
Hello Flutter Devs,We at Magic recently released a new Flutter package for adding passwordless authentications to your applications.https://pub.dev/packages/magic_sdkNow it's super easy to onboard users without passwords.Read the docs to get started in minutes. And we look forward to seeing your apps using this package and want to hear your integration stories.

November 10, 2021 at 04:00PM by alamshahbaz
https://ift.tt/3krxlDY
New post on /r/flutterdev subreddit:

A Package for Undo/Redo Support in StateNotifier
https://pub.dev/packages/history_state_notifierHistory State NotifierThis package offers an extension on state_notifier to add a full history support with undo/redo functionality.Features↩️ Add undo() and redo() to StateNotifierπŸ• Limit the size of your historyπŸ’• Offers both a mixin that can be added to your existing StateNotifiers and an abstract class that you can extendπŸͺΆ No dependencies on flutter or any other packages and super lightweight.πŸ”Ž Choose which states get stored to the historyπŸ”„ Transform states before applying them from the history

November 10, 2021 at 04:19PM by nameausstehend
https://ift.tt/30ge7ug
New tweet from FlutterDev:

πŸ’™ πŸ”₯ DartPad support is here! Making it easier to write code with Firebase and Flutter together. Tune in to #FirebaseSummit to ask the team your questions live β†’ https://t.co/7QGJ2SSna4 https://t.co/fXiBE0bFIPβ€” Flutter (@FlutterDev) Nov 10, 2021

November 10, 2021 at 07:10PM
https://twitter.com/FlutterDev/status/1458497358270844931
New tweet from FlutterDev:

B. ListView is the correct answer! πŸ₯³β€” Flutter (@FlutterDev) Nov 10, 2021

November 10, 2021 at 08:30PM
https://twitter.com/FlutterDev/status/1458517389876756483
New post on /r/flutterdev subreddit:

Firebase Auth/CloudStore support for DartPad
Earlier today on the Firebase Summit keynote, they mentioned that <dartpad.dev> now supports firebase_auth und cloud_firestore. I'm not sure whether this is useful beyond simple examples but still, it's nice, and perhaps more packages (like provider etc.) will be supported in the future.https://twitter.com/FlutterDev/status/1458497358270844931

November 10, 2021 at 11:17PM by eibaan
https://ift.tt/3wxs7LQ
New post on /r/flutterdev subreddit:

How to add signature on pdf
Good evening, I am in a project of signing documents digitally, and I need to add the signatures in a pdf document and researched and I can't find much information, any ideas? or any library that can help me.Thanks in advance

November 11, 2021 at 06:47AM by SirChavero
https://ift.tt/2YyIHhM
New post on /r/flutterdev subreddit:

I'm looking for study buddies
Hi everyone,I bought "The Complete 2021 Flutter Development Bootcamp with Dart" I'm looking for study buddies -- we will learn everyday, motivate and hold each other accountableI'm on section 6 after 5 days and picked up ebooks from here and there

November 11, 2021 at 08:16AM by LifeLongLearner2030
https://ift.tt/3Hn9UG3
New post on /r/flutterdev subreddit:

Some observations about the Flutter router and opening nested routes on the web. onGenerateRoute is called multiple times.
TLDRI request an initial route of /home/1/2/3/4/5 , but onGenerateRoute is called 7 times, 7 states are allocated and 7 widgets are built. One is expected for each.Solution: Use onGenerateInitialRoutes to override the default behavior.Deep Dive:I'm going to share what I've learned out of my own research when facing this issue.When opening a deep link, the flutter router recreates all the prior router/history states of the app.This means that the back button can return the user trough all the screens needed to get there even if it got there via deep linking.This behavior makes sense for mobile devices. However, on the web, this behavior is not wanted.If we load a deep link such as: http://domain/s/lorem-ipsum/all/posts we end up initialising each route level if it has it's own screen definedIf you happen to have the same component on all levels this in turn leads to 5 sets of duplicated API calls which is completely unacceptableTherefore we can use onGenerateInitialRoutes to prevent this behavior from occurring.The default history stack is overridden with a router/history stack with just one statemain.dart
... return MaterialApp( ... initialRoute: user != null ? '/' : '/login', // The default history stack is overridden with a router/history stack with just one state // In this case I used fluro but any other onGenerateRoute method will do the trick onGenerateInitialRoutes: (initialRoute) => [appRouter.generator(RouteSettings(name: initialRoute))!], onGenerateRoute: appRouter.generator, ); 
router.dart
final appRouter = FluroRouter(); void defineAppRoutes() { final routes = { // Auth '/login': LoginPage(), '/register': RegisterPage(), // Pages '/': MainFeed(), '/s': MainFeed(), '/s/:spaceId': MainFeed(), '/s/:spaceId/:activityId': MainFeed(), '/s/:spaceId/:activityId/posts': MainFeed(), ... many more such routes }; routes.forEach((route, page) { appRouter.define(route, handler: Handler( handlerFunc: (BuildContext? context, Map<String, List<String>> params) => page, )); }); // Not found appRouter.notFoundHandler = Handler( handlerFunc: (BuildContext? context, Map<String, dynamic> params) { return NotFoundPage(); }); } 
Performance/Billing concernsSome of you might be using Firebase and possibly planning to run an app with high volumes of traffic. Therefore it is quite important to pay attention to what your router does. You might be sending requests for more data than what you actually need to load for your first view of the app. Especially for sharing links on the web this might be costly if you don't optimize your API calls. Since Firebase does everything via websockets make sure you either place print statements in all your API calls or you can also switch to json-server during development to get a better view of the HTTP calls in the developer tools. There are many ways to handle this optimisation. What matters first of all is to be aware of your API calls and how many. I was able to generate 15K api calls with 3-4 work hours using an unoptimised version of my app.Final NotesinitState will be called as many route segments as you have unless you override onGenerateInitialRoutesbuild is called as many times as flutter thinks there's a change event. As long as you don't do any complex logic or any API calls during the build stage it's not that bad. Similar to React or Angular the change detection algo makes sure that if duplicate builds happen only the relevant changes are computed.I'm still learning some of this stuff so please excuse me if I used some wrong terms. Let me know how can I improve this post or if got something completely wrong. Hopefully it helps you.

November 11, 2021 at 01:31PM by SpaceInstructor
https://ift.tt/3F4wiBV
New post on /r/flutterdev subreddit:

Large examples of Provider + ChangeNotifier architecture?
Does anyone have any good example apps of arobust app architecture using ChangeNotifier + Provider?I am looking for complete app examples that go much further than just the counter example. I have yet to find a good example app that is actually of a quality to ship as a professional production ready app.Thanks!

November 11, 2021 at 05:48PM by scorr204
https://ift.tt/3C1JC8l