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

Help - PIP mode similar to Youtube (Android)
I am trying to create an app in flutter which consists of:Home PageVideo Player PageFrom the Home Page, the user is able to navigate to the video player page. If the video is playing, when the user clicks the back button or swipe down from the video player, I want to minimize the video player to the bottom of the app (while continue playing) and navigate back to the homepage. This is how Youtube works right now.After research, I found two approaches to implement this, but each with its own problems.Use the Android PIP modeProblem:Android PIP mode works on activity basis. Flutter has only one activity. If I were to implement it this way, the entire app will be minimized when I invoke the PIP mode. I want the user to be able to navigate within the app while the video player is in PIP mode.Is there a way to have more than one activity in Flutter? If it is possible, then is it advisable to implement it this way?Create a persistent widgetCreate a widget that persists on navigation similar to this.Problem:I can't wrap my head on how to implement it this way. How do I animate the media player in the nested MaterialApp to minimize to the bottom of the app where the persistent widget is (because it's two separate Material Apps). How do I pass data between them?

October 03, 2019 at 05:32AM by A_Fatal_Dream
https://ift.tt/2oBKWPh
New post on /r/flutterdev subreddit:

How can I handle a snapshot where a field may be null?
I am using Flutter and FirestoreI get a snapshot to build a ListView then ListTilesThe app displays errors if a field does not exist for a documentRight now I get the snapshot, then I check if any of the fields are null, and if null I set a value of "N/A"Is there a better way to handle this?My code is belowreturn new ListView( children: snapshot.data.documents.map((DocumentSnapshot document) { var s_code = document['code']; var s_first_name = document['first_name']; var s_last_name = document['last_name']; var s_role = document['role']; var s_phone_number = document['phone_number']; var s_photo = document['photo']; var salesman = { "code": s_code, "first_name": s_first_name, "last_name": s_last_name, "role": s_role, "phone_number": s_phone_number, "photo": s_photo }; salesman.forEach((k, v) { if (v == null) { salesman[k] = "N/A"; } }); return new ListTile( onTap: () { //Go to the next screen with Navigator.push }, contentPadding: EdgeInsets.all(10.0), leading: CircleAvatar( backgroundImage: NetworkImage(s_photo), ), title: Text(salesman["code"]), subtitle: Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Text(toBeginningOfSentenceCase(s_first_name) + " " + toBeginningOfSentenceCase(s_last_name)), Text(s_phone_number), ], ), trailing: Icon(Icons.keyboard_arrow_right), ); }).toList(), );

October 03, 2019 at 06:51AM by purplegreencab
https://ift.tt/2nZMSAU
New post on Flutter Dev Google group:

flutter expandable
can we create expandableList like as a bootstrap accordion in flutter?

October 03, 2019 at 09:16AM by shree krishna
https://ift.tt/2pvHDJD
New post on /r/flutterdev subreddit:

Flutter web image picker
https://ift.tt/2nS09vC

October 03, 2019 at 08:36AM by AlvaroVasconcelos
https://ift.tt/2nQK7SF
New post on /r/flutterdev subreddit:

Project help
I need project for students attendance management

October 03, 2019 at 11:21AM by Rahul4884
https://ift.tt/2nVcLSJ
New post on Flutter Dev Google group:

multipartfile upload in flutter web
Hello all, I am trying to upload a file using flutter web. Looking around the net I found I should do that via multipartfile of the html package. But dart:html doesn't contain a MultipartFile class. Can anyone redirect me right in this? Thanks, Andrea

October 03, 2019 at 02:54PM by andrea antonello
https://ift.tt/2oaagfg
New post on Flutter Dev Google group:

Flutter - hand palm lines detection / scanning.
Hello, I was wondering what's the best way to deal with hand palm lines detection. Could it possible using firebase ML kit ? or do I have to use open cv for that ? Help is appreciated

October 03, 2019 at 03:33PM by Cesar Nasr
https://ift.tt/2nYmAzf
New post on Flutter Dev Google group:

Contribute to flutter widgets repo
Hello developers, Building a stack of widgets that be helpful collection for benginners and developers to look at single place. Please help contributing to this flutter widgets project. Happy hacking! Thanks in advance. It can dynamic widgets, animations, simple widget, add with documentation.

October 03, 2019 at 03:36PM by prakash king
https://ift.tt/2pHzIJt
New post on /r/flutterdev subreddit:

How to make dialog box scrollable?
I have a RaisedButton which when pressed shows a dialog box.Dialog Box looks fine when mobile is in Portrait mode but in Landscape mode pixels get overflowed.Any idea how to tackle this problem?P.S. Yes i am a newbie :-)

October 03, 2019 at 03:23PM by bawaaal
https://ift.tt/2pCyuz2
New post on /r/flutterdev subreddit:

Creating a Radar
I thought about creating a 'radar' (a map where events, users, ... Around you are shown). Is this possible and if yes how would I go about it.

October 03, 2019 at 05:14PM by Green_Opposite
https://ift.tt/30JvcGY
New post on /r/flutterdev subreddit:

How to stretch an Image in expanded widget?
I have one image wrapped in Expanded.But its only filling 3/4th of the container in its full, when I set the alignment from the top.center. My task now is to scale or stretch the image to fill up the whole widget. I tried Align + Aspect, BoxFit and other such but nothing worked.

October 03, 2019 at 05:59PM by gradebee
https://ift.tt/2ABKGT7
New tweet from FlutterDev:

👍 🏆Quickly create beautiful list items!

ListTile implements the @materialdesign pattern for list items so you only have to think about what goes in it. Just give ListTile some text and icons, and let it handle the rest!

More #WidgetoftheWeek &rarr; https://t.co/SjDCjgnJGe pic.twitter.com/rJk7tdrqDw— Flutter (@FlutterDev) October 3, 2019

October 03, 2019 at 06:37PM
http://twitter.com/FlutterDev/status/1179797618261512193