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

Why is TextEditingController always used in Stateful widgets?
While reading the flutter documentation, I came across this article that shows how to handle changes to a text field. What I found interesting is that in this and all other articles regarding TextEditingController, the TextEditingController is always used in a Stateful widget regardless of whether that widget needs to be stateful or not.What is the reason that TextEditingController is always used with Stateful widgets?

January 08, 2020 at 08:32PM by albaniantech
https://ift.tt/37MYhVZ
New post on /r/flutterdev subreddit:

With ffi being out for a bit, has there been any proper yaml support (encode & decode) for flutter/dart?
No text found

January 08, 2020 at 10:00PM by SaltTM
https://ift.tt/2QB68QQ
New post on /r/flutterdev subreddit:

Toggled button with neomorphic design
Hi all,​Just discovered this new design and decided to give it a shot,​I managed to create a round widget as a button, on press it goes down,https://imgur.com/gallery/3xt7WY9​I used a linear gradient to create the effect while down and boxShadows while up. However the LinearGradient doesn't create the exact same effect as the shadows.https://github.com/Germain-L/flutter_neumorphism/blob/master/lib/widgets/round_button.dartHere's the code for it.​The issue with this implementation is that the linear gradient creates a curved effect when the button should be flat. What are your thoughts on this design?

January 08, 2020 at 09:40PM by Week0_
https://ift.tt/36A7gtr
New post on /r/flutterdev subreddit:

Is there any full open source apps using provider?
I'm trying to find a full open source project using the provider library for reference but I have a hard time finding one. Does anyone of you know such a project?

January 08, 2020 at 09:32PM by KoningsGap
https://ift.tt/2QXWg2z
New post on Flutter Dev Google group:

Handling incoming intents in a WebView App
Hi, Here's what I'm trying to do... I want to have an app that hosts a WebView widget. When the user opens an email containing HTML attachment and clicks on the attachment, I want my app to launch and render the HTML contained in the attachment. I started out by following the sample provided

January 08, 2020 at 11:27PM by Artem Portnoy
https://ift.tt/2NnzoJ1
New post on /r/flutterdev subreddit:

Struggling with animation in Flutter. Help!
Hey all!My team recently contracted a team to build us an app and the developers have built it in Flutter. We'd like polish the app by animating a few elements but this seems to be a sticking point. Our friend is a brilliant animator/illustrator but primarily only works in After Effects and since he's doing this for us as a favour its a bit of a tall order to ask him to learn a whole new software package, Flare, to do the animations.So my next port of call has been Upwork and Fiverr but there doesn't seem to be a whole lot of designers on there who are familiar with Flare. It's also a bit difficult to sift through search results for 'flare' on Dribbble and Behance since its such a common word.Can anyone eitherPoint me in the right direction of where the flare animators are hiding (website, subreddit, etc) orTell me how we can best reliably our After Effects animator? We've looked at using Lottie + Body Movin but unsure how reliable this is.Super grateful for any help!

January 08, 2020 at 11:10PM by SuccessNVodka
https://ift.tt/2N94d3U
New post on /r/flutterdev subreddit:

Is anyone using Ryzen here?
I'll be upgrading my PC soon. Thinking of going for Ryzen 7 2700x, now wondering if it would play nice with the Android emulator. My worry is that because the emulator depends on Intel HAXM, so if I go for Ryzen, the emulator would be too slow to use.Is anyone using Ryzen + Windows, how is the emulator's performance?Just for the record, I'm not gonna change to Linux. My work requires .NET's WCF, so I'm stuck with Windows.

January 09, 2020 at 12:33AM by redfournine
https://ift.tt/36FGsbm
New post on /r/flutterdev subreddit:

Function returning Widget vs instantiating custom Widget
Say I'm refactoring the boilerplate "counter" app. And I extract the following body attribute into a function:
class _MyHomePageState extends State<MyHomePage> { int _counter = 0; void _incrementCounter() { setState(() { _counter++; }); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text(widget.title)), body: _bodyContent(context), floatingActionButton: _mainButton() ); } Center _bodyContent(BuildContext context) { return Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Text('You have pushed the button this many times:'), Text('$_counter', style: Theme.of(context).textTheme.display1), ], ), ); } 
Why / when would I do that, rather than, say, create my own stateless Widget, a la:
// ... body: BodyWidget(_counter), // ... class BodyWidget extends StatelessWidget { final int counterValue; BodyWidget({this.counterValue}); @override Widget build(BuildContext context) { return Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Text('You have pushed the button this many times:'), Text('$counterValue', style: Theme.of(context).textTheme.display1), ], ), ); } } 


