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

When copying contact informtaion to new list a RangeError
import 'package:cbl_beta/providers/invite_contacts.dart'; //this is the structure of my model import 'package:flutter/foundation.dart'; class InviteContacts with ChangeNotifier { String displayName = ''; String phone = ''; String email = ''; bool invite = false; InviteContacts({

June 09, 2020 at 11:06PM by Russ Brewer
https://ift.tt/2Yii2BL
New post on /r/flutterdev subreddit:

Many questions provider global state ? embedded in top widget ?
Hi!
So i am trying to learn flutter, love the tooling and it also makes async a bit easier to program.Now, it might be just me and lack of Dart/flutter skills etc but everything seems to have at least 3 different solutions to one and same problem yet still more problems arises later.I honestly think if there was some kind of kitchen sink for the most common UX/navigations pattern people could focus implementing methods and UI for their domain. Anyone knows such resource ?Anyhow, provider(s). I guess it is common to have a "global" state in an app ? Such as my current position (long/lat) that needs to be reflected whatever (bottom tab) i tap on (one tab might be a map, another a list etc that has my long/lat info). Is n't this something provider could help with or should i use something like sharedpreferences ?Am i supposed to declare these providers in main/runapp (top) ? like so:​MultiProvider(providers: [ChangeNotifierProvider<WalkthroughProvider>(create: (context) => WalkthroughProvider(),),ChangeNotifierProvider<LocationService>(create: (context) => LocationService("init")),],​it works great in one screen to create an instance of one of these provider for example:​class Register extends StatelessWidget {Widget build(BuildContext context) {final mylocationdata = Provider.of<LocationService>(context);​but isnt this a "scoped" instance so when i call a provider implemented method (like getActivites()) on mylocationdata i would like to goto the map tab and see all the markers populated there. I tried but it wont affect another screen.Having a button in the same screen and call that provider instance does indeed populate the markers.Then next problem arises, changing tabs and the state is lost. Until i found out about IndexStack.Now all examples, even the official ones, describes the index variables to switch between the widgets you want in the body.body: IndexedStack(index: _selectedIndex,children: _widgetOptions,)How can i programmatically from a button or listitem tap in one StatefulWidget goto another widget that was included with indexstack above and a bottom navigator. Somehow change _selectedIndex yes but that seems not possible from within another widget.Doing a ordinary Navigator.of(context).pushReplacementNamed will create a full height/width screen so removing the bottom navigator.Thanks :)

June 09, 2020 at 11:09PM by plundin
https://ift.tt/2UnyYWr
New post on /r/flutterdev subreddit:

Slow SVG rendering
Is it just me, or there is visible delay in showing SVG files in the app?Am I using some legacy solution for SVG or is it known problem?I'd love to stay with SVG and use them on daily basis, but with this rendering speed I will probably need to switch to default jpg files.

June 09, 2020 at 10:50PM by mdfk_13
https://ift.tt/3hdPe6c
New post on Flutter Dev Google group:

Cannot simulate flutter app on emulator
I cannot run flutter app on emulator. Console msg showing "The screen cannot be set to the number of lines and columes" . After waiting a few minute, console shows the msg attached in screenshot.. can anyone help me?

June 09, 2020 at 11:41PM by Iftekar Alam Joy
https://ift.tt/3cRfRdA
New post on Flutter Dev Google group:

Reverse a data from Firestore Stream
Hello guys. I'm getting the Stream List from Firestore and I want to have it in 'reverse' order. I want to make the records in ListView.builder to appear in reverse mode (set reverse: true). In Firestore each document have a 'timestamp' field which is a Firestore timestamp type field. The

June 09, 2020 at 11:53PM by Igor Karelin
https://ift.tt/30pWiGJ
New post on /r/flutterdev subreddit:

Is having up-to-date plugins what will make Flutter succeed app-wise ?
So, when i first tried React Native i ended up in version missmatch hell between various packages (not using expo etc) and seeing flutter i was happy that many plugins was taken care of by google/flutter team. Upgrade version/IDE/doctor cli also seems great!Started out and did a camera app to find out callback on focus, flash etc was missing.I think in order to really gain adoption out in the industries common thinks like camera *needs* to be fully implemented/feature-wise ? even ionic does it ? I know that the framework is young, but do you agree that is should be a prio ?I would hate to see flutter being lost and forgotten having the best and smartest tooling/code out there but missing the needed plugins.

