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

Search in ListView
hi, i have a listview.builder that gets the data from firebase and i use provider for state management, and i want to implement a search bar above the list to give the user ability to search, i tried created a local list and made it to be equal to the list i get from firebase: final donatorsFro

July 02, 2020 at 07:57PM by Yasin
https://ift.tt/3eSR0rG
New post on /r/flutterdev subreddit:

What are some must haves for production level apps?
Hello everyone.I've been working on a project for the last few months and Flutter and Firebase has been an amazing experience, but my code has gotten extremely messy. I'm still inexperienced in app development and when I started this project I just wrote everything to work without worrying about architecture or best practices.I want to rectify this as soon as possible as I'll be hiring some developers pretty soon. So far I have done:1.) State Management. I've started implementing the BLoC pattern and although I'm still struggling to wrap my head around all the concepts I'm getting the hang of it. I've realised this is important to reduce some of my spaghetti code.2.) Creating data classes for all my data used in the app. Don't know why I never did it before.Now my question is what is the most important aspects of production level code that I should focus on next?Would it make sense to start with repositories as well?I'm using Firebase as the backend, and I believe that's why I've gotten so far without doing much architecture. Any advice would be greatly appreciated. TIA

July 02, 2020 at 07:48PM by MentalMarzipan5
https://ift.tt/2ZA6kDn
New post on /r/flutterdev subreddit:

Announcing EzAnimation: Simplifying Flutter Animations
https://ift.tt/2ZuMKbA

July 02, 2020 at 07:19PM by deven9852
https://ift.tt/3ipeCGz
New post on /r/flutterdev subreddit:

Demo: A gRPC server written in Go, with a Flutter frontend
https://www.youtube.com/watch?v=2Uhse1vifrQ

July 02, 2020 at 07:51PM by processctrl
https://ift.tt/38jDDOW
New post on Flutter Dev Google group:

flutter_google_places - Mod autocomplete rows returned
Greetings - I have used the GooglePlacesAutoComplete Widget and was hoping to modify the rows returned in a prediction of what's typed. I'd like to perform a lookup on some data in firebase. Any thoughts? Thanks, Matt -- m.ma...@gmail.com

July 02, 2020 at 08:29PM by Matt Mason
https://ift.tt/2BXI064
New post on Flutter Dev Google group:

How to defocus a TextField if the User tap anyware
Hello, I have a Problem. In my app there is an generated list with an TextField in each Element. Everything in this list has an onTab Funktion. The TextField generate a new Element on ENTER and stays in Focus to type the next one. Now i want to achieve, that this TextFlield losses his focus and

July 03, 2020 at 12:31AM by James Moor
https://ift.tt/2ZwzJht
New post on Flutter Dev Google group:

Monitor Apdex of Flutter app
Is there any monitoring service that could be integrated with a flutter app? I have looked for a newrelic integration, but I didn't find one.

July 03, 2020 at 12:36AM by Marcel Cohen
https://ift.tt/2NOKkyO
New post on /r/flutterdev subreddit:

Brinstorming a "state management" without state and multithread
I'm using Provider for an app remaking I'm building. In this app, there is a main calendar, where almost all things you can do on the app will have an event in this calendar (a dot telling you there is an event in that day). Altough Provider is a nice state management package, I'm having troubles with dependencies: the calendar must update itself when an event that it doesn't know that exists is updated on the database (or the other way around: the event doesn't know the calendar). The most obvious pattern here is an Event Bus (like https://pub.dev/packages/event_bus).Then I noticed that I don't really need Provider... All my widgets are displaying database information, so it would be a lot easier if I could do something like this:StreamBuilder(stream: Database.stream.where((event) => event.tableName == "Users" && event.entityId = 1).cast<User>(), builder: here I build the data of User with id 1)Then, I learned about Dart Isolate, which allows us to do multithread. So I wondered: what if I could delegate all my database/json/web api stuff to isolates and communicate those request/responses in a stream to the main thread? That would allow me to create what I wrote above and use isolates to prevent UI freezing.What you guys think about all that?Some details: https://github.com/nxtSwitch/isolate_supervisor/issues/2

July 03, 2020 at 03:00AM by jckodel
https://ift.tt/2C2S3Xq
New post on /r/flutterdev subreddit:

Is there a reasons why "Mobile App" framework doesn't embrace CSS ?
This question might be stupid but I always wondered why framework like Flutter and React Native doesn't integrate CSS. We can use "styled components" as a work around from React Native but it is not pure css. I love FLutter but It is taking quite some times to get the style I need for a particular widget that would take 3 lines of CSS. CSS is quite fast and easy to use. I know that App cannot read CSS like a browser does, but might be good to have Flutter doing the work on the back for us.What do you think ?

July 03, 2020 at 03:36AM by Lionellyyn
https://ift.tt/2YX7CJv
New post on Flutter Dev Google group:

How to run the dart code in background in flutter only when internet connection is present?
I am developing an application using flutter where I will have a form. On submitting the form I have to check whether the internet connection is there or not, if present send the form data to API, if the internet connection is not present save the data in local storage and when the internet is

July 03, 2020 at 08:00AM by Harivamshi Diddiga
https://ift.tt/2VGtSFn
New post on Flutter Dev Google group:

There is no instant change in the dynamic structure. Refresh widget or hot reload in code.
Hi, There is a structure that I created dynamically, and when data is selected from the dropdown list in this structure, it api- fically fills the textfields according to the selected id. However, after selecting the dropdown, when I press hot reload, the data is fetched. Can I reload this

July 03, 2020 at 08:39AM by Gökçen Merve Horuk
https://ift.tt/3gjF96r
New post on /r/flutterdev subreddit:

Google Maps flutter Gestures are not working inside stack
I am using google_maps_flutter. My widget tree is Scaffold -> SingleChildScrollView -> Stack and then google map. I am unable to zoom in and zoom out using gestures.SingleChildScrollView( Stack( children: <Widget>[ Container( height: MediaQuery.of(context).size.height - 10.0, width: MediaQuery.of(context).size.width * 1, child: _mapView ? GoogleMap( initialCameraPosition: CameraPosition( target: _outletData[0].locationCoords, zoom: 12.0), markers: Set.from(allMarkers), onMapCreated: mapCreated, zoomControlsEnabled: false, zoomGesturesEnabled: true, scrollGesturesEnabled: true, compassEnabled: true, rotateGesturesEnabled: true, mapToolbarEnabled: true, tiltGesturesEnabled: true,
 ) : Container(), ), 
I also tried below code but still unable to zoom in zoom out using two finger touchStack( children: <Widget>[ Container( height: MediaQuery.of(context).size.height - 10.0, width: MediaQuery.of(context).size.width * 1, child: _mapView ? GoogleMap( initialCameraPosition: CameraPosition( target: _outletData[0].locationCoords, zoom: 12.0), markers: Set.from(allMarkers), onMapCreated: mapCreated, zoomControlsEnabled: false, zoomGesturesEnabled: true, scrollGesturesEnabled: true, compassEnabled: true, rotateGesturesEnabled: true, mapToolbarEnabled: true, tiltGesturesEnabled: true, gestureRecognizers: Set() ..add(Factory<PanGestureRecognizer>( () => PanGestureRecognizer())) ..add(Factory<ScaleGestureRecognizer>( () => ScaleGestureRecognizer())) ..add(Factory<TapGestureRecognizer>( () => TapGestureRecognizer())) ..add( Factory<VerticalDragGestureRecognizer>( () => VerticalDragGestureRecognizer()), ), ) : Container(), ),

July 03, 2020 at 12:51PM by bilalrabbi
https://ift.tt/31HCyPK
New post on /r/flutterdev subreddit:

Adding Flutter Web to an existing Flutter phone app project?
I have a few Flutter projects that I'd like to upgrade to also have a Flutter-made website in the project. I have looked around a bit but could only find 1 or 2 Medium articles about how to do this (both about a year old)I'm curious if there is a Flutter official upgrade plan or if this is all still experimental?
Maybe there is a good walk through somewhere on the internet?

July 03, 2020 at 03:53PM by maylortaylor
https://ift.tt/3itUfrZ
New post on /r/flutterdev subreddit:

What exactly is the difference between provider and get_it (state management and services)?
And which is more appropriate in this scenario?I'm using the view – viewmodel – services architecture by FilledStacks, but with a few changes. I'm using only provider and change notifier for state management, I'm not using the stacked library.One thing I learned was that your "Service" classes should be singletons, so that they are not instantiated every time you call a function. Apart from this, since there's only one single instance, I can implement caching of results of expensive functions.I thought I could easily do this like this:
final service = _Service(); // single instance imported everywhere class _Service { // functions here } 
Most examples I see use the get_it package to implement a singleton. Does the get_it locator way add any advantage?Now about Provider. If I'm explaining correctly, Provider allows you to expose a singleton instance of classes to use anywhere in your app. If used with change notifier, you get the changeNotifier() function to update UI. I thought I could use only provider and multi-provider for all my services too so that they're a single instance, but this requires the build context to access them, and this can make code a little messy (because context has to be passed down various functions, in business logic too sometimes)So a few issues:Should I use get_it? Currently, I'm only using Provider along with the way I described above to use servicesIs the singleton pattern the correct way to go in all cases?Can I used only get_it for everything?Thanks for reading. To be honest, it feels like the more I learn about clean architecture, the less I know about clean architecture.

July 03, 2020 at 03:23PM by pyboy10000
https://ift.tt/2YTh8gG
New post on /r/flutterdev subreddit:

Fully featured Qt binding for Flutter/Dart
https://ift.tt/2Y8slZ9

July 03, 2020 at 04:54PM by the_recipe
https://ift.tt/2AstEdF