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

When should we extend an existing component instead of Stateless/StatefulWidget?
I realize Flutter was built with composition in mind. Nevertheless, I have seen many, many tutorials and examples where the author does something like this:
class CustomButton extends RaisedButton { final VoidCallback onPressed; final Widget child; const CustomButton({@required this.onPressed, this.child}) : super(onPressed: onPressed, child: child); @override Widget build() {} 
I have also seen many arguing that when customizing a widget such as RaisedButton we should instead create our own StatelessWidget and use the original widget as a child. So as a novice, I'm wondering if this is just a case of some people not following best practices or if there are instances where we would want to do one over the other. Does it matter?One thing I'm unsure about is that when composing a new widget that extends from StatelessWidget, we don't make a call to super(), which would seem to mean that we can no longer pass a normal RaisedButton's properties to CustomButtonunless we explicitly mark them in the constructor. Is this a correct observation?

December 11, 2018 at 04:57AM by _HEATH3N_
https://ift.tt/2RLchIl
New post on Flutter Dev Google group:

! No devices available
Hi! I'm haiving some trouble with my phone, why I'd like to run flutter on only a virtual device. I've been working on this for days now with no success. Is it even possible? I'm using android studio, where I have created a new virtual device, but still it says "no device" when I run flutter.

December 11, 2018 at 09:50AM by Battleaxes
https://ift.tt/2SDLttx
New post on Flutter Dev Google group:

Split dart files
I'm used to C++ and having a linker. I'm looking for how to make Android Studio understand multiple .dart files, compile and link them. Can anyone direct me to materials that explain projects with multiple .dart files? Thanks, Mitch

December 11, 2018 at 12:43PM by Mitch Besser
https://ift.tt/2EcUvtz
New post on Flutter Dev Google group:

How to make a new widget appear on the screen?
Hi All, When I click on an icon, how can I make a new widget appear on the screen ? Like it would be possible with a ShowDialog() method ? In my case I would like to show some icons. Should I search the "Overlay" methodology proposed by the flutter framework ? Thx for your help, and do not

December 11, 2018 at 02:04PM by Julien P.
https://ift.tt/2LbZlJ4
New post on /r/flutterdev subreddit:

In App paiement for a car park
Hi, Just starting a project with flutter and I am hitting a big wall. Let's say my app is to manage a car park. When a user parks he chose how long he will stay parked and then he pays. How am I supposed to proceed? Should I use Google pay? If so is there any flutter api to do so or should a build it native and use a platform to connect to it? Or can I use an external payment Api to make the payment?

December 11, 2018 at 01:10PM by kelinox
https://ift.tt/2Pt4DAx
New post on Flutter Dev Google group:

Which architecture should I use for a chat app
Hi guys please I'm in finals, and I want to use flutter for my project , I'm confused which architecture should I use May be bloc or redux or scoped model , the chat app will be almost similar to whatsapp, please I need advice from experts

December 11, 2018 at 02:19PM by ibrahim shehu ibrahim
https://ift.tt/2L8zku5
New post on /r/flutterdev subreddit:

I was thrown into a Flutter project as a junior developer. Here's how it went.
https://ift.tt/2EfXMZe

December 11, 2018 at 03:13PM by jusulamminheimo
https://ift.tt/2B8Fgij
New post on /r/flutterdev subreddit:

Which Java version are you running with Flutter?
I'm going crazy here. Code apparently works on another machine, but doesn't behave the same on my machine in the office.

December 11, 2018 at 01:50PM by somenick
https://ift.tt/2C5RhGP
New post on /r/flutterdev subreddit:

Row example from flutter website not running. Help.
I am learning flutter layout and I copied code from flutter website, row example:import 'package:flutter/material.dart';
void main() {
runApp(
Row(
children: <Widget>[
Expanded(
child: Text('Deliver features faster', textAlign: TextAlign.center, textDirection: TextDirection.ltr),
),
Expanded(
child: Text('Craft beautiful UIs', textAlign: TextAlign.center, textDirection: TextDirection.ltr),
),
Expanded(
child: FittedBox(
fit: BoxFit.contain, // otherwise the logo will be tiny
child: const FlutterLogo(),
),
),
],
)
);
}But it is not working at all. Giving errors

December 11, 2018 at 05:07PM by one_lame_programmer
https://ift.tt/2EiJ4AP
New post on /r/flutterdev subreddit:

User auth/login flow for different user types
Hi Everyone!​I am make Flutter app with Firebase backend to help people connect with DIY experts.Normal users can sign up using social auth.But need to verify experts are real experts. So when they apply we interview them and if they pass we sign them up. My idea is to enable email/password auth for these expert users. This way we can add them as user via Firebase console with email/password. Then update the database via console with the user details. In app will have separate login flow for experts - separate button for ‘experts’.I am not experience in develop app for two such different user types. I have not see any open source implement in Flutter. Any thought on my idea or any advice on better way?​Thanks!

December 11, 2018 at 06:30PM by Flutter_Dev
https://ift.tt/2Qod2KK
New post on /r/flutterdev subreddit:

I interviewed my coworkers (a.o. our Technology Manager) about Flutter 1.0, this is their opinion about the impact and future of Flutter
https://ift.tt/2RTsg7e

December 11, 2018 at 06:12PM by Ljosmyndun
https://ift.tt/2SEb3yw
New post on /r/flutterdev subreddit:

An open source community-curated list of Flutter conferences around the world
https://ift.tt/2EeH2S8

December 11, 2018 at 07:08PM by mobilehackers
https://ift.tt/2RMb7w1
New post on /r/flutterdev subreddit:

What's currently the best option for BLE?
Hello I am trying to essentially create a UART service with Flutter, are there any available libraries for this?​In my own research I have found these, that both tell me not to trust themhttps://github.com/itavero/flutter-ble-uarthttps://github.com/Polidea/FlutterBleLib​and thishttps://github.com/pauldemarco/flutter_bluewhich does not directly support what I am trying to do.

December 11, 2018 at 07:32PM by Littlepush
https://ift.tt/2GdDvGd
New post on Flutter Dev Google group:

Is it possible to have widgets animations happened at the same time during the hero animation?
I have two pages. There is Hero animation when transition from page #1 to page #2. At the same time, I like to have a text animated slide left and fade out when page #1 goes away. Also, have one text slide and fade in from right edge when page #2 is begin to show. Wondering if these three

December 11, 2018 at 07:55PM by Shih-Chang Hsiung
https://ift.tt/2C4Podr
New post on /r/flutterdev subreddit:

Has Flutter/Dart any advantages over Swift if I target only iOS?


December 11, 2018 at 07:50PM by ta_u
https://ift.tt/2PxOxp8