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

Open source word game - Bnoggles
An open source project, my first Flutter project. My goal is to make a game based on the Boggle game that is free and has no ads. Looking for feedback; mostly about the code, the backlog is already full with feature requests :)

December 13, 2018 at 09:26PM by bennorichters
https://ift.tt/2SN8Y3h
New post on Flutter Dev Google group:

Detect widget visibility?
I have a stateful widget that displays incoming data from a stream. I subscribe in initState() and close in dispose() as usual, and all works fine. When the widget is off-screen, or otherwise not visible, the state continues to update--which works just fine--but I'd rather it didn't, because

December 13, 2018 at 09:59PM by Lee Crocker
https://ift.tt/2Gewgh7
New post on /r/flutterdev subreddit:

Is there an alternative to Firebase?
Is there any other solution giving me the same features: scaling, authentication, security, cloud hosted, nosql-db, flutter integration?​I look for an easy solution that can be ported if needed. Firebase seems to lock me in to google.For Back4App(Parse) I don't seem to find code examples for flutter on their page.Kuzzle seems to be quite expensive.Other options either aren't cloud hosted and/or also vendor locked-in.

December 13, 2018 at 09:46PM by c-f-g
https://ift.tt/2QOYG5y
New post on /r/flutterdev subreddit:

Correct transformer for rxdart
I want to create a transformer for a PublicSubject in rxdart. I will add a bool value to the sink, after that the transformer will save that value to database by calling my method and return that bool value to stream. What is the transformer for this task. I am confused about a lot of transformer types in the API docs. Thanks!!

December 13, 2018 at 10:31PM by thuutien2
https://ift.tt/2GdzZM7
New post on /r/flutterdev subreddit:

Bloc per screen, per widget, per db resource?
Title says it all, when you create a Bloc is it per "screen", widget, or db resource? I have been designing my Blocs per screen however I find that I will need to reuse similar business logic on other screen Blocs (not very DRY) so I am debating on changing everything over to creating a Bloc per db resouce however that may result in a lot of nested BlocProviders in my code since I have different resouces being pulled in for any given screen. What is the proper technique?Thanks.

December 13, 2018 at 11:15PM by UrFsxD0xnXCnsxwnAUhM
https://ift.tt/2SN7dU6
New post on Flutter Dev Google group:

Bloc per "screen", widget, or db resource?
When you create a Bloc is it per "screen", widget, or db resource? I have been designing my Blocs per screen however I find that I will need to reuse similar business logic on other screen Blocs (not very DRY) so I am debating on changing everything over to creating a Bloc per db resource

December 13, 2018 at 11:44PM by John
https://ift.tt/2UOFDYm
New post on Flutter Dev Google group:

Flutter doctor wont accept android SDKs
Hi, I'm trying to get flutter working for the first time but it seems that I don't have a valid sdk version (or something?) From flutter doctor -v > [✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.utf8) > • Flutter version 1.0.0 at /home/vagrant/development/flutter > •

December 14, 2018 at 02:34AM by Martin Lyne
https://ift.tt/2QtB5rV
New post on /r/flutterdev subreddit:

hummingbird and google search
I heard about hummingbird project and it's really cool that I can do web with flutter.​However, will contents on Flutter App(Hummingbird App) be able to be searched on Google? I mean I am curious if it's possible to do SEO on it.​Any thoughts?

December 14, 2018 at 03:29AM by steadyaction
https://ift.tt/2CbZPMj
New post on /r/flutterdev subreddit:

Gradient Text in Flutter
Hey guys, reddit noob here...​I wrote this yesterday about painting gradients through text in Flutter, and was wondering if anyone here knows a better way. Or if this is in fact the best way...​https://medium.com/@tonyowen/gradient-text-in-flutter-24a8c8adfcd9

December 14, 2018 at 08:43AM by tunitowen
https://ift.tt/2EsfKZv
New post on /r/flutterdev subreddit:

