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

I just made a Flappy Bird clone with Flutter and Flame, here are my thoughts
Check it out: https://youtu.be/DeoUhI-Waa0I always wanted to build games. So I thought I would give Flame a try. Here are my thoughts if anyone wants to get started with Flame as well:It was fun! After writing a few Flutter apps, I really love the language Dart. There were very little Flutter-ish codes when I wrote the game, but still it was very enjoyable with Hot Reload and other cool Dart stuff.It was quick. I had VERY LITTLE knowledge of other game engines and libraries. I always wanted to learn Godot/Unity, but never really started to. Even so, I made the clone only in a few hours. It would have taken quicker, but it was my first time and I had to figure some stuff out from the source codes, find assets etc.Flame was very easy to understand. I had only read a five part LANGAW game tutorial, and I felt like I was ready to write my own games ๐Ÿ˜It was very performant, and the APK size wasn't big at all(5.9 MB with all the assets and audios). I know that some of the Game Engines and libraries generate big APKs.What do you think about Flame? I really enjoyed it. If anyone's interested, I'll polish the code and put it up on my GitHub.

December 26, 2019 at 10:38AM by _nightwielder_
https://ift.tt/37aDP13
New post on /r/flutterdev subreddit:

Which state solution bigger companies are using?
Hello, I have spent about 2 months learning/coding in flutter. Coming from native IOS and Android development it was a pleasant experience. The one thing I love the most about flutter is building UI. Compared with Android or IOS it is much easier/faster (2-4 times) to build UI in Flutter.However, I feel that state management is still an issue for me. Right now I am using flutter_bloc with Provider but not sure about my choice.In native android I saw exactly the same issue regarding architecture. Google did not recommend any architecture and it became a mess in the Android world. Only 3 years ago MVVM became the suggested solution and there is still debate today.This is why I want to ask about big companies and their state management choice. Do they use redux or provider, or perhaps mobx, flutter_bloc? Can someone suggest some references for their choices? I am referring companies like Alibaba, Google (Stadia app), Tencent, reflectly app. Also if you are working in the company and use Flutter, can you share your choice? :)

December 26, 2019 at 11:57AM by wellbranding
https://ift.tt/2SqXyWb
New post on /r/flutterdev subreddit:

Bottom navigation bar and routing
Hi there,I am developing an application where I've created bottom navigation bar with PageStorage in order to persist states between pages. But what bothers me is that I am instantiating these screens directly and I do not have routs in main.dart file.So my question is: Is it possible and good practice to add navigation to these screens since these are used only for bottom nav.bar?

December 26, 2019 at 11:46AM by lazarvgd
https://ift.tt/2Qk3u0n
New post on /r/flutterdev subreddit:

reWalls : Wallpapers From reddit
This is something I've been working on for quite a while. It's a wallpaper app that lets you browse your favorite subreddits and allows you to set the image as wallpaper or download the image. It's still in it's early stage, so your feedback is highly appreciated.
You can try out the app here: https://play.google.com/store/apps/details?id=com.bimsina.re_walls
Also the project is open source so you can contribute to the project here: https://github.com/bimsina/reWalls

December 25, 2019 at 02:48AM by bimsina
https://ift.tt/2EV6dbm
New post on /r/flutterdev subreddit:

A few questions about best practices for building an app's authentication
I want to build an app using flutter and was wondering if there was a better way to build an authentication system. I wanted to get things down and planned before I start working on it.โ€‹Authentication can done using google_sign_in, flutter_facebook_login, and firebase_auth.When the user is signed in or signed up, his data is stored locally using sqlite (as described here: https://pusher.com/tutorials/local-data-flutter). User data is retrieved later whenever required.When an app is opened (after the first sign in/up), while the splash screen displays, we check whether there saved user data. If no, we redirect to the authentication page, else we verify if the data matches what's on the server. If it matches, we display the home page, else, we redirect towards authentication.Does this sound alright?

December 26, 2019 at 03:06PM by Cracin
https://ift.tt/2MuxQfH
New post on /r/flutterdev subreddit:

Flutter UI - How do I scale it?
I can create UI for my phone, but when I try to run it on a tablet or other phone, the widgets sometimes exceed bounds and I get a cautionary bar.Is there a widget that I can use to scale this?

December 26, 2019 at 03:12PM by Ultra1101
https://ift.tt/2PXQ4Z5
New post on /r/flutterdev subreddit:

Flutter Scale Aware
Hey Community!Here we go again. This one is still without a fancy README but maybe looks appealing enough to continue at a second stab? It introduces extensions to aide scale-based layouts.
Container( height: context.scale(2), width: context.scale(14.5), color: Color.red, child: Text("Hello World", style: TextStyle(fontSize: context.fontScale(16))), ) 
PS: It has a huge set of test cases and good coverage.

December 26, 2019 at 03:51PM by jogboms
https://ift.tt/35YQqEt
New post on Flutter Dev Google group:

unable to build a dashboard menu
dear all iam very new to flutter iam trying to build a dashboard menu (consist of all buttons for the command) is there any git repo regarding this topic if yes kindly share best regards

December 26, 2019 at 04:11PM by Mohd Faiz
https://ift.tt/369o8Y5
New post on /r/flutterdev subreddit:

Can apple kill flutter
I don't know internal working of flutter or how it makes iOS apps. Iam assumind flutter team is somehow dependant on apple. Can apple prevent other third party stuff like flutter from developing iOS apps?

December 26, 2019 at 04:24PM by Sevenio
https://ift.tt/39gVTZ6
New post on /r/flutterdev subreddit:

Sometimes My dio locks itself and sometime it works idk why?
Actually I am using dio package for intercepting every request made from my end, and before accessing the options or header specailly token in my case , I am checking for token if it is present or not, If token is found then I proceed and if not then getTokenMethod() is called and dio is locked before doing so, after the token is found using then function and when complete, I unlock my dio, but this doesn't seem to be the correct way I think so, because in these conditions my dio sometimes stuck and keep loading the request like if it is in lock mode.
To get rid of this continuously loading of dio request I tried to use timeout with the dio reqeust but that also dosen't seem to work, my dio is working perfectly with headers sometime, and sometime its not working

December 26, 2019 at 04:49PM by FlutteryFlirt
https://ift.tt/2QytOUX
New post on Flutter Dev Google group:

flutter_webview , and flutter_webview_plugin do not work!
I am trying to build a website where I am going to integrate popular websites in my web app. However, I tried to use the plugins flutter_webview and flutter_webview_plugin but what happened is this when I run the program and try to navigate to these websites through my web app, the web app keeps

December 26, 2019 at 05:27PM by Alpha
https://ift.tt/2Mw8ZIq
New post on /r/flutterdev subreddit:

Weaving Flutter with Firebase
Planning to build a product with great speed and need easy steps to follow? Here's an article you may find useful. https://medium.com/@nikkitagandhi/flutter-with-firebase-2bac25075683

December 26, 2019 at 06:22PM by nikitag1494
https://ift.tt/2QgRih2
New post on /r/flutterdev subreddit:

Releasing today: A water chemistry simulation app using dart:ffi, isolates, charts_flutter, flutter_bloc, and provider!
I'm excited to release today an app for simulating the chemistry of chlorine and ammonia in water, a topic of particular importance to wastewater engineers and operators. The interactions between the two species are fairly complex and boil down to a series of differential equations which need to be solved. I was inspired to create this when I saw a tool the EPA had created for doing the same thing โ€” I loved seeing the visualization of these reactions and wanted to recreate it in Flutter.Since there are no dart packages for solving systems of differential equations, I used the very popular C++ library boost for simulating the reactions and connected to the generated library using the dart:ffi package. To keep the main thread unburdened by the heavy C++ code, I used isolates to offload all the simulation work.State management is accomplished using the flutter_bloc and provider packages. And charts of results are presented using charts_flutter.Hope you enjoy!Github: https://github.com/dnys1/breakpointApp Store: https://apps.apple.com/us/app/breakpoint-simulator/id1491638603?mt=8Google Play: https://play.google.com/store/apps/details?id=com.humbleme.breakpoint

December 26, 2019 at 07:01PM by destinyprovider
https://ift.tt/35ZqHvt
New post on /r/flutterdev subreddit:

Icons or Images for the app buttons? Suggestions for preload.
Hi guys, I'm using images for my app buttons instead Cupertino Icons for example, and I realized that my home screen images rendering is a little slow (debug mode).What I'ts better for improve screen rendering?Any suggestion for preload initial screen? Like a splash screen before load all resources.

December 26, 2019 at 06:58PM by adenilson-santos
https://ift.tt/3549S1q
New post on /r/flutterdev subreddit:

Is there any way to listen backspace key pressed on keyboard ?
For now I am using this to check that if user has pressed the backspace on the keyboard but this code is not workingimport 'package:flutter/services.dart' as serv;serv.RawKeyboard.instance.addListener((serv.RawKeyEvent k){ print(k); });Can someone tell me how to check if someone pressed the backspace on keyboard

December 26, 2019 at 07:43PM by FlutteryFlirt
https://ift.tt/34TYOnb
New post on /r/flutterdev subreddit:

Why UI lags in the Flutter gallery app? Really Unexpected
I looked at Flutter Gallery app today and unexpectedly UI really lagged (compared to native). Especially switching between tabs.I have been rewriting our app from native android to Flutter for about 1 month now and my UI always does not feel like Android. What I mean by "feel" is things like tab, chips clicks or scrolling in GridView with images and loading bars. I have previously used ReactNative and even though it had some minor issues, at least the feel was equal to native development.I don't know if it is just me, but I have tested on my own daily phones: iPhone X and Xioami miA2. I have not tested on any emulators, but all native apps feel native in those phones, expect Flutter ones... I am looking for some hints or perhaps I am true, that Flutter does not feel native at all.

December 26, 2019 at 07:35PM by wellbranding
https://ift.tt/2MxqtnA
New post on Flutter Dev Google group:

[Breaking Change Proposal] Make CupertinoThemeData.brightness nullable
Hi all, I'd like to make CupertinoThemeData.brightness nullable. Currently it returns Brightness.light even when set to null. This is going to be a breaking change because it breaks an existing widget test. You can find the design doc for this breaking change here: https://ift.tt/1eWmIPy

December 26, 2019 at 11:08PM by WY H
https://ift.tt/2t0Anr3
New post on Flutter Dev Google group:

Invoke print dialog from flutter_web project?
I'm developing an application that generates some one-time use codes that need to be printed out. If this were an Angular application, I could just include a window.print() link on an element in the template. Is there some equivalent way to invoke the browser's print dialog from a flutter_web

December 26, 2019 at 11:09PM by Stephen Beitzel
https://ift.tt/2t1kRLI
New post on /r/flutterdev subreddit:

Selecting colors, building themes and making a (coherent) Material dark theme has always been hard. My newest Flutter app should help!
https://ift.tt/2MqZ0nJ

December 27, 2019 at 12:28AM by bernaferrari
https://ift.tt/2PXx4tG