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

Creating Widget as a local variable?
I myself prefer to separate everything into its own StatelessWidget. However, I came across some code that initialize the widget as local variables and then use it. While I do not like it, but I am struggling to find a reason of why we shouldn't do it.``` class MainWidget extends StatelessWidget { final _firstText = const Text('first text'); final _secondText = const Text('second text');@override Widget build(BuildContext context) { return Column( children: <Widget>[ _firstText, _secondText, ], ); } } vs class MainWidget extends StatelessWidget { @override Widget build(BuildContext context) { return Column( children: <Widget>[ _FirstText(), _SecondText(), ], ); } }class _FirstText extends StatelessWidget { @override Widget build(BuildContext context) { return const Text('first text'); } }class _SecondText extends StatelessWidget { @override Widget build(BuildContext context) { return const Text('second text'); } } ``` Could any one give me a reason why we should do one to the other?

March 27, 2020 at 04:23PM by astral_dragon12
https://ift.tt/2QQFdjM
New tweet from FlutterDev:

DartPad offers some of the same refactoring features as Flutter's plugins for Android Studio and VS Code.

💡Check out this example and see how to center a widget with just a few keystrokes! #FlutterFriday

Example here &rarr; https://t.co/WBg7Qakh71 pic.twitter.com/KQIhZxzI0E— Flutter (@FlutterDev) March 27, 2020

March 27, 2020 at 05:34PM
http://twitter.com/FlutterDev/status/1243577092047921152
New post on Flutter Dev Google group:

Android toolchain - develop for Android devices
[image: Untitled.png]

March 27, 2020 at 09:57PM by Mohaned Omar
https://ift.tt/2WO0nms
New post on /r/flutterdev subreddit:

<b>&#128014; Recap: speeding up your Flutter development process, Flutter Europe and more...</b>
Hey everyone &#128075;We hope you're all staying safe during this crazy time.As you may have noticed, we're a little bit different than the typical "newsletter" in that we try to pull out interesting themes from the latest news and cover those specifically. If there is a particular topic you'd like to see us cover in the future, let us know in the comments.Don't forget you can always <a href="https://flutterigniter.com/snacks/">get these recaps delivered straight to your inbox</a>.____Mobile DevOps to the rescue &#128588;Setting up continuous delivery pipelines, publishing processes, and automated testing aren't nearly as sexy as actually building apps, but getting something in place from the start will save you tons of pain in the long run. Tools like <a href="https://fastlane.tools/">Fastlane</a> and <a href="https://codemagic.io/start/">Codemagic</a> are free-ish and are a great place to get started.<strong>The Flutter Testing Cookbook</strong>...want to know how to test a route? How about opening a drawer in your tests? This <a href="https://github.com/gadfly361/flutter_test_cookbook/blob/master/README.md">community-driven cookbook</a> is a great resource as you start writing tests.<strong>Screenshot testing with the Golden Toolkit</strong>...eBay Motors, an earlier adopter of Flutter, just released a new package called <a href="https://pub.dev/packages/golden_toolkit">golden_toolkit</a> that allows you to automatically verify that your app looks the way it's supposed to using visual regression testing. <a href="https://tech.ebayinc.com/engineering/ebay-motors-screenshot-testing-with-flutter/">Read the blog post</a>.<strong>Flavors in Flutter</strong>...need to easily build different configurations of your app for local development, testing and production? With Flavors + Fastlane, <a href="https://dev.to/orestesgaolin/flavors-in-flutter-with-fastlane-yet-another-guide-1799">it's easy</a>.<strong>Continuous delivery with Fastlane</strong>...admittedly a dry read, but this <a href="https://flutter.dev/docs/deployment/cd">official doc</a> from the Flutter team gives you step-by-step instructions on setting up Fastlane for continuous delivery of your Flutter app.<strong>Deploy your app with Firebase App Distribution and Fastlane</strong>...alright, you have a working app, now you need to get it out to your beta testers without having to publish it to an app store. Enter <a href="https://firebase.google.com/docs/app-distribution">Firebase App Distribution</a>. Using Fastlane, you can build and deploy your app to Firebase App Distribution <a href="https://blog.codemagic.io/deploying-flutter-app-to-firebase-app-distribution-using-fastlane/">with a single command</a>. ____Flutter Europe Playlist &#127466;&#127482;Couldn't make Flutter Europe and have some time to spare? Presentations from some of the biggest names in the Flutter-verse are now available on Youtube.<a href="https://www.youtube.com/watch?v=BulIREvHBWg">Everything you need to know about Provider</a> by Rémi Rousselet<a href="https://www.youtube.com/watch?v=G30K5wm7j_M">Lessons learned building the Invoice Ninja Flutter app</a> by Hillel Coren<a href="https://www.youtube.com/watch?v=vl0CbG_-Ny8">Testing Flutter Applications</a> by Rafa&#322; &#346;lósarz...full playlist <a href="https://www.youtube.com/channel/UCOoJkGYV00nr3EpZOUeuN1Q">here</a>.____Elsewhere in the Flutterverse...&#129680;<strong>Flutter &#128153; Rust</strong> ...want to call Rust code from your Flutter app, but a bit confused? Check out this <a href="https://github.com/brickpop/flutter-rust-ffi#readme">super-clean Flutter + Rust plugin template</a> that greatly simplifies the process.<strong>A simpler way to use the Flutter Camera plugin</strong>...if you're finding the <a href="https://pub.dev/packages/camera">camera</a> plugin a little intimidating, check out <a hre…
New post on /r/flutterdev subreddit:

FSuper: Build complex views quickly and comfortably. Supports rich text, rounded corners, borders, pictures, small red dots, and set up to two sub-components at the same time, and control their relative positions. (Alibaba)
https://ift.tt/2UnvLGz

