Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on Flutter Dev Google group:

Can't keep aspect ratio on items added to Row
Been struggling with this issue for days now, so really grateful for any help. I have created a custom widget, basically just a square image with border. I then have a Row in the top of my app where I want to add 3 or sometimes 5 of my square widgets. To support both cases, I just want to set

May 19, 2019 at 03:43AM by Mattias Månsson
http://bit.ly/2LSxLV4
New post on /r/flutterdev subreddit:

Websocket APIs and Flutter architecture
Hi,I have recently started developing my app in Flutter and I ran into a big problem in regards to state management.For my app I am using a web socket api (Socket IO) and the problem I have is that it forces me to use an architectural pattern that seems very ill fitted for Flutter.With Socket IO I have to register callbacks for global events that I can receive from the server, so for example the code for the event that signal a disconnect from the server needs to be global but in reality I might need to do different things depending on the page I am in in the app.Another issue is that emitting events to the server doesn't use the Future mechanism of Dart. Instead I need to provide a callback and also, if an error occurs when sending the message to the server, the handler for it will have to be global.I would love if I could simply use the Future mechanism for this but sadly I can't so I am curious to hear from other people that use or have used web sockets with Flutter in the past and how they handled this problem. There are a lot of simple options for now however I would like to avoid technical debt by making wrong choices early on.

May 19, 2019 at 03:26AM by BananyaDev
http://bit.ly/2VNgTDR
New post on /r/flutterdev subreddit:

Flutter — Effectively scale UI according to different screen sizes
http://bit.ly/2VNgUHV

May 19, 2019 at 03:05AM by EngineerScientist
http://bit.ly/2HzV6Wl
New post on /r/flutterdev subreddit:

How long did it take you to learn flutter?
And additionally, where do I start?

May 19, 2019 at 06:49AM by hotmailer
http://bit.ly/30tSj9Q
New post on /r/flutterdev subreddit:

Flutter app that displays a list of countries using the Countries GraphQL API
http://bit.ly/2w9sDBe

May 19, 2019 at 10:20AM by MeshackMusundi
http://bit.ly/2QdN1dD
New post on /r/flutterdev subreddit:

Scoped Model, StreamBuilder, RxDart ... Which is the latest?
Ok, I have been digging around Flutter for a bit over the past 2 days and looking to pass my state down the Widget tree. I've seen the Scoped Model, StreamBuilder and RxDart. From what I can figure, the first two implementations are from Google/Dart while the last one is a third party package.Coming from programming with Vue, where there is generally one mainstream way to do things, this is a bit confusing. :) Given that Flutter is rather new most articles are timestamped within the past year. and I only just jumped on it so I haven't been following the trend.I was reading up all I could find on Streams when I discovered ScopedModel and am leaning towards that.Which is your latest accepted or mainstream paradigm for passing state down the Widget tree? Thanks!

May 19, 2019 at 11:25AM by chi11ax
http://bit.ly/2W7OasT
New post on /r/flutterdev subreddit:

FlutterForce — Week 27
http://bit.ly/2VCSVWN

May 19, 2019 at 12:32PM by flutterist
http://bit.ly/30tkINb
New post on Flutter Dev Google group:

How to test platform stuff with unit test
Hi all, I want to test db operation with unit test, I used *sqflite. * How can I test those OPs? BRs

May 19, 2019 at 04:52PM by Leon Wray
http://bit.ly/2YHG3AV
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