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

A way to “werror” in Flutter?
I currently use the lint package, but that only throw warnings when the rules are broken.What I currently want is something similar to the werror flag in c, where all the warnings are treated as an error, and you can’t run the code if there is any of the active rules are broken.Currently I have to manually set every rule active in the the package to error. But this has the problem of extending the file over 100 lines, and will not automatically update if dart of the lint package changes the active rules in an update.What do you recommend?

February 27, 2020 at 07:53PM by Doroc0
https://ift.tt/3accEog
New post on /r/flutterdev subreddit:

[provider] view model with collection of objects
Hello,I'm pretty new to flutter (and mobile development in general) and I'm trying to plan my app's architecture with provider.​I have a state model that has collection of objects that have a collection of objects inside as well (think collection of todo lists):
class StateModel extends ChangeNotifier { List<TodoList> todoLists; } 
simplified TodoList class looks like this:
class TodoList { int id; List<Item> items; } class Item { int id; String name; bool status; // true is done, false is not done } 
Now one of my Views is ListView of my todo lists (where I display only name) and that's east. But I want to have a todo list detail view (where data of single todo list is displayed) where I want to mark todo items as done (i.e. set their status to true). How should I do it? I could have method in StateModel which would find a TodoList object by id, then mark items as done. This could look something like this:
class StateModel extends ChangeNotifier { // (...) void markItemAsDone(listId, itemId) { // find todo list in StateModel // find item in given list // mark it as done // notifyListeners() } } 
But this seems wrong. What I would like to have is a way to get TodoList object view model and use its methods, not StateModel methods. How should I approach this? Can I have another view model (TodoListState), and have a collection of TodoListState objects in StateModel? Is this a use case for ProxyProvider?​I hope my question is clear, let me know if this needs more explanation.

February 27, 2020 at 09:46PM by jahu_len
https://ift.tt/3ck7yZ1
New post on /r/flutterdev subreddit:

Best way to share data across widgets (I need something like events)
Hello, I'm new to Flutter and Dart in general.I want to create a Bluetooth application, so I have the MainScreen widget (which will display all information of connected Bluetooth device) and the widget to choose which device to connect with (DiscoveryPage).Basically the structure is the following:
routes: <String, WidgetBuilder>{ '/': (context) => MainScreen(), '/settings': (context) => SettingsScreen(), '/discovery': (context) => DiscoveryPage(), }, 
So on the DiscoveryPage I'm using flutter_bluetooth_serial library, which strikes a function whenever a new device is found. What I want to do is share the device I am connected to from DiscoveryPage to MainScreen.Here is how I get new BT devices:
void _startDiscovery() { _streamSubscription = FlutterBluetoothSerial.instance.startDiscovery().listen((r) { setState(() { results.add(r); }); }); _streamSubscription.onDone(() { setState(() { isDiscovering = false; }); }); } 
Coming from a JS background I thought a global event could be the best solution, but as far as I know, this cannot be done in Flutter. How would you solve this problem?

February 27, 2020 at 09:37PM by albertoZurini
https://ift.tt/32wxnQZ
New post on /r/flutterdev subreddit:

SaaS hackathon with Flutter
Hi, it hasn't been much since i have been practicing flutter and I know how to create basic flutter app frontend with navigation. We are planning on participating on a SaaS hackathon.We are planning on building an alp to help local small businesses on building a website. They can use the apo to add products and in the backend, we will be generating a webpage with basic template. We don't know how to implement it as we are not familiar with backend. So please help us. We accept new ideas for a SeaS apo as well. So we need to know what to learn for implementing this.

February 28, 2020 at 02:59AM by anandhakris
https://ift.tt/3chejKQ
New post on Flutter Dev Google group:

First view/route/screen to be the same as showsearch/showdelegate
I want to get an example app put together where the first view/route/screen is a search bar at the top and would just like to use showsearch in combination with searchdelegate as a first homepage without the back button. Any thoughts on how I could maybe achieve this? or atleast fake/mock this?

February 28, 2020 at 06:55AM by Daniel Legut
https://ift.tt/2vef07h
New post on /r/flutterdev subreddit:

Styling keyboard for android/iOS
I’m looking to make an “old school” app and was considering style the keyboard to the old styles as well, perhaps think Nokia or Old Samsung keyboard.Is this possible? Can someone point me in the right direction ?

February 28, 2020 at 08:13AM by temp02112019
https://ift.tt/39jrrx2
New post on Flutter Dev Google group:

Generating a view asynchronously with Flutter
Hi the code below generates a view based on arrays that are taken from a json rest. Then the code must be inserted from the array inside the view. However, when I start executing the code I have a series of errors that are reported below. The problem is that when the function ​ *inizializzaValor

February 28, 2020 at 08:49AM by Dev Connect
https://ift.tt/397ZV5F
New post on /r/flutterdev subreddit:

Flutter Design Patterns: An overview of the Decorator design pattern and its implementation in Dart and Flutter
https://ift.tt/2To20ny

February 28, 2020 at 08:35AM by mkobuolys
https://ift.tt/2VwdurU
New post on /r/flutterdev subreddit:

Recreate android / ios directory
is there a way to recreate android and ios directory for an existing flutter project.

February 28, 2020 at 11:40AM by SriB
https://ift.tt/2veNuGM
New post on Flutter Dev Google group:

How to remove the html tags without using HTML packages
Below is my paragraph which is having html tags and I want to remove those without using html packages in flutter
New post on /r/flutterdev subreddit:

Flutter for dev? What’s the state?
Can I use it for production use case? Is it stable enough?I was thinking if it’s stable then I don’t have to learn react...

February 28, 2020 at 12:40PM by temp02112019
https://ift.tt/2I5F9Ic
New post on /r/flutterdev subreddit:

App Feedback Thread - February 28, 2020
This thread is for getting feedback on your own apps.Developers:must provide feedback for othersmust include Play Store, App Store, GitHub, GitLab, or BitBucket linkmust make top level commentmust make effort to respond to questions and feedback from commentersmay be open or closed sourceCommenters:must give constructive feedback in replies to top level commentsmust not include links to other appsTo cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.- r/FlutterDev Mods

February 28, 2020 at 01:08PM by AutoModerator
https://ift.tt/2vnZK7J
New post on /r/flutterdev subreddit:

Need Help With Flutter Doctor
I ALREADY GOOGLED A THOUSAND TIMES + Im in a complete feedback loop between This subreddit and androiddev reddit , so FORGIVE ME .Im having the hardest time of my life trying to run flutter doctor , everytime i run i get a new issue with android . here is my latest issue when i run flutter doctor .[✓] Flutter (Channel stable, v1.12.13+hotfix.8, on Linux, locale en_US.UTF-8)[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)✗ Android SDK file not found:/home/rootz/android-sdk/build-tools/28.0.3/aapt.[!] Android Studio (not installed)after searching online i still have no idea how to fix this issue.i can only run it from the cli since im using Vscode and not android studio ,( the packages can never download for me from android studio)how can i fix this issue so i can start developing my app ?

February 28, 2020 at 02:36PM by Crypto_Rootz
https://ift.tt/32CsK7L
New post on /r/flutterdev subreddit:

Best package for creating charts
Hello everyone!I'm currently working on an app that will need both a line graph and a pie chart. I didn't see any 1st party packages for creating charts in pub.dev, and was wondering if you all had any suggestions. I used Syncfusion which was working great until I realized there was no free license.Thanks!

February 28, 2020 at 03:21PM by krazzyjman
https://ift.tt/2Pyzcrh
New post on /r/flutterdev subreddit:

Smart mirror with Flutter?
I've seen smart mirrors running android either on an old tablet or a stick, but are there any repos or effort being made to make something like Magic Mirror or something android equivalent for Flutter?​( Don't know what post flair this goes under )

February 28, 2020 at 04:30PM by pro-tous
https://ift.tt/3cjAdNu
New post on Flutter Dev Google group:

Need Immediately .Net developer for my client in Danville, PA.
Hello Associates, Any available local consultants for *.NET Developer* I have an excellent project with my client *Danville, PA.* Please send your resume to *fah...@mirthconsulting.net*
New tweet from FlutterDev:

😎Give your widgets some awesome shades!

ShaderMasks are one of Flutter’s hidden gems. ShaderMasks let you apply a shader to one or more widgets in a tree.

Apply gradients.
Apply images.
And more...

More #WidgetoftheWeek here &rarr; https://t.co/rXrZCUNZsl pic.twitter.com/jv5rNZLgxp— Flutter (@FlutterDev) February 28, 2020

February 28, 2020 at 09:04PM
http://twitter.com/FlutterDev/status/1233483140221427712
New post on Flutter Dev Google group:

Flutter IntelliJ Plugin M44 Release
Flutter IntelliJ Plugin M44 Release Dev channel The dev channel was announced in the previous release. Instructions for switching from stable to dev are in the release notes: https://ift.tt/3cjtbsk It is now fully automatic. A new version is

February 28, 2020 at 09:07PM by Steve Messick
https://ift.tt/3ci1KPt