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

Best architecture using providers
I like using providers for my applications, I separate the code in 3 parts: the UI, the providers, the services.In your opinion, which of the following two architectures is the best:each page has its own provider declared at the root of the page. The services keep in memory the resources previously read to avoid having to reload a previously accessed resource each time since the providers will be recreated each time the widget is re-created.providers are declared at the root of the tree, each widget can access to any provider according to its needs. This time, it is the providers that keep in memory the resources accessed (since they are never destroyed).I have the impression that the first solution is more readable when the application scales up but less flexible than the second solution (and there could be more redundancy among providers).

April 01, 2020 at 12:27AM by rguillot42
https://ift.tt/3aBH6c2
New post on Flutter Dev Google group:

Flutter for Web - Trying to callback from javascript to dart
Hello, I am trying to pass a dart function to javascript, keep it in reference, and later, when one of the javascript has a callback from a webservice, call the dart function. It works well if I call the dart function directly in the javascript function, but when I keep its reference and call

April 01, 2020 at 01:01AM by Simon Ampleman
https://ift.tt/2WZtkM8
New post on /r/flutterdev subreddit:

Flutter flavors to make two apps from one.
I want to create an app that is a marketplace with users and providers. There are enough common features that I would prefer to only have the code live in one place and not duplicate it in two apps. Could I make one app and use flavors to deploy it as two different apps? How do you wrap the functionality with environment variables (or something else) so each app has the right features?​I have seen basic uses of flavors only to change text and images but I want different pages and functionality in each app. Any links to similar examples would be helpful...

April 01, 2020 at 02:58AM by G8trGuy
https://ift.tt/2UR2MKr
New post on Flutter Dev Google group:

Configuracion web flutter
Hola buenas tarde a todos Soy nuevo en esto de flutter Estoy configurando flutter para web y me topo con esto *Note:* The flutter upgrade command silently fails when origin points to a personal fork. To validate that origin points to https://ift.tt/2dbZsVl, run the following

April 01, 2020 at 02:26AM by Mario Daniel Alexander Garcia Escobar
https://ift.tt/2JxO9Gs
New post on Flutter Dev Google group:

flutter issues
Hi, I've downloaded the flutter sdk, updated the path and the git path. I updated path for both user and system variables though but, when I run "flutter doctor", my cmd window blinks, and then nothing happens I tried to create a new flutter project studio, I received an error like "creating

April 01, 2020 at 05:35AM by Cedric Oppong
https://ift.tt/3dIYOMD
New post on Flutter Dev Google group:

Connection terminated during handshake
When i run "flutter pub get" in Flutter project terminal after adding dependency in "pubspec.yaml" it shows me error. *Error is Connection terminated during handshake* [image: flutter error.PNG] *Please help me to solve that.Thank you.*

April 01, 2020 at 11:38AM by Kuntal Ghosh
https://ift.tt/2wSufU4
New post on /r/flutterdev subreddit:

Create a motivation App using Flutter
https://ift.tt/33ZQGCS

April 01, 2020 at 12:28PM by Elixane
https://ift.tt/2R24cAS
New post on /r/flutterdev subreddit:

Create a motivation App using Flutter
https://ift.tt/33ZQGCS

April 01, 2020 at 12:28PM by Elixane
https://ift.tt/2R24cAS
New post on /r/flutterdev subreddit:

What problems are you facing when using databases?
I recently experimented with Firebase and Firestore creating a Question/Answer app similar to StackOverflow which also features uploading of images. While the implementation itself was not too complex, my usage of BLoC and a pattern using entities and repositories quickly generated plenty of files. Especially the generation of code for the datamodel (copyWith, toEntity and fromEntity methods) as well as the code for the database entity (copyWith, fromModel and toJson methods) are quite tedious. I know that some of the code can be generated using packages from the pub.dev store, but I am still wondering whether a more simplistic approach exist.Furthermore, I often see questions on StackOverflow which are related to the usage of databases. It seems that people have problems getting their database running in their apps.Therefore my questions for discussion is:What problems are you facing when using databases in flutter and how are you solving these problems?

April 01, 2020 at 03:48PM by jenshor
https://ift.tt/2Uwj3FI
New post on Flutter Dev Google group:

Adding page and link from downloaded pages
Hi Comunnity, I would like to know if is it possible to import a file dart and after the file donwloaded, create automatclly a new imported page and scripts using dart. Example: An app have 2 pages, using a function. I import a new page and automatcly a page and code is created.

April 01, 2020 at 05:32PM by Davi Reimann Rossini
https://ift.tt/2X2ebd4
New post on Flutter Dev Google group:

Document constraints applied by widgets
I still get stuck occasionally on size constraint failures. I can imagine a table in the documentation of all the widgets showing what constraints they apply. If this varies, we can have code snippets that show how the widget can apply different constraints. I think this would be very useful

April 01, 2020 at 06:35PM by Guyren Howe
https://ift.tt/2X1pCSs
New tweet from FlutterDev:

→ Create space between your widgets! ←

The Divider widget is useful wherever you have widgets or groups of widgets that need to be separated. Learn how to divide your widgets and set width, height, color, thickness, and more.

More #WidgetoftheWeek → https://t.co/ypFd8mHST2 pic.twitter.com/RYdP02kGCv— Flutter (@FlutterDev) April 1, 2020

April 01, 2020 at 06:32PM
http://twitter.com/FlutterDev/status/1245388462812889088
New post on /r/flutterdev subreddit:

PostGres package documentation
PostGres link : https://pub.dev/packages/postgresI am trying to view its documentation but apparently the link is broken. From where else can I read about its API docs?Broken link: https://www.dartdocs.org/documentation/postgres/latest

April 01, 2020 at 06:45PM by WaveletsDev
https://ift.tt/2xE8De7