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

I made a package that can easily handle simple 3D.
Hello everyone,​I recently released a new 3D object format for handling in Flutter and a package for rendering it.https://pub.dev/packages/simple_3dhttps://pub.dev/packages/simple_3d_renderer​There aren't many types of objects that can be created yet, but I'm also making utilities, so I think it's easy to understand how to create them.https://pub.dev/packages/util_simple_3d​By using these, anyone can create and run a simple 3D model on Flutter. Of course, on the web.The reason I made this is that today's 3D objects are so complex that it's difficult for someone like me who isn't a 3DCG expert to understand and manipulate. (I specialize in science)​I hope this helps someone.​Thank you.

November 06, 2021 at 01:13PM by Masahide_Mori
https://ift.tt/3mLsD5D
New post on /r/flutterdev subreddit:

Best Practices for Storing Text
For an application where a display text is expected to change quite often (a couple of times a month), would you recommend storing text in the mobile app code or pull it from an API server? If there's localization involved, would pulling text from an API server complicate things or simplify the translation?

November 06, 2021 at 07:15PM by noobygopher
https://ift.tt/3bMZ2T3
New post on /r/flutterdev subreddit:

Simple Integration for Plausible Analytics in Flutter
https://ift.tt/31s9mxQ

November 06, 2021 at 11:17PM by bostrot
https://ift.tt/3qarGWI
New post on /r/flutterdev subreddit:

M1 Macbook air base variant enough?
Hi. I have a Windows laptop right now and I'm planning to buy m1 macbook air next month. Just wanted to know if the base model with 8/256gb would be sufficient for mainly Android studio, xcode and iOS simulator. I don't use VSCode and I don't need an emulator as I use my device to test the apps.FYI, Would be helpful if someone uses the same programs I use everyday at work which are most of the time running on my Windows laptop; Slack, AS, postman, chrome with 6-7 tabs open at a time, Skype.

November 07, 2021 at 03:22PM by dank_khan
https://ift.tt/3CSZjQ9
New post on /r/flutterdev subreddit:

Tool for feature wishes, bug reports or any feedback from Flutter apps.
This WIP service seems to help with internal testing and user feedback handling.https://bluehand.unicornplatform.page/​You guys need this kind of tool?

November 07, 2021 at 05:58PM by Big-Camp2696
https://ift.tt/3CTxoQp
New post on /r/flutterdev subreddit:

looking for offline map navigation package for linux
looking for offline map navigation package. want to try to use it on linux on my pi 2 zero.

November 07, 2021 at 05:57PM by hungcarl
https://ift.tt/3bQ2RqA
New post on /r/flutterdev subreddit:

So is there still no native dart/flutter WYSIWYG Text Editor (Rich Text Editor) yet?
And I don't mean HTML editors ported over, I mean like native dart/flutter code. I'm aware of things such as flutter_quill and other editors, but when is there going to be something native to dart/flutter?

November 08, 2021 at 05:58AM by 31Carlton7
https://ift.tt/30bUd3r
New post on /r/flutterdev subreddit:

Struggling to justify Riverpod, getx, bloc, over provider
Could someone point out a reason they had to use anything other than provider for state management?Also, if riverpod is the "upgraded" and "better" provider then why keep improving provider?

November 08, 2021 at 12:48PM by sonicworkflow
https://ift.tt/31I3pgv
New post on /r/flutterdev subreddit:

What is your State management approach for a production grade app? Considering userbase 100-1000.
What is the state management approach that you are using in your production ready applications which has a good user base say more than 100 and even further large.View Poll

November 08, 2021 at 03:34PM by Artronn
https://ift.tt/3BY38T3
New tweet from FlutterDev:

🦋 Grab the #flutterapprentice here 👇 https://t.co/TfgyFPT0fO— Flutter (@FlutterDev) Nov 8, 2021

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

