Flutter Heroes
25.9K subscribers
272 photos
2 videos
31.1K links
Download Telegram
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
New post on Flutter Dev Google group:

show CircularProgressIndicator everytime Provider loads data
Hi.Ihave a widget that shows parent(ParentWd) and child data(ChildWd).When I select/press one parent,child data is loaded and shown.it works but I need to show a CircularProgressIndicator everytime child loads data by provider: import 'package:flutter/material.dart';import 'package:provider/pro

December 09, 2019 at 12:05PM by Ionut Ichim
https://ift.tt/354e9CP
New post on /r/flutterdev subreddit:

Flutter Tap Newsletter - Week 16 - Articles, tutorials, videos and much more
https://ift.tt/2RzTFhm

December 09, 2019 at 01:11PM by vensign
https://ift.tt/36iHQA5
New post on /r/flutterdev subreddit:

Accessing Images on Phone
HiI would like to add camera functionality to my app, and also would like to access Photo gallery (ie existing photos). What is the right package I should look into?

December 09, 2019 at 01:51PM by tettusud
https://ift.tt/2LAowWY
New post on /r/flutterdev subreddit:

Passing database throughout app
I have an app that will listen to changes in Firestore and save them locally. I’m new to Flutter and have started mapping out my widget tree. My question is, let’s say I have a class that listens to changes in my database and saves in a model, what is the best method to keep the listeners and data alive throughout the app and be able to access this data?

December 09, 2019 at 03:52PM by phriend2spin
https://ift.tt/340HYTf
New post on /r/flutterdev subreddit:

FlutterForce — Week 56
https://ift.tt/2P4XtFK

December 09, 2019 at 04:21PM by flutterist
https://ift.tt/3573nLT