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

Does Flutter support Android TV
Hi, is it good idea to start project for Android TV with flutter? Or is it too fresh for Android TV?

May 19, 2019 at 07:13PM by Aleksandr25
http://bit.ly/2LQHKKx
New post on Flutter Dev Google group:

Partial Border
Hi developers! How can I draw a Container's border with a given percentage? Something like this: [image: partial_border.png] Thank you all!

May 19, 2019 at 08:36PM by Federico Bologni
http://bit.ly/2LW46KN
New post on Flutter Dev Google group:

Adding border to ClipRRect
Have posted a similar question, but I think it's better if I separate this issue as its own question. I wonder if it's possible to add a border to a cliprect (ClipRRect). If I add it as a decoration on the Container around it, I get a small white gap between the border and the clipped image. If I

May 19, 2019 at 09:42PM by Mattias Månsson
http://bit.ly/2LSEXRf
New post on Flutter Dev Google group:

How to use canvas.drawImage with a image from pubspec.yaml?
Hi All, I'm really struggling with the canvas.drawImage. How do I use use an image from my project directory that is added in pubspec.yaml?

May 19, 2019 at 11:16PM by Linton Achmad
http://bit.ly/30yD7rM
New post on /r/flutterdev subreddit:

TouchableOpacity for those coming from React Native
One subtle way of handling touchable items that aren't buttons was TouchableOpacity in React Native.Flutter doesn't seem to have anything similar built in. This is what I've been using. If you're not using hooks, you can do the same with setState​``` import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart';class TouchableOpacity extends HookWidget { final Widget child; final Function onTap; TouchableOpacity({this.child, this.onTap}) : super(); @override Widget build(BuildContext context) { final isPressed = useState<bool>(false); return GestureDetector( onTapDown: () { isPressed.value = true; }, onTapUp: () { isPressed.value = false; }, onTapCancel: () { isPressed.value = false; }, onTap: onTap, child: AnimatedOpacity( opacity: isPressed.value ? 0.3 : 1, duration: Duration(milliseconds: 75), curve: Curves.easeIn, child: child, ), ); } } ```

May 19, 2019 at 11:37PM by puglife420blazeit
http://bit.ly/2JQniqQ
New post on /r/flutterdev subreddit:

Custom In-app notification
Hi All,I am wondering how it would be possible to trigger a custom notification that pops in from the side of the screen, waits for a certain amount of time before disappearing again.I have created a notification widget that indeed does do a one-shot slide in (all hardcoded messages) but I am struggling to understand how I would go about 'triggering' this notification from a service (I'm using BLoC pattern).Any help would be greatly appreciated, thanks!

May 20, 2019 at 12:25AM by Gamzie1
http://bit.ly/2W5UMrN
New post on /r/flutterdev subreddit:

App with lots of text.
I’m thinking of building an app with lots of text, but I’m afraid it will get boring to read (which is essential for the app to work).Does anyone have any examples of apps that have lots of text, but makes it “fun” to read?Cheers

May 20, 2019 at 03:35AM by Waentastic
http://bit.ly/2JtfHil
New post on /r/flutterdev subreddit:

Flutter Image Processing
Any tutorials on this? I’m specifically trying to learn how to edit the RGB values of an image, pixel by pixel. I know it’s possible in iOS with something similar to image core and making custom color filters but idk if it exists in flutter yet. Thanks

May 20, 2019 at 06:18AM by codininja1337
http://bit.ly/2HrQCC4
New post on Flutter Dev Google group:

Support in-app updates
During the Developer Keynote of Google I/O 2019, one of the exciting new features is Support for in-app Updates for Android Apps. By any chance is it available for Flutter as well? Or will there be any future announcements regarding this form the Flutter Team? ------------------------------

May 20, 2019 at 10:04AM by Anirudh Jwala
http://bit.ly/2JsvNc9
New post on Flutter Dev Google group:

'Future' is not a subtype of type 'bool'
Hi Friends, when i was try to take response from url and also need to return bool value baled on that response statusCode. But i was strucked with this error. 'Future' is not a subtype of type 'bool' If i remove async the not able to get response, Can any one

May 20, 2019 at 12:45PM by Rajkumar Garikapati
http://bit.ly/2WZs1u4
New post on /r/flutterdev subreddit:

Building a Visual Scripter with widgets in Flutter - Advice Wanted
Hi devs,This is Dane from FilledStacks, Seeing that there's some good devs on here I'd like to reach out for some advice. I'm undertaking a new part of one of my products that will help in faster development of mobile apps. I need to create a structure similar to the unreal blueprint functionality. If you haven't used that then think of placing nodes on a canvas and connecting certain points to other nodes. There are two ways that I know how to create this in Flutter at the moment.​Do this manually (the long way) by drawing everything using a custom painter on a canvas and wrapping my painters to create my own library of "widgets" to re-use all over my canvas, but I'm hoping there's a less time consuming way and I'm just missing it from the docs.Use a fixed grid system of blocks with the DraggableWidgets as the base of all items. I don't want to do this even though it'll be faster. Some things I can see as a problem is zooming out (visually) for larger node trees, selecting multiple widgets using a drag select option.​Ideally I would like these items to be actual UI widgets, and not custom painted using the painter only. The Nodes I'd like to be widgets as well as the text but the connecting lines I'll draw using the painter. I would ideally like to build this in Flutter because I want a Desktop version as well as a web version of the app. I'm currently in VueJs with the MVP and would like to take it to a production level so Flutter would be my first choice since I'm building all my mobile apps in it now. I'll build it for the iPad as well so it's a win-win-win on my side if I can get something like this in Flutter.​Please let me know what you think I'd be very appreciative of all feedback. Maybe it's too early to build something like this but I'll start with iPAD only and then when web and desktop is ready I should be able to port it "easily".

May 20, 2019 at 03:14PM by Filledstacks
http://bit.ly/2QcpVnP
New post on Flutter Dev Google group:

Flutter current location error
I am using flutter map and geolocator package to get current location and display in map but I am getting error as below The getter 'latitude' was called on null. Receiver: null Tried calling: latitude I have gone through this issue but haven't helped http://bit.ly/2LWAugx

May 20, 2019 at 05:31PM by mahantappa b k
http://bit.ly/2WhZh2n
New post on /r/flutterdev subreddit:

[Discussion] Programmatically navigate with Navigator.pushNamed(), how?
All the tutorial available for navigation is wrapped within Button's action. But how can I programmatically navigate with Navigator.pushNamed()?
class _AppState extends State<App> { @override Widget build(BuildContext context) { switch (state) { case 'error': Navigator.pushNamed(context, "/loading"); break; default: Navigator.pushNamed(context, "/home"); break; } return _loadingWidget(); } Widget _loadingWidget() { return Scaffold( body: Container( alignment: Alignment.center, child: CircularProgressIndicator(), ), ); } } 
Tested with the code above but failed, but workable if wrapped inside button's action

May 20, 2019 at 05:04PM by piscessky15
http://bit.ly/2VD1DV0
New post on /r/flutterdev subreddit:

A new way for handling internationalization in Flutter
Just write a dart plugin - gen_lang and share to Flutter community.gen_lang is a dart library for internationalization. Extracts messages to generate dart files required by Intl.Now, three steps for internationalization(1) Preparing Json files > (2) Run gen_lang > (3) Use itEnjoy it.

May 20, 2019 at 06:17PM by ycy101
http://bit.ly/2VN3sUm
New post on /r/flutterdev subreddit:

I published my first (open source) app on Google Play
http://bit.ly/2Wf8Hvs

May 20, 2019 at 07:18PM by veetaw_
http://bit.ly/2VC1DVp
New tweet from FlutterDev:

At #io19, @DomesticMouse and @redbrogdon's dedicated their talk to building for iOS with Flutter 📲

Check it out to learn how to build interfaces iOS users will love with Flutter's Cupertino package!

Watch here &rarr; https://t.co/4RsYtTVvvX pic.twitter.com/F6ehwodSgr— Flutter (@FlutterDev) May 20, 2019

May 20, 2019 at 08:29PM
http://twitter.com/FlutterDev/status/1130540947312451584
New tweet from FlutterDev:

Dart = Flutter’s secret sauce = careful blend of runtimes, compilers, libraries, and language features 🍵@kevmoo and @munificentbob show how Dart helps developers build fast, high-fidelity applications that run across multiple platforms.

Watch here &rarr; https://t.co/QNOiITy3EG pic.twitter.com/WZxO7lj6Ej— Flutter (@FlutterDev) May 20, 2019

May 20, 2019 at 09:22PM
http://twitter.com/FlutterDev/status/1130554285274615816