Looking for a minimal example of customizing a StatefulWidget
I have only found a few tutorials explaining how to create a StatefulWidget rather than a StatelessWidget. And of those, exactly zero talk about how to extend the functionality of an existing StatefulWidget. I was hoping someone could enlighten me on the proper way to do this.My designer wants text fields to be rounded. So I have created a RoundedTextField widget like so:
class RoundedTextField extends StatefulWidget { final TextInputAction textInputAction; final TextInputType keyboardType; final String hintText; RoundedTextField( {@required this.textInputAction, this.keyboardType, this.hintText}); @override _RoundedTextFieldState createState() => _RoundedTextFieldState(); } class _RoundedTextFieldState extends State<RoundedTextField> { @override Widget build(BuildContext context) { return new TextFormField( textInputAction: widget.textInputAction, keyboardType: widget.keyboardType, decoration: InputDecoration( hintText: widget.hintText, contentPadding: EdgeInsets.all(12), border: OutlineInputBorder(borderRadius: BorderRadius.circular(24))), ); } } 
Please keep in mind that I have no idea if this is even the proper way to do it. For instance, do I really have to specify every single one of TextFormField's properties in RoundedTextField's constructor or is there a way I can allow those to be passed in without inheriting from the class (which I've been told goes against the way Flutter was intended to be used).Now, in the case that the text field is for a password, there are a few additional properties I need to add:obscureTextThe InputDecorator should have a suffixIcon containing an IconButton for the show/hide passsword function.I realize I have no idea how I would even go about doing this. My initial thoughts were:Use a named constructor (RoundedTextField.password()). The preferred solution I suppose because a password field is really just a type of text field and doesn't seem to warrant its own widget. I ran into issues with excluding certain properties from the constructor though (keyboardType should not be able to be passed in) or trying to automatically pass certain values from the constructor (obscureText = true) because in a StatefulWidget all the variables are supposed to be final.Use a widget that composites RoundedTextField. I don't know how to do this though which is why this post exists.Neither of the above; just pass in the appropriate properties since the widget is only used in three spots (login, register, change form). That is still enough spots that I think it makes sense to reduce repetition though.In all three of these cases, my main problem is that I don't know how to "add on" the extra properties to the RoundedTextField (particularly the extra InputDecorator property since the decorator already exists on the text field).If someone could explain (1) if my implementation of RoundedTextField is correct, and/or (2) how I would go about solving my password field issue, I would be immensely thankful. And if you happen to be in Boston, I'll owe you a beer :)

December 14, 2018 at 10:26AM by _HEATH3N_
https://ift.tt/2zZBvf5
New post on /r/flutterdev subreddit:

Flutter Search in ListView – Karthik Ponnam – Medium
https://ift.tt/2SKvjyw

December 14, 2018 at 12:15PM by KarthikPonnam
https://ift.tt/2QL7LfR
New post on /r/flutterdev subreddit:

How does Flutter compare to other Hybrid App Frameworks/SDKs?
I haven't seen this kind of post here, so I thought I would ask it:What are the main advantages of flutter over other hybrid app SDKs/Frameworks?I'm currently just starting to create hybrid apps with a web development background. I know Angular so NativeScript is an alternative or ReactNative which uses React. There is also Ionic but that doesn't resolve in truly native apps?I think one big advantage of these frameworks is that you can share a lot of code when I also wan't to create a web app with similar features.I'm still very new to flutter but I feel like the developer experience (with hot reloading and debugging) is a lot better. Can't really speak on other topics yet. So how does flutter compare with other frameworks? How much are the apps customizable in design? How quick is the development process? What where your experiences?​Looking forward to read your opinions!

December 14, 2018 at 11:47PM by jwknows
https://ift.tt/2QXueWQ
New post on /r/flutterdev subreddit:

A port of the C# 101 LINQ Samples rewritten in Dart
I just found this and thought it would be useful to post here. When porting business logic code to Flutter and manipulating data, LINQ is very useful. This github repository has samples that show the C# version and then the equivalent Dart version. Unfortunately the C# samples use the 'query syntax' and not the 'lambda syntax' which I never use as its a C# only dialect wheres the Lambda syntax is more cross-language!Here are the Dart samples: https://github.com/mythz/dart-linq-examplesHere is the original C# LINQ Samples https://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b

December 15, 2018 at 11:12AM by masterofmisc
https://ift.tt/2S8o7g0
New post on /r/flutterdev subreddit:

Dart for Flutter : Mixin in Dart
In object-oriented programming languages, a Mixin is a class that contains methods for use by other classes without having to be the parent class of those other classes.In other words mixins are normal classes from which we can borrow methods(or variables) without extending the class. And in dart we do this using the keyword with
. Like if you want to use class B as a mixin for class A then ,
Visit here for full article :

December 15, 2018 at 11:41AM by shubhamhackz
https://ift.tt/2CflseQ