Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
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
New post on /r/flutterdev subreddit:

Covid19 Cases Statistics website in Flutter
Quarantine day 3:I decided to try out Flutter for web while creating a website. So, I started creating this website called Statistics for COVID-19 which shows data relating to the disease.I can't expect much from Flutter for web since it is still under development. Currently, the performance is very bad though, I'm sure it will improve.The site is at https://covid-nineteen.netlify.com
Source code at https://github.com/frencojobs/covid-nineteenI am looking forward to all kinds of feedback.

March 26, 2020 at 02:07PM by frencojobs
https://ift.tt/3dvLds0
New post on /r/flutterdev subreddit:

Flutter for Bluetooth low energy (BLE) scan
I am currently strongly considering to use Flutter as a framework for building multi-platform app, that will scan for Bluetooth beacons with BLE protocol.Library "flutter_blue" (https://pub.dev/packages/flutter_blue) was helpful as a first step, but I want it to work not only on smartphones but also on laptops (Win/Mac/Linux that have support of BLE).The next logical step seems to be using web application in Flutter from the beta channel (https://flutter.dev/docs/get-started/web).But when I run it with the example application I wasn't able to connect to Bluetooth adapter on laptops. My question is, if you have any experience regarding Bluetooth scan in devices or if we need to wait if and when libraries will come from early stage development and if there will be one code base to run them all. Or if you know about any libs that could solve this issue.Thanks.

March 26, 2020 at 03:22PM by zelen8
https://ift.tt/3al8Z87
New post on /r/flutterdev subreddit:

How good is Flutter?
Help post
I know some basics of React-native and heard flutter is better. And now I am confused about whether to learn (React and React-native) or flutter for web and mobile development. I heard that using flutter we can use the same code base for both webs, mobile apps, and desktop application development.
For eg, using javascript for the web we have to learn React, and for mobile apps, we have to learn React-Native. But with flutter, it works for both web and mobile apps. Is that true?

March 26, 2020 at 05:04PM by Ace_ZeQuoX
https://ift.tt/2wHxaPc
New post on Flutter Dev Google group:

How to prevent Flutter widget tree rerendering on state update and performance improvement
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: *flutter_mobx,auto_route,get_it*. I am building an app where I need to show some alerts. I have created a

March 26, 2020 at 06:34PM by Ganesh Rathinavel
https://ift.tt/2WN5gMj
New post on /r/flutterdev subreddit:

Flutter Drivers Tests on AWS
Is there a way to run Flutter Driver Tests on AWS Device Farm other than sylph? I have looked around a lot but haven't found anything other than this. https://github.com/mmcc007/sylphI am also open to other options to AWS if they are well supported and run driver tests without much tinkering.

March 26, 2020 at 06:25PM by aditya_gurjar
https://ift.tt/3ajWny0