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

Wrapping text with a dash
Hi, Is there anyway to automatically wrap text with a dash? (-)Example:Not wrapped: https://imgur.com/a/H1PWj1MWrapped with dash: https://imgur.com/a/TCm8RFF

December 25, 2019 at 10:06AM by Heknon
https://ift.tt/2Zlx3Tu
New post on /r/flutterdev subreddit:

Access to infra-red sensor on flutter?
Is it possible to make api calls to infra-red sensors on android / iOS devices in general? and using flutter?

December 25, 2019 at 03:39PM by BarbDart
https://ift.tt/2sYrlLc
New post on Flutter Dev Google group:

GSoC and Flutter
Are there any open source organizations that use to built their mobile apps using flutter and listed in GSoC?

December 25, 2019 at 03:39PM by Viraj Danushka
https://ift.tt/35YRmc2
New post on /r/flutterdev subreddit:

Resolve local hostname
Hello all, I've been making a simple mqtt application for my raspberry pi running node-red and it's going pretty well.I have two mqtt brokers running locally and a remote broker. I can access the remote broker just fine but when I try to connect to the local mosquito broker running on pi through its hostname (raspberrypi.local) I'm getting error flutter os error: no address associated withhostname, errno = 7I've looked into this error and found out I may have to use something like mDns package. I'm not sure where to head next.The raspberry pi will be connected to existing WiFi and it may have different IPs every time it reconnects.

December 25, 2019 at 05:39PM by Deepu_
https://ift.tt/379o22G
New post on /r/flutterdev subreddit:

Getting input without textbox
Is there a way to get text input without actually having a text input with a listener?Basically I am using some android devices with barcode scanners. When you scan a barcode the numbers are sent through the device as typing. I need to grab that text and deal with it.My current hack:1) have text input on the page2) autofocus the text input so typing goes to it3) hide the keyboard4) capturing typing to the text input5) do a big song and dance to let the user type in the text input if they really want toI would rather skip steps 2 and 3 and 5... but to do it, I need to capture typing without an input selected

December 25, 2019 at 07:53PM by TunaBoo
https://ift.tt/2sjQ7FB
New post on /r/flutterdev subreddit:

ancestorInheritedElementForWidgetOfExactType is deprecated
After v1.12.1 ancestorInheritedElementForWidgetOfExactType is deprecated. We should use getElementForInheritedWidgetOfExactType now. How do I edit this BlocProvider?
import 'package:flutter/material.dart'; Type _typeOf<T>() => T; abstract class BlocBase { void dispose(); } class BlocProvider<T extends BlocBase> extends StatefulWidget { BlocProvider({ Key key, @required this.child, @required this.bloc, }) : super(key: key); final Widget child; final T bloc; @override _BlocProviderState<T> createState() => _BlocProviderState<T>(); static T of<T extends BlocBase>(BuildContext context) { final type = _typeOf<_BlocProviderInherited<T>>(); _BlocProviderInherited<T> provider = context.ancestorInheritedElementForWidgetOfExactType(type)?.widget; return provider?.bloc; } } class _BlocProviderState<T extends BlocBase> extends State<BlocProvider<T>> { @override void dispose() { widget.bloc?.dispose(); super.dispose(); } @override Widget build(BuildContext context) { return new _BlocProviderInherited<T>( bloc: widget.bloc, child: widget.child, ); } } class _BlocProviderInherited<T> extends InheritedWidget { _BlocProviderInherited({ Key key, @required Widget child, @required this.bloc, }) : super(key: key, child: child); final T bloc; @override bool updateShouldNotify(_BlocProviderInherited oldWidget) => false; } 


December 26, 2019 at 12:00AM by poq106
https://ift.tt/3635i4Q
New post on /r/flutterdev subreddit:

ZoomableTiltView is simple widget to add some juiciness to your app.
https://ift.tt/2SlMqtI

December 25, 2019 at 11:17PM by Elixane
https://ift.tt/2PUsDzO
New post on /r/flutterdev subreddit:

Are there an alternative to DynamicData in Flutter?
DynamicData is a Reactive collections based on Rx.NetDynamicData is really helpful when you need list filtering, grouping, etc without changing the source list. The closest I found in Flutter is MobX ObservableList.If you guys know the alternatives in Flutter (or on the other frontend framework for that matter) that would really much appreciatedThank you

December 26, 2019 at 04:15AM by 5yunus2efendi
https://ift.tt/2PX1Y5u
New post on Flutter Dev Google group:

Please help me with question posted on stackoverflow
Below is the link where I have posted my question https://ift.tt/2tU6lG5

December 26, 2019 at 07:34AM by mahantappa b k
https://ift.tt/39c57WL
New post on /r/flutterdev subreddit:

Android X incompatibility
Android X incompatibility error. I get this error quite often nowadays whenever i compile. I have set the android x variables specified in the gradle.properties file to true , no issue there. Any tips as to how to avoid it? I simply have to migrate my project to a new file in order to remove it rn and would like an alternative as this is tiresome

December 26, 2019 at 08:09AM by Grey-Winds
https://ift.tt/2ZuJc8H
New post on /r/flutterdev subreddit:

I wonder why Flutter team not starting a backend framework?
I know there is a lot of dart framework but none of them is supported by Google so they are not popular in the communityI wonder if we collect enough signatures and send it to Flutter team maybe they could consider making a backend framework for Flutter developersYou can sign here
https://www.ipetitions.com/petition/google-dart-backend-framework

December 26, 2019 at 08:05AM by amrenew
https://ift.tt/37agcFM
New post on /r/flutterdev subreddit:

Flutter cube - a widget for render the 3d obj files
https://ift.tt/2t4FxSM

December 26, 2019 at 07:45AM by ZebiaoHu
https://ift.tt/2QoN9Yi
New post on Flutter Dev Google group:

On the related problems of multidexenabled
12-26 15:53:48.297 1673-1736/? E/InputLog: WindowManager : startDockOrHome ok 12-26 15:53:49.987 16798-16798/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.jokui.dali, PID: 16798 java.lang.RuntimeException: Unable to get provider io.flutter.plugins.imagepicker.ImagePickerFileProvi

December 26, 2019 at 08:55AM by 饶鸿
https://ift.tt/2EUnOAc
New post on /r/flutterdev subreddit:

Ending 2019 by celebrating 10k downloads of my app "Flutter Widget Guide" on the Play Store. 🎉
I was never going to start this project thinking, who would ever download it! But the response has been overwhelming. If you're deliberating about a side hustle, then just go for it. You never know what you will learn and gain in the process. I am glad to have created a community of flutter developers via this app on my Slack Channel.Happy to be giving back to the community via this app and can't wait to start brainstorming my next project. 💭Link to the app - https://play.google.com/store/apps/details?id=com.annsh.flutterwidgetguide&hl=enDo share your side projects below in the comments section. Would love to try them out :)Cheers everyone and happy holidays :)

December 26, 2019 at 09:06AM by annshsingh
https://ift.tt/2QjBPwz
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