March 27, 2020 at 10:55PM by Elixane
https://ift.tt/2QTHdb4
New post on /r/flutterdev subreddit:

Some say Dart is bad. I like it for one big reason, language-level meta-programming. Make your own language features!
I feel like I haven't seen this topic discussed before, so I'm discussing it now. I see people who say they dislike Dart due to how verbose or Java-like it is; that it doesn't have the latest features likealgebraic data types / sealed classes / tagged enumsexhaustive pattern matchingnon-nullable types (before Dart added them)higher-kinded typeshooks (like in React)and so on. However, what Dart has that is missing in many languages, even the most popular ones, is reflection, either at compile or run-time. Basically, the language can introspect its source code and can create new classes or functions. What this means practically is that you can create any language-level features that you think are missing from other languages. Sure, it's a little clunky with compiled classes and .g.dart files, and sure it may not be as powerful as Lisp or Haskell, but most people aren't even coding in languages with such features. Javascript has this somewhat with Babel plugins but you won't see most people using them to a large extent.So if you want the features above, some of them have their own packages, like freezed (ADTs, pattern matching), flutter-hooks, dartz (Haskell-like functional programming with higher-kinded types, monads, immutable data structures), and so on. Obviously if these were all language-level features rather than community packages, it would be better, but sometimes the community can do it better. As well, a language can't have every feature under the sun as it would become too bloated, like C++, so at least this is a good alternative.This flexibility, along with the integrated package manager, JIT and AOT compilation to many different platforms like x86, ARM and even Javascript, and the rest of the developer experience is why I personally like Dart.

March 28, 2020 at 12:39AM by satvikpendem
https://ift.tt/2QPaVxV
New post on Flutter Dev Google group:

please how to print to pos printer!!!!!!!!!!!!!!!!
please learn me how to print to pos printer!!!!!!!!!!!!!!!!!!!!!!!!!!!

March 28, 2020 at 01:21AM by teshk ss
https://ift.tt/2JmRrwc
New post on Flutter Dev Google group:

Android emulator(Nexus 6 ) option is missing from Select devices only Chrome(Web) and Web Server options are apperar.
After updating flutter for web development my android emulator (Nexus 6 ) is missing from Select Device Option. Only two option shows currently 1. Chrome (Web) and 2. Web Server (Web). *I used following three commands :* flutter channel beta flutter upgrade flutter config --enable-web "I

March 28, 2020 at 01:32AM by Parth Patel
https://ift.tt/3dE2mjk
New post on /r/flutterdev subreddit:

Function Widgets or Stateless/ful Widgets?
Is there anything wrong with this practice? We all know the boilerplate that comes with extending StatelessWidget.Lately I've been making platonic Widgets with functions using Builder. Is there anything wrong with this practice?
// Outside a StatelessWidget Widget myWidget(BuildContext context, String s) { return Builder(builder: (context) { return Text(s); }); } // ... in some StatelessWidget @override Widget build(BuildContext context) { return myWidget(context, "Hello World"); } 
It seems too good to be true. There has to be some incurred costs to writing Function Widgets. What do you think?

March 28, 2020 at 05:45AM by zealothree
https://ift.tt/2Jm5mTy
New post on /r/flutterdev subreddit:

SweetSheet v0.2.0 (Full customisation)
The version 0.2.0 of sweetsheet is out with full color and text customisation capabilities. Go check it out.sweetsheet package

March 28, 2020 at 08:52AM by CorneilleEdi
https://ift.tt/2wxbRjz
New post on /r/flutterdev subreddit:

so uh should i learn dart before jumping into flutter
so i came across on this language and since people are saying its easy to pick up i saw it by myself and hell 24 lines of code for hello world ? like how is this "easy?" i know lines doesn't matter but whatever my point is is dart going to make this prcess easier or nope?also i wanna use flutter for desktop not mobile devThanks

March 28, 2020 at 12:47PM by Haitamdragon
https://ift.tt/2WPVJ7e
New post on /r/flutterdev subreddit:

Coronavirus tracker application and news updates built with flutter
https://ift.tt/3byea4B

March 28, 2020 at 01:46PM by Mastersamxyz
https://ift.tt/2vUGUFw
New post on /r/flutterdev subreddit:

Does anyone implement any design pattern in flutter ?
And wonder does anyone implement Sushi design pattern in flutter ?

March 28, 2020 at 01:38PM by pspatel602
https://ift.tt/2JmGP0E
New post on /r/flutterdev subreddit:

Here we go again
/r/Flutter/comments/fqhup0/will_flutterdart_survive_long/

March 28, 2020 at 02:44PM by ---jane---
https://ift.tt/2UFKewJ
New post on /r/flutterdev subreddit:

Alternative ad network
Is there any alternative ad network that supports flutter? I am having an annoying account problem with Admob and am not able to use it unfortunately, which is why I am searching for alternatives.

March 28, 2020 at 02:57PM by lvinci
https://ift.tt/2QSK9V9
New post on /r/flutterdev subreddit:

(HELP) How to constantly find a Modal Bottom Sheet's y position?
I have a showModalBottomSheet widget popup and I want to find it's position constantly so I can use this information to animate the border-radius.I don't think this is the best way to do this. It seems I can do this with the animation controller for the bottom sheet if I can get the value for that but I'm not sure how to do that either.I have tried finding the position using a RenderBox but it seems it can only be called once not with every frame.​I'm a beginner with Flutter and Dart so I apologize if this is trivial lol

March 28, 2020 at 03:32PM by sk8tyger
https://ift.tt/3dGZy51