BLoC users, how do you scope your blocs ?
I have been using BLoC for more than 2 years on side projects, but I never used it in a real professional project, how do you scope your BLoC logic ? Do you scope that per use case, per page or per widget ? Something else ?I’m really curious and I’m always hesitant when starting a new project, I have a Android background with a strong experience of MVVM and MVP using the Clean Architecture principles as much as I can.Usually my ViewModels or my Presenters are scoped based on the page (screen) purpose, so it includes everything needed for that page and it exposes 1 or a few ViewStates (depending on the layout and fragments structure).If I create feature scoped blocs, I start to do over engineering while trying to make it as reusable as I can, if I do page scoped blocs, it becomes heavy and hard to manage.Any advice or experience is welcome :)View Poll

November 08, 2021 at 10:28PM by New-Muffin-5863
https://ift.tt/3o9thcP
New post on /r/flutterdev subreddit:

Coming back from a long break, what have I missed?
Hi! I've taken a break from flutter app development for about a year and a half, before null safety was introduced. Starting to develop apps again. What are some of the cool new features been added since I've been away?

November 08, 2021 at 11:33PM by Potat0Sa1ad
https://ift.tt/3khx5r8
New post on /r/flutterdev subreddit:

New `SharedAppData` widget
Looking through Flutter's commit messages, I noticed that a new widget was added to Flutter master which allows to easily share data between widgets. In this respect, it is similar to the hundreds of other state management libraries.Here's a simple example using the widget. By default, the MaterialApp already provides a SharedAppData scope to the context. Descendants of that widget can then share data identified by some key. I chose the class object Counter in my example. The getValue call will automatically register the provided context as a dependency and therefore a rebuild is trigged if the value is changed.
class Counter extends StatelessWidget { const Counter({Key? key}) : super(key: key); @override Widget build(BuildContext context) { final count = SharedAppData.getValue(context, Counter, () => 0); return Scaffold( body: Center(child: Text('$count')), floatingActionButton: FloatingActionButton( onPressed: () => SharedAppData.setValue(context, Counter, count + 1), ), ); } } 
Of course, it is possible to wrap that method calls to abstract the key into something that looks like a "Provider". Here is my 3 minutes adhoc "framework":
class Provider<T> { Provider(this.create); final T Function() create; T watch(BuildContext context) => SharedAppData.getValue(context, this, create); void Function(BuildContext) set(T value) => (context) => SharedAppData.setValue(context, this, value); void Function(BuildContext) update(T Function(T) update) => (context) => set(update(watch(context))); } final counterProvider = Provider(() => 0); 
The build method now looks a bit nicer:
Widget build(BuildContext context) { return Scaffold( body: Center(child: Text('${counterProvider.watch(context)}')), floatingActionButton: FloatingActionButton( onPressed: () => counterProvider.update(increment)(context), ), ); } 
The new widget isn't a solution for everything but a nice addition and enough for small and medium sized application, I think. Notice that the above approach isn't as efficient as provider or riverpod would be, but it doesn't need external libraries and might be good enough.

November 08, 2021 at 11:25PM by eibaan
https://ift.tt/303tLsZ
New post on /r/flutterdev subreddit:

What underlying windowing library or framework does Flutter use?
GLFW, wxWidgets, GTK, SDL, QT, something else?Any pointers to the implementation?

November 09, 2021 at 02:52AM by bmitc
https://ift.tt/3D0mWGD
New post on /r/flutterdev subreddit:

How do you handle errors?
I recently started to work with flutter and in the last days I struggled a lot to find some information about handling errors and displaying messages to users.I am right now using riverpod with statenotifier and I was thinking a good way to do it is to create some intermediate state classes like StateInit, StateLoading, StateSuccess, StateError and in every screen to check the state instance and render a widget accordingly, but it is getting pretty repetitive since I want to display the same error type or loading, but with different messages.Anyway, how do you handle your app errors?

November 09, 2021 at 12:14PM by Exorcistoo
https://ift.tt/3bW75gA
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