June 09, 2020 at 11:22PM by plundin
https://ift.tt/37guVjJ
New post on Flutter Dev Google group:

A non-null String must be provided to a Text widget.
A non-null String must be provided to a Text widget. 'package:flutter/src/widgets/text.dart': Failed assertion: line 298 pos 10: 'data != null'

June 10, 2020 at 02:21AM by Jose Paulo Reboucas Filho
https://ift.tt/3f2Ghuq
New post on Flutter Dev Google group:

call flutter app as a component
Hi all, is there anyway to call flutter app as a component ? like i have app A and app B, i want to implement the app C into app A and app B. once i have update or enhance the app C, the app C in the app A and app B will auto get the latest version for app C. is that possible ?

June 10, 2020 at 03:32AM by san jiek
https://ift.tt/3f8u8nJ
New post on /r/flutterdev subreddit:

call flutter app as a component
Hi all, is there anyway to call flutter app as a component ?like i have app A and app B, i want to implement the app C into app A and app B.once i have update or enhance the app C, the app C in the app A and app B will auto get the latest version for app C.is that possible ?or is that possible that making an app as a plugin ?

June 10, 2020 at 03:42AM by YeohSJ
https://ift.tt/3cNSKk8
New post on Flutter Dev Google group:

How to show 2 collumns in each row?
Hello, I want to design something like this picture [image: IMG-20200529-WA0004.jpg]
New post on /r/flutterdev subreddit:

sup | A package for displaying errors, empty states, or just fancy messages
https://ift.tt/37lu5T8

June 10, 2020 at 10:14AM by xiprox
https://ift.tt/2Uw7T3h
New post on Flutter Dev Google group:

to get image from flutter app to esp32 via bluetooth
Hi... I want to create an app such that it takes a photo and send to the esp32 module via Bluetooth. Can you provide me some reference links and codes Thank you in advance

June 10, 2020 at 10:59AM by Abinavan Nagendran
https://ift.tt/37sIJIl
New post on /r/flutterdev subreddit:

Local Database Flutter With SQLITE and MVVM Update and View Detail #4 #Finish
In this video we will learn how to user sqlite with mvvm model, this part focus on how to update data and how to view detail data by id​https://youtu.be/Suj0azI5txM

June 10, 2020 at 10:28AM by hifiaz
https://ift.tt/2UrOekU
New post on /r/flutterdev subreddit:

Boss wants me to do a presentation on Flutter, what main points should I touch on?
I've been learning flutter for 4 months now and my boss wants me to do a presentation about Flutter to the dev team. They previously have been doing all their work in another codebase and most of them have never seen a line of dart in their lives. I'm also fairly beginner at Flutter (only been coding in it for a few months) and am quite nervous I'll get asked hard questions and not 100% sure what to talk about.I think I'll touch on: - Fast dev speed using brilliant widget library - Hot reload (boss excited about this) - Animations? - I have no idea what else :/Anybody have any input/insight? It would be much appreciated, thanks!

June 10, 2020 at 11:12AM by jejwkkakdkf
https://ift.tt/2UxUbNw
New post on /r/flutterdev subreddit:

Made an app using Flutter which displays all the Trending repositories, developers for a certain time frame, as the official GitHub app does not have this feature nor does the official GitHub API.
https://ift.tt/3cWf3EB

June 10, 2020 at 11:32AM by demoncommand9725
https://ift.tt/30rQXyJ
New post on Flutter Dev Google group:

Please help I am new on Flutter - Error - Exception: Gradle task assembleDebug failed with exit code 1
Hi Everyone , i am New on Flutter , I had Followed Every step to Install Flutter on My Windows as Described by flutter.dev , but When I Tried to Run My First app Following Error Appeared , I am Confused that What Should i Do Now , Please Help ( I am Attaching the Screen Shot of the Same) .

June 10, 2020 at 01:34PM by Nitin Arora
https://ift.tt/2UywFzY