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

form_bloc v0.11.0 releases tutorials on flutter web, and support Wizard/Stepper Forms, Conditional Fields, List and Group fields, Asynchronous Validation and More! @GiancarloCode
https://ift.tt/39iLY4f

March 25, 2020 at 07:33PM by GiancarloCode
https://ift.tt/3bCcirN
New post on /r/flutterdev subreddit:

How to force ScrollController to recalculate position.maxExtents?
Does anyone know the answer to this question?
https://stackoverflow.com/questions/60855712/flutter-how-to-force-scrollcontroller-to-recalculate-position-maxextents=====================================================================I'm trying to create a desktop-style scrollbar, that changes it's size based on the size of the content.My scrollbar shares a ScrollController with a list, and relies on the position.maxExtents to know how large the content area is.The issue is that when I change the number of rows, the maxExtents will not update, until a scrollEvent is initiated.I've worked around it with code like this, moving 1px up, and 1px down over 100ms:
widget.controller.jumpTo(controller.position.pixels + 1); Future.microtask(() => widget.controller.animateTo(controller.position.pixels - 1, duration: 100.milliseconds, curve: Curves.linear)); 
Which works pretty quite well when the list can scroll. However, when the list is < the height of the view, it can't scroll, and these calls have no effect, and I'm stuck with a stale maxExtents.How can I just tell the list: Hey, list, recalculate your children!

March 25, 2020 at 08:42PM by esDotDev
https://ift.tt/2QInsmM
New post on /r/flutterdev subreddit:

🔥 form_bloc v0.11.0 releases tutorials on flutter web, and support Wizard/Stepper Forms, Conditional Fields, List and Group fields, Asynchronous Validation and More! @GiancarloCode https://ift.tt/3avvg2M
https://ift.tt/3avvg2M

March 25, 2020 at 08:15PM by GiancarloCode
https://ift.tt/33LkLWz
New post on /r/flutterdev subreddit:

Sweetsheet : show bottoms sheets as confirmation dialog
I'm happy to announce the Flutter package Sweetsheet. Sweetsheet helps you show quickly and easily beautiful bottoms sheets as confirmation dialog. sweetsheet package@FlutterDev @r_FlutterDev @FlutterWk @FlutterComm #Flutter #flutterdev

March 25, 2020 at 08:52PM by CorneilleEdi
https://ift.tt/3ahHwEg
New tweet from FlutterDev:

🤔Which animation widget?

Unsure which animation widget to use? There are so many options that figuring out which one is best can be hard. @bouncingsheep walks us through a series of questions to help decide!

📺 Watch this #FlutterinFocus episode &rarr; https://t.co/Ck0V6leNsY pic.twitter.com/LLJy2xGsCi— Flutter (@FlutterDev) March 25, 2020

March 25, 2020 at 10:46PM
http://twitter.com/FlutterDev/status/1242930767895957504
New post on Flutter Dev Google group:

Dispositivo no disponible
hola estoy apenas en mis primeros 3 dias de flutter tengo un problema que no puedo resolver mi pc es un poco antigua y no puedo ejecutar ADV VIRTUAL DISPOSITIVO porque mi pc no lo soporta este mensaje me pone YOUR CPU DOES NOT SUPPORT VT-x quiero poner mi telefono lo conecto a mi pc pero no

March 26, 2020 at 02:08AM by jose carlos murillo lopez
https://ift.tt/39ePk8k
New post on /r/flutterdev subreddit:

Disabling forms or Modal Progress Indicator
I've been making progress with flutter using Udemy and at one point in Andrea's course, he suggests a challenge to disable the forms while it's saving. Earlier in the course, it was just disabled with a TODO for the indicator. I looked up the Modal Progress HUD, built my own and now I'm left wondering:TLDRIf a modal barrier on the stack can prevent interaction with the layer below, is it still necessary or perhaps best practice to disable the forms and buttons? It seems unnecessary to me.

March 26, 2020 at 04:40AM by Cnkcv
https://ift.tt/2WFCMnX
New post on /r/flutterdev subreddit:

Flutter Row widget cheat sheet
https://ift.tt/2WQqY1Y

March 26, 2020 at 04:39AM by ishanfx
https://ift.tt/3bsbXaR
New post on Flutter Dev Google group:

flutter and Golang
It's possible to use flutter with Golang ??

March 26, 2020 at 07:53AM by husam alkdary
https://ift.tt/2JcRYkv
New post on /r/flutterdev subreddit:

Flutter app to visualize Covid19 Global Cases
hi I've been working on a corona updates app , since google dose not approve any corona related app i am sharing the app with community.any kind of pull requests and feedbacks are welcome.Link to the project : https://github.com/kw2019ltd/corova_virus_appapp guide:https://www.youtube.com/watch?v=qfjG0Jv313s

March 26, 2020 at 09:51AM by Kotaibaw
https://ift.tt/2WLIy7E
New post on Flutter Dev Google group:

flutter error "type(httpexception=>null is not a subtype of type dynamic => dynamic"
anyone can help me to overcome the problem "type(httpexception=>null is not a subtype of type dynamic => dynamic"

March 26, 2020 at 11:15AM by Kardo Tinambunan
https://ift.tt/2QKubwc
New post on /r/flutterdev subreddit:

<b>[Questions] Flutter architecture, mobx, perfomance, rebuilding.</b>
Hi community, help a brother out.I have been trying to build an app using flutter and I am having a hard time figuring out certain concepts in flutter. I am hoping to find some answers here.Preface:App dependencies: <strong>flutter_mobx, auto_route,get_it</strong>.I am building an app where I need to show some alerts. I have created a Flutter page as <code>AlertsScreen</code> which is subscribed to <strong>mobx</strong> <code>alerts_store</code>. So whenever I try to push an alert to the <code>alerts_store</code> the snackbar should popup. Something similar which I have been doing in React web.App repo link: <a href="https://github.com/ganeshrvel/open_cloud_encryptor/tree/new-router-logic">https://github.com/ganeshrvel/open_cloud_encryptor/tree/new-router-logic</a>Questions:How do I mount a common widget like <code>AlertsScreen()</code> which will be rendered across the app.Earlier I used to do something like this:<strong>app.dart</strong> (<a href="https://github.com/ganeshrvel/open_cloud_encryptor/blob/4d1f9918d5705f686f3a378ba42a92072964c8c4/lib/features/app/ui/pages/app.dart#L43">Github link</a>)<code>MaterialApp(</code><code>builder: (BuildContext context, Widget widget) {</code><code>setErrorBuilder();</code><code>return Column(</code><code>children: <Widget>[</code><code>Expanded(</code><code>child: widget,</code><code>),</code><code>AlertsScreen(),</code><code>],</code><code>);</code><code>},</code><code>title: 'App name',</code><code>onGenerateRoute: Router.onGenerateRoute,</code><code>initialRoute: Router.splashScreen,</code><code>navigatorKey: Router.navigator.key,</code><code>),</code>But then when ever I tried to render Flushbar or other item inside <code>AlertsScreen</code> which requires `context` it threw an error:<code>[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Navigator operation requested with a context that does not include a Navigator. The context used to push or pop routes from the Navigator must be that of a widget that is a descendant of a Navigator widget.</code>&#8203;Flushbar example code:<code>Flushbar(title: 'title',message: 'body',duration: const Duration(seconds: 5),).show(context);</code>How do I mount a common widget like <code>AlertsScreen</code> across the app and which will be always visible for any sort of activity?&#8203;2) This answer from <a href="https://stackoverflow.com/a/55675611/1317099">stackoverflow</a> suggests to make a <code>CommonWidget</code> stateless widget and use it wherever it has to be rendered.So taking cues from the above stackoverflow answer I modified my code like this:<strong>common_widget.dart</strong> (<a href="https://github.com/ganeshrvel/open_cloud_encryptor/blob/new-router-logic/lib/widgets/common_widget/common_widget.dart">Github link</a>)<code>class CommonWidget extends StatelessWidget {final Widget child;</code><code>const CommonWidget({@required this.child,});</code><code>@overrideWidget build(BuildContext context) {return Column(children: <Widget>[Expanded(child: child,),AlertsScreen(),],);}}</code><strong>home.dart</strong> (<a href="https://github.com/ganeshrvel/open_cloud_encryptor/blob/new-router-logic/lib/features/home/ui/pages/home.dart">Github link</a>)<code>class _HomeScreenState extends StatelessWidget {</code><code>@override</code><code>Widget build(BuildContext context) {</code><code>return Scaffold(</code><code>appBar: AppBar(</code><code>title: const Text('Home'),</code><code>),</code><code>body: CommonWidget(</code><code>child: Center(</code><code>child: Column(),</code><code>),</code><code>),</code><code>);</code><code>}</code><code>}</code>Is this the right way to do it?3) I use <strong>flutter_mobx</strong> as the store for <code>AlertsScreen</code>. Since I have used <code>CommonWidget</code> in multiple screens for displaying <code>AlertsScreen</code>, whenever I update the store the <code>AlertsScreen</code>…
New post on /r/flutterdev subreddit:

[Question] how to do Geo queries with Firestore?
I am building an application which uses location in its core. I would like to filter and sort restaurants with their geolocations.I need to use 2 queries:1- searchCenterWithRadius(center:latlng, radius:num)2- searchWithRect(northwest:latlng, southeast:latlng)And lastly I would like to be able to listen to the above query's results in real time. So when a new restaurant becomes available within the radius, I want to get notified.What do you fellow Flutterers use for these needs? I am sure this is needed by most of the devs. I found a lib called GeoFire by Firebase but it is for native iOS and Android. Also they did not share any info on the pricing aspect of their implementation. Maybe they download the whole collection and query locally. I am not sure.

March 26, 2020 at 01:27PM by aytunch
https://ift.tt/33LPaEp
New post on /r/flutterdev subreddit:

Analytics package: Firebase analytics vs AppSpector
What do you guys use and what do you prefer? I've just taken a look at appspector which is very expensive but can do awesome stuff. I have never tried firebase though. Any comments or advices?

March 26, 2020 at 01:25PM by nicolaszein
https://ift.tt/2UlTU08
New post on Flutter Dev Google group:

Upgrading pre 1.12 Android projects. Platform specific code invocation.
Hello Flutter community, I have multiple platform specific packages defined in my project which I consume by using MethodChannel. After upgrading my project as guidelines suggest (Upgrading pre 1.12 Android projects