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

on shake...do this
Hey all! does anyone have any experience with an On Shake event? i.e, when the phone shakes, perform this action. Would be useful to know if anyone has done this, there isnt much documentation online. thanks!

December 08, 2019 at 01:25AM by Matthew Goldring
https://ift.tt/2RwZ6gO
New post on Flutter Dev Google group:

Re: New breaking change policy and invitation to contribute tests
In principle anything is fair game, but during the review process we may call certain things out as poor practice and suggest different approaches. Currently only things that can be reliably tested from Cirrus are welcome. That said, there have been experiments in driving there Firebase Test Lab

December 08, 2019 at 07:44AM by Ian Hickson
https://ift.tt/38bPH4l
New post on /r/flutterdev subreddit:

Why StatelessWidget AND StatefulWidget exists, why not just Widget?
As an experienced mobile developer, I would like to understand why did the Flutter team make this kind of division?Wouldn't it be simpler if all widgets were stateful, without the additional state class - all state methods within the widget class (AFAIR similar to react native)?One less thing to learn, understand, think about, post on Reddit about.If you want you call setState, if you don't than you don't, or you use provider. Is there any performance penalty when using stateful widget over stateless, without using any stateful widget's features?Is there any reason why Checkbox is a stateless widget, and TextField a stateful? And I believe inside the source of checkbox there must be a stateful widget responsible for checkmark animation (on mobile, can't check source at this moment).One can always create a stateless widget and then wrap it in stateful one.Eventually the setState method is called from within widget (it's state), so the other classes shouldn't even careLooking forward to having interesting discussion fellow flutterists.

December 08, 2019 at 07:51AM by chrisrutkowski
https://ift.tt/2P0rxSH
New post on Flutter Dev Google group:

Dynaally change content of a page
Hi Geeks, I am creating an app in which I need to change whole page text in different languages,from hamburger at appbar for this I created variable and tried to change on selection of different language but the issue is my page has lot's of variable for that I want to put those variables on

December 08, 2019 at 03:57PM by Sangeeta Kumari
https://ift.tt/2PCRAi7
New post on /r/flutterdev subreddit:

Are we expecting any major releases on the 11th? Flutter interact.
Any chance that we'll get a production ready flutter web? What do you guys think?

December 08, 2019 at 03:18PM by flutterisnice
https://ift.tt/2sXqScc
New post on /r/flutterdev subreddit:

Help with Wrap Widget - Creating similar like Wrap
Inside a container with some fixed height, I want to display some icons repeatedly. The icons/images length is coming from external server.icons/images should be fixed with some maximum width and height. The icons/images are must be reduced to smaller size to fit in the container.So i tried Wrap widget. Obviously it works for some limit and then it overflows the images/icons without showing completely.So i made calculations. Total space inside the container by using LayoutBuilder. But it is not working all the time as expected. Few times it shows images/icons correctly. But someother times it does not.Sample ImageContainer with some fixed width and height. How do i fill images/icons either using Wrap or other widgets. But we have to show all the images inside the container by reducing the size at least.I tried Column and Row combination with some calculation. Again, sometimes the last row is not displayed.Give me your valuable suggestions to achieve this.

December 08, 2019 at 03:15PM by mahesh2150
https://ift.tt/2Yv2SZq
New post on /r/flutterdev subreddit:

How do i convert a String to a List<Map<String,String>>
I have a list which contains several keys and values, which are then mapped into a DataTable to be displayed.
 List<Map<String, String>> listOfColumns = [ {"Name": "John", "Number": "1", "State": " "}, {"Name": "Brad", "Number": "2", "State": " "}, {"Name": "Ryan", "Number": "3", "State": " "}, {"Name": "Grant", "Number": "4", "State": " "}, ]; 
Now, i want the data in the data table to be saved. So I simply used the File IO system i created an asynchronous function called _save() and _read(), in _save() i converted listOfColumns to a string.​
_read() async { try { final directory = await getExternalStorageDirectory(); final file = File('${directory.path}/my_file.txt'); text = await file.readAsString(); } catch (e) { print("Couldn't read file"); } } _save() async { final directory = await getExternalStorageDirectory(); final file = File('${directory.path}/my_file.txt'); final List<Map<String, String>> data = listOfColumns; await file.writeAsString(data.toString()); print('saved'); } 
Now when it comes to reading the data from the file, here's the thing - How do i actually turn the variable text back into List<Map<String,String>> ? Im totally lost on how to achieve this. Any help is highly appreciated. Thanks.

December 08, 2019 at 05:18PM by KarmaRekts
https://ift.tt/38f7Tdb
New post on /r/flutterdev subreddit:

App example to take surveys of talks using emoticons 😀
https://ift.tt/38mr199

December 08, 2019 at 09:04PM by imtoori
https://ift.tt/2P5mUHf
New post on /r/flutterdev subreddit:

ThemeData Generator
Anyone know a great themedata generator to help generate the code with all the possible theme data options?​This one seemed nice but is buggy as hell i have noticed: https://rxlabz.github.io/panache/#/editor​thank you.

December 09, 2019 at 05:05AM by nicolaszein
https://ift.tt/356Z6YM
New post on /r/flutterdev subreddit:

How To Implement Flutter Native Ads | Flutter AdMob Tutorial | AllTechSavvy
https://ift.tt/2YwTqFi

December 09, 2019 at 07:49AM by sagarshende
https://ift.tt/38jm94L
New post on Flutter Dev Google group:

Change form field title's dynamically
Hi Geeks, I am trying to change variable value from another page. For example: In form.dart I have created form , then I have another pages with name english.dart,Hindi.dart ,Tamil.dart In these pages I am declaring variable value. I want to set those values from those pages when I choose that

December 09, 2019 at 10:40AM by Sangeeta Kumari
https://ift.tt/2s6CGZc
New post on Flutter Dev Google group:

Error running Gradle
I am trying to launch my Flutter project on Android Emulator. Each time I try to start it, ' Gradle error ' appears. Error: * Error running Gradle: ProcessException: Process "C:\Users\Binuwara\Documents\FlutterProjects\anony\android\gradlew.bat" exited abnormally: > Configure project :app

December 09, 2019 at 10:41AM by Binuwara Nagahawatta
https://ift.tt/2sauSWa