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

Hope this package will be of use to everyone! It's a simple Flutter wrapper around the DartPad web embedding, letting you include code snippets and DartPad in your Flutter Web applications.!Currently there is no plans on making it available for Android/iOS/Desktop.
https://ift.tt/34UxiaN

April 21, 2020 at 09:30PM by aimldev
https://ift.tt/3bvp0ZI
New tweet from FlutterDev:

It’s time to #ShareYourStickers!

We know a lot of you are missing your community so we thought it’d be fun to kick off a share fest so you can show your fellow developers how you decorate your computers.

Respond below with pics. Bonus points for smiling faces. Pets welcome too. pic.twitter.com/jXGHSht6Qb— Google Developers (@googledevs) April 13, 2020

April 21, 2020 at 10:18PM
http://twitter.com/FlutterDev/status/1252693163954679808
New post on /r/flutterdev subreddit:

get_it import is not working for me !!!
import 'package:get_it/get_it.dart';not working for me!!!! any one can help?

April 22, 2020 at 12:52AM by Antonio_Vanko
https://ift.tt/2VMzfC5
New post on /r/flutterdev subreddit:

Api For Mobile Developing
Hello Everyone,I just wanna ask a question about API. Is there any FREE API'S to use it into our applications or like making apps for play store or app store ?I will be waiting your answers .Thank you =)

April 22, 2020 at 01:17AM by altinsoyc
https://ift.tt/2VKMhjD
New post on /r/flutterdev subreddit:

Getter methods in Widgets Usage
```dart class Example extends StatelessWidget {Example({ Key key, this.value, this.height }) : super(key: key);final String value; final double height;String get _output => value.toString(); double get _margin => (height / 10); } ```I saw this example and I was confused. And this is not the first time I saw this. a couple of different projects or repo has this getter method implemented.If I am not wrong, I thought having a getter method is to be used with an instance of an Object, not inside of the object.For example (from Dart language tour):```dart class Rectangle { num left, top, width, height;Rectangle(this.left, this.top, this.width, this.height);// Define two calculated properties: right and bottom. num get right => left + width; set right(num value) => left = value - width; num get bottom => top + height; set bottom(num value) => top = value - height; }void main() { var rect = Rectangle(3, 4, 20, 15); assert(rect.left == 3); rect.right = 12; assert(rect.left == -8); } ```From dart style guide: DO use getters for operations that conceptually access properties.If I were to change the first example, it would look like this:```dart class Example extends StatelessWidget {Example({ Key key, this.value, this.height }) : super(key: key);final String value; final double height;@override Widget build(BuildContext context) {final String _output = value.toString(); final double _margin = (height / 10);... } ```I changed the getter method to a variable and it still works.Am I missing something?

April 22, 2020 at 02:53AM by thehappyharis
https://ift.tt/2yBraII
New post on Flutter Dev Google group:

Flutter SignalR method not being invoked properly
Hi Flutter developers, I'm new to using signalR in flutter, but i'm unable to execute my hub methods correctly, I'm always getting this error when i invoke executeTest: *Unhandled Exception: type 'GeneralError' is not a subtype of type 'Error' in type cast * *This is my CommentHub in

April 22, 2020 at 02:54AM by SW
https://ift.tt/2RUvHg8
New post on /r/flutterdev subreddit:

Something that I think would make Flutter imeasurably better than it currently is right now
Automatic indentation detection similar to python, in order to remove the amount of brackets and commas needed in order to crate widgets.I'm not a big fan of python (I come from a C++ background) but to say it handles readability well is an understatement. Right now, I think Flutters biggest issue (outside of technical issues that may arise) is the readability of it.I'll give an example piece of code:
class FirstScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('First Screen'), ), body: Center( child: RaisedButton( child: const Text('Go to Second'), onPressed: () { Navigator .of(context) .push(MaterialPageRoute(builder: (_) => SecondScreen())); }, ), ), ); } } 
Which to me, looks very busy for something so simple. Now imagine this:
class FirstScreen extends StatelessWidget @override Widget build(BuildContext context) Scaffold scaffold appBar: AppBar title: const Text('First Screen') body: Center child: RaisedButton child: const Text('Go to Second') onPressed(): Navigator .of(context) .push(MaterialPageRoute(builder: (_) => SecondScreen()) return scaffold 
With a few adjustements to the interperator (probably a rather heft task) you could improve readability, and reduce complexity and space very quickly!Any thoughts from the community? Is flutter open source enough that this could be something worked on for testing?

April 22, 2020 at 03:29AM by frankielyonshaha
https://ift.tt/3at6IXA
New post on /r/flutterdev subreddit:

NextBus SG – a bus timings and public transport information app using Provider/ChangeNotifier + Hive
https://ift.tt/2xGOwwq

April 22, 2020 at 06:59AM by themindstorm
https://ift.tt/3arGxAB
New post on /r/flutterdev subreddit:

An example of my flutter app architecture, BLoC + freezed
Hello,I would like to share my flutter architecture, its just a really simple example but i hope its understood. Let me know your thoughts or if you have any questions.After reading a post here i have seen lots of people using MobX but i think BLoC have much more control and readability.https://github.com/Code-PLeX/bloc_freezed_example

April 22, 2020 at 09:49AM by Code_PLeX
https://ift.tt/2RUysxF
New post on Flutter Dev Google group:

Using Dart for Firebase Cloud Functions?
While not completely Flutter related, I'd like to know whether anybody successfully tried to use Dart for writing Firebase cloud functions when creating the backend for their Flutter apps. Using Firebase with Flutter works great, but to create a cloud function (which often is required for

April 22, 2020 at 12:24PM by Stefan Matthias Aust
https://ift.tt/2Y2M2D0
New post on Flutter Dev Google group:

Hello i have used https://ift.tt/2Nm9aI6 this package to create country state city dropdwon list
and i m facing a very strange issue and i don't understand the error,first i select country base on that province and then city base on province, it working but some time this error appear after sometime when i select state RangeError (index): Invalid value: Not in range 0..1, inclusive: 2 The

April 22, 2020 at 12:26PM by Attaullah Khan
https://ift.tt/2RXBUHT
New post on /r/flutterdev subreddit:

Why do I not like Flutter user experience?
tl;dr: This post will compare React Native and Flutter, again... I would like to clarify my ideas instead of only reading "Flutter is best, it is the future" and other market predictions. I know that Google has more money than Facebook.I was recently looking for the best Framework to build cross-platform apps (Android, iOS, and if possible desktop and web). I made my research trying apps built with different technologies:Ionic 5 is a "webview": it is slow and heavy (and has a limited access to the native API), I have quickly forgotten it.React Native: it is still heavy, but I love how it feels like native apps. I already tried it, in Instagram, Facebook, Soundcloud and Discord.Flutter: This new trendy technology appealed me, of course. I did not find any app in production from big company, in Occident. I tried the Flutter Gallery. It was terrible, it was like "Flash" as I red somewhere else. This was my turn-off, and why I ended with React Native.How Flutter Gallery runs on my Samsung Galaxy S9 (video is at 60fps): https://www.youtube.com/watch?v=gZ_g0slGVuM It is jerky, especially when I push on the top-right menu.Some people experience the same difference of feeling.I made other research and I found that Flutter is actually using its own renderer, Skia (and redraws — emulates — all Material and Cupertino elements). On the opposite, React Native use actual native elements from OS.What I have understoodReact Native is called native because it is using OS API to draw interfaces. It is built with a JavaScript engine, on top of native code (I mean, Java or Objective-C). This JS engine is heavy and slow, but most of the UI do not rely on it to be drawn.Flutter is native because it uses a language compiled to ARM machine code. It also uses its own renderer. This renderer is also compiled to machine code, but still, it is stand-alone and not using OS API. So it directly (?) relies on the CPU or GPU capability of the smartphone, independently of the hardcoded optimizations on which some constructors count.In my opinion, Flutter bet on the last flagships raw performances to make smooths app, leaving old smartphones behind and accelerating planned obsolescence. Even if Flutter apps are slightly smaller than RN apps, is it worth to have a light jerky app on an cheap/old smartphone which does not have enough space? Or is it necessary to reduce app size in flagship which has already hundred of gigabytes memories?BUT Flutter appeals me more and more, especially with its trend. Flutter has now more stars than React Native on GitHub.I like developing with React Native. I am accustomed to this framework and I like the community. However, there seems to be a consensus on how it is better for developers to deal with Flutter, and I red several times "that most real users either won’t notice or won’t care about the animations not being 100% native" (debatable argument, according to me). And also, "beautiful" and "fast" are the keywords for Flutter. But I am still looking on how these "beautiful" and "fast" are pertinent for most of apps.Do I miss something, staying with RN? Is there really a choice between UX and development experience?

April 22, 2020 at 12:51PM by nrsldr
https://ift.tt/2KuXAa9
New post on /r/flutterdev subreddit:

An annoying problem with TabBar and ChangeNotifierProvider
I asked on stackoverflow, if anyone knows what did I do wrong with my code, please elaborate, any help is appreciated!

April 22, 2020 at 01:38PM by JoeJoe_Nguyen
https://ift.tt/2zm745u
New tweet from FlutterDev:

👏Over two million developers have used Flutter in the sixteen months since 1.0.

Next week, we plan to ship the next release using a new versioning model. #FlutterGoodNewsWednesday

💙Stay healthy.

Learn more → https://t.co/7xpGZOAJ0N pic.twitter.com/h6QasGLHcI— Flutter (@FlutterDev) April 22, 2020

April 22, 2020 at 05:14PM
http://twitter.com/FlutterDev/status/1252979139243659264
New post on /r/flutterdev subreddit:

Yaa_Chatty [messaging_app] (source code)
I started from The @LondonAppBrewer 's Complete Flutter Development Bootcamp by @yu_angela, It's the best course for who wants to be a Flutter Developer. I wanted to learn more about Firebase with Flutter so I added more screens and features.I uploaded my project on Github, don't forget to give me a star and report if there is any issue , i will appreciate your feedback 🤗😀check it out 👇👇https://github.com/am1994/YaaChatty

April 22, 2020 at 05:30PM by aminaB-94
https://ift.tt/3btzJDH