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

Integrating native code with Platform Channels. What's your experience? I was just told it's painful.
TL;DR - do Platform Channels (to integrate native code with Flutter) work well? If you know the comparison, better or worse than react-native's Native Modules?Hey guys!
It's my first time here, please be gentle/sorry if this is not according to standards. I need to write 2 screens in native code (video calling and chat during the video call) and want to do the rest using a cross-platform framework like Flutter. There really is almost no data flowing between the native and the cross-platform code. The video calls are at set times, so the there's no need to listen for an incoming call. At the set time, both parties join the room.
I have a background in react-native, but wanted to try flutter for the performance. Also, one dev recommended Flutter to me for performance, and I was pretty sure he also meant that Platform Channels works well.
Today another dev told me that Flutter's Platform Channels to integrate native code are actually quite a pain, and that they had to completely abandon Flutter because of it. He said they had used react-native before for integration with native code (in rn this feature is called Native Modules), and apparently that worked a lot better.
Now I know this process to take like 1-2 days just to set up in react-native, or certainly not something easy. So I was actually quite surprised.What the experience of you guys? The rest of the app doesn't necessarily need Flutter as it's pretty simple - so react-native should work just fine.

May 31, 2021 at 07:52PM by esuus
https://ift.tt/3c6gumc
New post on /r/flutterdev subreddit:

TextTheme and copyWith
This was posted on the help reddit with no found solution.I always used custom styles and have never encountered this issue. For my new app I thought it would be good just to extend the default styles because it would be easier.After that I tried to change the following:
 textTheme: TextTheme( subtitle1: Theme.of(context).textTheme.subtitle1.copyWith( fontSize: 17, ), ), 
under my ThemeData.I tried to copy to call withCopy on textTheme in addition as well.It works but if I switch to Darkmode the color stays black (default black color), without this adjustment the color would be white (default dark mode color).This looks like a bug to me because I just copy the style for the subtitle 1 and increase the font size. I would expect it should work the same way as before just with an increased font size.

May 31, 2021 at 07:07PM by KaiN_SC
https://ift.tt/3yOCBap
New tweet from FlutterDev:

🤳 The #IOPhotoBooth: Behind the Scenes @VGVentures dives into how the photo booth was created and the cool, interactive features that allow you to add props and decorate with your favorite developer mascots.

Read how it was created ↓ https://t.co/d2vDD6e0Ak— Flutter (@FlutterDev) May 31, 2021

May 31, 2021 at 07:59PM
http://twitter.com/FlutterDev/status/1399425432475344896
New post on /r/flutterdev subreddit:

Google maps fluttter plugin - using external location source
In every example of adding google maps to flutter mobile app i found on the internet, i see that people use eithergoogle maps with myLocationEnabled, which uses its own FusedLocationProviderClient behind the scenes,use some location flutter plugin like geolocator, add the blue dot as standard marker and move it on location changes provided by plugin package.The first solution does not provide way of customizing location accuracy, intervals etc, and the second just feels wrong, as with this solution, we lose movement direction arrow, center button and other funtionalities related to myLocation layer in google map.Ok, time for some context. What am I trying to achieve? I would like to have one location source, be it geolocator plugin(it also uses FusedLocationProviderClient under the hood), that allows me to fully customize location settings like accuracy, intervales etc, and feed that location data to google map to show my current location on map, and also feed location data to my backend server for other purposes.My hopes arised when i came across setLocationSource function of google map. It allows me to set external location source for myLocation layer. It seems that this is exactly what i am looking for. Unfortunately, setLocationSource is not supported in flutter google_maps plugin.Has anyone idea how to solve that problem? Maybe i should try to extend google_maps plugin myself, or maybe there is other way to achieve my goals?Thanks in advance.

May 31, 2021 at 10:16PM by incIouds
https://ift.tt/3p7tBbR
New tweet from FlutterDev:

📺 See all things Flutter at #GoogleIO

Don't miss out on the latest in Flutter. Watch all the Flutter Keynotes, Sessions, Workshops, AMAs, and more in our YouTube playlist.

Watch now 🔁 https://t.co/2J3m70IEOo— Flutter (@FlutterDev) May 31, 2021

May 31, 2021 at 10:00PM
http://twitter.com/FlutterDev/status/1399455646408392704
New post on Flutter Dev Google group:

Problem converting app to null safety
I just have one issue left and I can’t find an answer anywhere. ——— problem code ——— snapshot.data has a red line The argument type 'Object? Function()' can't be assigned to the parameter type 'Map
New post on /r/flutterdev subreddit:

KnowGo Vehicle Simulator & REST API for developing Connected Car apps and AI/ML models
We are happy to release our vehicle simulator, written in Flutter/Dart, as a tool for people who want to experiment with developing Connected Car apps and services, or who need a source of synthetic vehicle telemetry for developing their AI/ML models. The exposed REST API provides a reference implementation of ISO 20078, and should be compatible with any automotive OEM implementing the standard (as well as by our own platform, which is currently in closed beta). Links are as follows:SourceDocsLive Demo (Flutter web)Postman collection & environment for REST API testingThe simulator is still very much a work in progress, and we will be extending the API for additional data points in the near future, but we welcome any feedback or collaboration in the meantime!

May 31, 2021 at 10:56PM by knowgo_io
https://ift.tt/3fToRT8
New post on /r/flutterdev subreddit:

Dartz seems to be stale. Is there any orter library for functional Dart that can be used with flutter?
I really enjoy function programming but the dartz lib seems to be stale so im wondering if there is any more active projects that are building a functional library for Dart and Flutter?

May 31, 2021 at 11:32PM by pure_x01
https://ift.tt/3vCQZkc
New post on /r/flutterdev subreddit:

All about the Pub command line tool for Flutter and Dart
https://ift.tt/34CyNeq

June 01, 2021 at 03:17AM by Suragch
https://ift.tt/2SFh9UK
New post on /r/flutterdev subreddit:

Round Spot - customizable heat map interface analysis library
round_spot - I'm creating a tool to help flutter developers understand how users are interacting with their apps. Intuitiveness of heat maps makes them the perfect input for driving UI improvement, troubleshooting and user behavior analytics. This library provides visual data eliminating the need to guess about what users are actually doing.There is still much to do in terms of features but if anyone would like to try it out I would be happy to hear your feedback.

June 01, 2021 at 08:56AM by sgpn
https://ift.tt/3wJLmkc
New post on /r/flutterdev subreddit:

infinite_scroll_pagination is now a Flutter Favorite! Many thanks to all who use it!
https://ift.tt/3hlHFtN

June 01, 2021 at 12:07PM by Epidemy11
https://ift.tt/34xStjP
New post on /r/flutterdev subreddit:

Should I choose behavior subjects?
So basically I use a model with BehaviorSubjects in it to listen for UI events and data from firestore (I think it's BLoC🤔 but I just use StreamBuilders) Should I close these BehaviorSubjects on disposal or is this handled automatically by the StreamBuilder (unsubscribes automatically) and the BehaviorSubject (closes automatically when there is no listeners)?

June 01, 2021 at 11:21AM by AndroidQuartz
https://ift.tt/3pc3Kjk
New post on /r/flutterdev subreddit:

Need some help, with changing UI, and state.
Hello everyone, thanks again for the amazing community established here, I have a client who has an app that runs on Flutter Cubit, this is not an issue. The applications reads from an API and has a schema of menu belongs to restaurant (its a restaurant application).I am stuck we want to change the UI and have all restaurants merged into one restaurant (a franchise), most of the Menu contents will remain the same, however all Menu Items will be clicked from one page.The previous page was a listview, but now we have moved to a card like interface with more interactivity, how can I get the first restaurant in the list whilst maintaining the new UI and old code.Please help!Thanks in advance, I'd be happy to explain more.

June 01, 2021 at 12:53PM by 420-then-69
https://ift.tt/34A3ssP
New post on /r/flutterdev subreddit:

UPDATE: Open-Source, Minimalist Video Diary App
Hey, Flutter Devs!Sometime ago I made this post, announcing One Second Diary. Now, I have just published the first update with the most requested features:Now you can record up to 10 seconds per videoNew option to receive daily notificationNew option to change date color and formatNew option to display a timer before recordingMinor layout and performance improvementsIt's free, open-source, totally private and has no ads. What are you waiting for? xDDownload it now on Google Play.

June 01, 2021 at 02:08PM by kylekundev
https://ift.tt/3i76NHS
New post on /r/flutterdev subreddit:

cast: Dart package to discover and connect with Chromecast devices
https://ift.tt/3dbqTOU

June 01, 2021 at 01:26PM by marsNemophilist
https://ift.tt/3fCfOqE