Flutter Heroes
25.9K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on Flutter Dev Google group:

Making a local image directly appear in a chat, analog to WhatsApp (not waiting for Firebase stream)
Hi, I just started programming 3 weeks ago. While writing a chat app, I want to improve performance when an image is sent. Currently, there is a delay when sending an image (until it shows within the chat of the person who is sending). So when the image is posted, it should be directly shown

January 12, 2019 at 03:41PM by Matthias Wolff
http://bit.ly/2M5FV9a
New post on Flutter Dev Google group:

Any Pyment geteway for flutter (eg: Tez ,Paytm,phoneph)
Plez Give any options for this problem.

January 12, 2019 at 03:44PM by Vishnu Suresh
http://bit.ly/2squmQZ
New post on /r/flutterdev subreddit:

Flutter — GestureDetector Widget #2 – Karthik Ponnam – Medium
http://bit.ly/2Fn7Ssv

January 12, 2019 at 04:11PM by KarthikPonnam
http://bit.ly/2FmVw3M
New post on Flutter Dev Google group:

Google admob
I develop an app (flutter) and integrated Google AdMob to it, I run test banner and the ads displayed when I added my own AdMob id and test run the app again, I was unable to see ads, please I need your recommendations and suggestions...

January 12, 2019 at 09:36PM by Promise Amadi
http://bit.ly/2AGdkmo
New post on /r/flutterdev subreddit:

Embed youtube video using the android api, is it possible?
I have been trying to create a plugin to allow embedding YouTube videos into flutter apps, following this post as an example https://medium.com/flutter-community/flutter-platformview-how-to-create-flutter-widgets-from-native-views-366e378115b6. Also https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/package-summarySo far I have excluded the YouTubePlayerView as a possibility. It cant be used in the flutter activity as the youtube api requires a context created in an activity extending the Youtube base activity (flutters activity already extends PlatformViewFactory so this is not possible(?)). Creating another activity seems to mean creating it with an intent. This does work, a YouTube video can be loaded, but it navigates away from the flutter view into a native page. This isn't really the desired result.Seems the YouTubePlayerFragment is the way to go.However, trying to use the fragment doesn't seem to have a way of working either. Adding a layout xml file, inflating it and returning it as the view seems to work fine. The flutter activity gives access to to the fragment manager. All good so far. Problem seems to be that the flutter activity fragment manager uses android.app.FragmentManager and the Youtube api uses android.support.v4.app.FragmentManager. These types seem to be incompatible with each other.Any thoughts on how it could be implemented? (other than giving up and using a webview). I'm from a JS background rather than Android so it could just be my lack of understanding of how views/context/activities/fragments work.

January 12, 2019 at 10:46PM by Pristine_Comfort
http://bit.ly/2Rm7aSE
New post on /r/flutterdev subreddit:

Working with Flutter Drawer: outside of main.dart & how do I navigate?
https://flutter.io/docs/cookbook/design/drawerMost of the Flutter examples IMHO just put the widgets all in the same file, which isn’t really realistic and don’t show how you would have to actually extract the widgets into separate files which I believe is a best practice.It took me a while to find an appropriate example and even when I did, I felt that the example did not properly explain the difference between pushing a new PageWidget and replacing the PageWidget when structuring the navigation stack for an application.My approach is to always “pushReplacement” when selecting an item from the Drawer and “push” when changing from one page to another.See: Navigator.pushReplacement​The code and rest of the details are here in a blog post​https://medium.com/@c_innovative/working-with-flutter-drawer-outside-of-main-dart-9f506652fa11https://i.redd.it/6o8d16i152a21.png

January 12, 2019 at 10:08PM by aaronksaunders
http://bit.ly/2QHuxB5
New post on /r/flutterdev subreddit:

Coding Android apps with Kotlin is such a time-consuming, frustrating endeavor of going through one tutorial / documentation after another. Would switching to Flutter solve this?
Or to put it in another way, how easy it is to find solutions to certain features I would like to implement in an Android app if i use Flutter? For example, I would like to embed a Youtube video but so far after 8 hours of searching for a way to do it I had no luck on Android.Also how easy it is to edit the UI design in Flutter? With the usual method using Kotlin / Java in Android Studio I can view the image of the app as I edit the XML file, giving it a kinda WYSIWYG feel.

January 13, 2019 at 11:03AM by notyourdude201
http://bit.ly/2SR65Pv
New post on /r/flutterdev subreddit:

Any idea on how to use the reference data type in firestore to load data from 2 collections?
A couple of thoughts were to use streambuilder twice, but with a reference type available, which is a string to a reference document in another collection, I thought there may be a way to load that data via the reference and access its resultant values. Thanks in advance to anyone that has an idea on this possible solution.

January 13, 2019 at 10:29AM by FoogYllis
http://bit.ly/2AHmMGc
New post on /r/flutterdev subreddit:

What's new in http 0.12.0+1?
I just noticed that http was updated 5 days ago, but I cannot see what has changed? No documentation and nothing I could see on Github (I'm probably just blind).Any ideas what changed?

January 13, 2019 at 11:28AM by mulderpf
http://bit.ly/2RJpzs5
New post on /r/flutterdev subreddit:

How would you make a top tab bar that only shows on one particular page?
I have an appBar with a bottomNavigationBar that takes you to a particular page. On one of the pages, I want to show a top TabBar, which can be used to swipe through different pages.So the basic structure of the app is like this:ScaffoldAppBarBody(the widget here changes depending on what's selected on the BottomNavigationBar)BottomNavigationBarSo I have one widget that is supposed to show when one of the buttons on the BottomNavigationBar is pressed.This is what I tried for that widget:
Widget build(BuildContext context) { return ListView( children: <Widget>[ DefaultTabController( length: 3, child: TabBar( tabs: <Widget>[ Tab(icon: Icon(Icons.directions_car)), Tab(icon: Icon(Icons.directions_transit)), Tab(icon: Icon(Icons.directions_bike)), ], ), ), Text("Another child under the tab bar") ], ); } 
However, the background of the TabBar is white, when my app's primary color is blue. Is this the best way to do this?Thanks.

January 13, 2019 at 11:08AM by themindstorm
http://bit.ly/2H6YF9q
New post on /r/flutterdev subreddit:

I'm a React Native dev and would like to make a comprehensive comparison between Flutter and RN
tldr;I will try every feature that's needed for a production-ready app and need your opinions/support as well.​I've been developing mobile apps with React Native for 2+ years. I'm pretty confident I tried almost all platform capabilities including native modules (i.e. native bridge).I've read a lot of articles recently, Upon my research I can listPros:+ Performance is better than RN – startup time is faster, button tap is more responsive+ UI output is more identical across platforms+ Has a good CLI supportCons:- New language for almost all developers – no web dev, ios or android dev uses Dart by default- CPU usage is (generally) higher – Skia has its own implementation which lacks of platform-specific native optimizations- Has a small community which means limited extensions and support – I think this won't be an issue in near future​Besides the pros and cons above, I would like to try flutter and share my experimentations so I made a list of features that you will need for a production-ready app. I list them under 3 headings:UI: Just visual qualityNative: Native performance and accessing native featuresBusiness Logic: Managing global and local states, CRUD operations as well
UIBuilding Pixel Perfect UI (Render of shadows, border-radius, color representation such as rgb, hsla, hex)Flex-box modelSafe Area ViewLine-height iOS vs AndroidImage styling (resizing and positioning)Text Input capacity (e.g. keyboard types, listening events)NativeCustom native module supportPush NotificationsIn-app PurchaseCapacity of Webview (Possible to listen every url and content)Websocket (socket.io) integrationApp size iOS vs androidPlaying Video/Audio filesAnimationsMapsBusiness LogicJSON encoding/decodingSeparation of stylingComplex navigations (nested tab and stacked screens)Handling HTTP requestsState management (BLoC vs Redux)Anything you want to add or think it's redundant? I'd like to hear your opinions as well.Also, I'm planning to write a post so I will definitely need your support on learning "flutter-way". Please share your contact info if you want to contribute.
ThanksPS: I've already seen this page

January 13, 2019 at 11:46AM by meanyack
http://bit.ly/2RN0i02
New post on /r/flutterdev subreddit:

Any good guides for cross platform ui development?
I just started using flutter, and so far I love it. However, I had a question. How can I make a single UI that looks "natural" in both iOS and Android? I.e., I wouldn't want to make a standard material app and put it on iOS, but I wouldn't want to make two separate UIs. Any help/links to guides would be appreciated. Thanks in advance!

January 13, 2019 at 03:31PM by ScreamingTaco45
http://bit.ly/2Rog42j
New post on /r/flutterdev subreddit:

FlutterForce — Week 9
http://bit.ly/2Ftkv4A

January 13, 2019 at 05:34PM by flutterist
http://bit.ly/2FpHwGw
New post on /r/flutterdev subreddit:

Payment app
I would like to develop an app to take electronic payments. I would like to do it using flutter. Can I get some advice as to what I should do research on and how difficult would it be?

January 13, 2019 at 06:54PM by afdal_khan
http://bit.ly/2ss5KHi
New post on /r/flutterdev subreddit:

What would be a good reference app teaching best practices?
Is it a standard practice in Dart to keep several classes as part of the same file? I keep seeing many Flutter apps, where everything seems to have been crunched in a single file. What would be a good reference application to have a look at?

January 13, 2019 at 06:19PM by preslavrachev
http://bit.ly/2ChN69Q
New post on Flutter Dev Google group:

What is the best way to take User Input for Date and Time?
I have recently started flutter and I am finding it really hard to create date-time input box for user. Below is what I am doing currently;- static var _year = ["2019", "2020", "2021", "2022", "2023", "2024", "2025"]; static var _month = ["01", "02", "03", "04", "05", "06", "07", "08", "09",

January 13, 2019 at 09:09PM by Rocky Sharma
http://bit.ly/2RuK10J