January 09, 2020 at 06:01AM by yjblow
https://ift.tt/2N5PYN1
New post on /r/flutterdev subreddit:

Is it necessary to know how to know native development (swift, kotlin, etc) to be a competitive candidate for a team?
I recently spoke with someone who’s been working in the industry for a while and he said it was important for me to learn native development even though I already have a good handle on Flutter.What do you guys think?

January 09, 2020 at 05:03AM by hungry_for_data
https://ift.tt/2FtYfq6
New post on /r/flutterdev subreddit:

Need help in adding PayPal plugin in flutter
Hi everyone,I am a beginner in flutter app development.Knows just very basic of it, learning reading other's code over GitHub and stack overflow.I am currently working on an app with requirement of PayPal integration, currently using https://github.com/DeligenceTechnologies/Braintree-Payment-Gateway-for-Flutter plugin for that. Up until this is working fine, the only issue i am facing is when the webview opens and the PayPal page loads with a button showing "Proceed with sandbox purchase". When i click that link instead of redirecting back to the app screen the app crashes and the device connection is lost.One more thing i have noticed is that the log shows that the "payment is successful".You can check my flutter doctor vI have been debugging this from the past week but having no progress, any input will be appreciable.Thanks and Regards.

January 09, 2020 at 07:00AM by gopalindians
https://ift.tt/2s5WYlS
New post on Flutter Dev Google group:

Issue With Running Flutter App
Initially, the flutter app was running fine. After certain changes to code, the build always fails even though appears correct as code passes travis-ci and codemagic builds. I have reverted the code to its previous state, yet no changes. After shipping to github and a codemagic build, the

January 09, 2020 at 07:24AM by Abada Samuel
https://ift.tt/37MQM1f
New post on /r/flutterdev subreddit:

What are some guidelines/tips to reduce read operations in Firestore ?
During development I've noticed database reads are quite high particularly for apps that rely on user generated content such as Todo app. What guidelines should a developer keep in mind to reduce read operations and in turn database cost?

January 09, 2020 at 08:45AM by BlueBoxxx
https://ift.tt/2Qzhvsz
New post on /r/flutterdev subreddit:

Flutter Design Patterns: An overview of the Command design pattern and its implementation in Dart and Flutter
https://ift.tt/2tEJbTQ

January 09, 2020 at 08:32AM by mkobuolys
https://ift.tt/304YJMX
New post on Flutter Dev Google group:

Flutter command hang
I tried to run android application and the command runs for forever, it never ends same as flutter doctor i tried with flutter doctor -v and the output is [ +54 ms] executing: [/Users/appleapple/Desktop/flutternew/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +95 ms] Exit

January 09, 2020 at 12:00PM by Aman jain
https://ift.tt/303iQLn
New post on Flutter Dev Google group:

In App purchase not working on IOS
In the sandbox testing environment, the in-app purchase didn't cancel at all. always returned past purchases once purchased. In the production environment purchase update stream not listening while purchase happened and could not set successful purchases for the users.

January 09, 2020 at 12:10PM by Riswan Saheed
https://ift.tt/2FEs47b
New post on /r/flutterdev subreddit:

My very first Flutter UI package. carousel_select_widget
https://ift.tt/304U9hv

January 09, 2020 at 12:09PM by patelprash
https://ift.tt/2QTgA4Y
New post on /r/flutterdev subreddit:

On-device object recognition and image analysis/processing
Hi guys, I want to ask what are the possible ways to implement this?Basically I want to use the phone's camera to capture two images and recognize from those images if they contain a specific object. The images will be captured in a controlled environment (i.e. specific distance, lighting, etc.) There is also a comparison between the images, and identify if the captured objects are the same or not.What I have in mind is to use TensorFlow Lite and train a model for object detection, and then use this package tflite. And use OpenCV for the comparison, but I don't think there is a complete implementation of this in Flutter.

January 09, 2020 at 01:55PM by contrix09
https://ift.tt/2utmAKd