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

Purchasing a physical Android device for testing.
I'm an iPhone guy and don't see myself switching any time soon, but wanted to start testing on a physical device. I've found some imei blocked android devices on my local craigslist and was wondering if that was a smart purchase.It says it basically can't be activated on any carrier, which I don't imagine I would need. It's about 50% of the normal used price.Is there something I'm not thinking about?

April 17, 2020 at 06:17PM by Mmiranda51
https://ift.tt/3cqlYWv
New tweet from FlutterDev:

#FlutterFriday
is
here.

👉You can specify whether your Flutter project uses Swift, Objective C, Kotlin, or Java by specifying:

"--ios-language objc" or "--android-language java" when you type "flutter create".

💡By default new projects use Kotlin and Swift.— Flutter (@FlutterDev) April 17, 2020

April 17, 2020 at 07:51PM
http://twitter.com/FlutterDev/status/1251206612175355904
New post on Flutter Dev Google group:

How to create vertical tabbar in flutter with vertical align text direction


April 17, 2020 at 09:37PM by Sandeep Dewangan
https://ift.tt/3exaaDG
New tweet from FlutterDev:

Keep your users waiting... with a loading indicator!

Using Cupertino widgets for your UI?

Then CupertinoActivityIndicator is the widget for you! It appears when your app is loading data and disappears when it's done.

Watch more #WidgetoftheWeek → https://t.co/X9DHADopIw pic.twitter.com/yt6zZGsf0W— Flutter (@FlutterDev) April 17, 2020

April 17, 2020 at 11:03PM
http://twitter.com/FlutterDev/status/1251254866460082176
New post on /r/flutterdev subreddit:

Best way to constantly run logic for a Flutter application?
Description of ApplicationFor my Flutter application, I need to run a logic controller 24/7 for varying lengths of time. Every minute it needs to request a response from a json based api, then process that data, and return a state that could be used by Flutter.QuestionSo I need something that can constantly run and return a state that can then be used by Flutter to build a UI at any moment. Because of this I'm leaning towards using Firebase as the logic controller that would return states. I'm however worried that Firebase doesn't offer something that can run 24/7I'm open to any and all solutions! I may repost this in the Firebase subredditThank you in advance for any solutions! I appreciate it!

April 18, 2020 at 06:08AM by sk8tyger
https://ift.tt/34Iuhuj
New post on /r/flutterdev subreddit:

Video download from firebase storage
Hi. Can someone guide regarding the best way to download video files from firebase storage and then play them in a flutter app

April 18, 2020 at 11:28AM by osama_383
https://ift.tt/2RNZJSs
New post on /r/flutterdev subreddit:

How to download with Android's native downloader?
The idea is to in my app if I press a button the video file should start downloading in the native downloader. For example when we download a file from Google Drive app it uses the native downloader.Any help will be appreciable.

April 18, 2020 at 12:02PM by ps_rathore
https://ift.tt/34RNwBB
New post on /r/flutterdev subreddit:

Flutter calculator design demo
This project is not a working calculator app, this is just a Flutter design demo.Light version Dark versionFont used in this demo is Raleway under SIL Open Font LicenseIf you make a working calculator out of this feel free to do so.https://github.com/kristijandraca/Flutter-Calculator

April 18, 2020 at 02:38PM by krvoZD
https://ift.tt/2VBntuc
New post on Flutter Dev Google group:

How to use the socket.io library in flutter? Or any other library available to NodeJs and flutter available?
Hi All, Currently I'm using socket.io in my NodeJs backed and it works well in html. but not in mobile apps. Can anyone help me out to find a good socket.io package? Thanks, Rajilesh Panoli

April 18, 2020 at 04:06PM by Rajilesh Panoli
https://ift.tt/2Kcxsko
New post on Flutter Dev Google group:

flutter run command problem
FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'android'. > Could not resolve all artifacts for configuration ':classpath'. > Could not download builder.jar (com.android.tools.build:builder:3.5.0) > Could not get resource '

April 18, 2020 at 04:36PM by Santosh Kumar
https://ift.tt/2KhQplD
New post on /r/flutterdev subreddit:

Building RPG games.
Hi guys! 😊 For those who enjoy developing games! I recently launched a package called Bonfire with the purpose of helping to build RPG-style games with Flutter + Flame. The result was very nice.For those who are curious to know how a game producing with Bonfire looks like, here is the example game:Android: https://play.google.com/store/apps/details?id=com.rafaelbarbosatec.darkness_dungeonIOS: https://apps.apple.com/us/app/darkness-dungeon/id1506675248Package: https://github.com/RafaelBarbosatec/bonfire

April 18, 2020 at 05:51PM by rafaelbarbosatec
https://ift.tt/2RRblV0
New post on /r/flutterdev subreddit:

Review of my little helper widget called Selectable
I am very new to Flutter. At the moment I am working on a collection of re-useable widgets. I have a lot of widgets that are selectable meaning a user can tap/click on the widget and it somehow is in a selected state. This looks like this:The Button Types widget is selected in this example.You may notice that the text inside a selected widget is white whereas the text of non-selected widgets is usually black.And as I said - I have a lot of selectable widgets in my little library so I need to find a good solution for that.Initially most of my widgets simply had a selected property and if set to true the widget basically knew that it is selected. However this had some drawbacks. For example sometimes the descendant widgets need to know if it is inside a currently selected widget. So the value of selected would have to be passed from parent to all children and from all children to their children and so on. I think I found a better solution but I am unsure whether or not it is really better. I need your advice.```dart class Selectable extends InheritedWidget { const Selectable({ Key key, @required this.selected, @required Widget child, }) : assert(selected != null), assert(child != null), super(key: key, child: child);final bool selected;static Selectable of(BuildContext context) { return context.dependOnInheritedWidgetOfExactType<Selectable>(); }static bool current(BuildContext context, { bool fallback }) { final selectable = of(context); if(selectable != null) { return selectable.selected; } return fallback; }@override bool updateShouldNotify(Selectable oldWidget) => selected != oldWidget.selected; } ```Selectable is a helper widget that provides a selected-flag to descendants.You would use this widget to wrap another widget that can be selected by the user. You can then access the selected-state in any descendant like this:dart final selectable = Selectable.of(context) if(selectable != null) { if(selectable.selected) { print('selected yay'); } }Please note that selectable can be null if the widget is not wrapped with Selectable. The selected value can be determined in a more convenient way like this:dart final selected = Selectable.current(context, fallback: true) if(selected) print('selected yay');Here, selected is never null. It is either true or false. If your current widget is not wrapped by Selectable then selected will be have the same value as fallback.Is this a good idea? I mean it works and it allows all of my other widgets to change their text color (among other things) depending on whether or not they are inside something that is selected.Thanks.

April 18, 2020 at 07:56PM by flutternewbiiiii
https://ift.tt/3eAcnOE
New post on /r/flutterdev subreddit:

Flutter Bloc Experiment
Hi folks.I did some small experiment with BloC pattern and I will be glad to hear your feedback. I have read that the best is to use BloC per screen, but what if instead of it I can have tree like structured BloCs. Here is basic example.So. In the application there can be lot of blocs, and any bloc responsible for one unit like widgets.ex.
1. UserSearchBloc 2. UserUpdateBloc 3. UserUpdateBloc 4. ProjectSearchBloc ... 
And when there is a need to combine some of the blocs, I can create manager which is responsible for children states synchronization.ex.
UserProjectManagerBloc( children: [ ProjectSearchBloc()..add(ProjectSearchFilterChanged()), UserManagerBloc( children: [ UserSearchBloc()..add(UserSearchFilterChanged()), UserDeleteBloc(), UserUpdateBloc(), ], ) ], ) class UserProjectManagerBloc extends BlocNode<BlocNodeEvent, UserProjectManagerState> { ... @override void onChildStateChange(BlocNodeState state) { if (state is UserDeleteSuccess) { getChild<ProjectSearchBloc>().add(ProjectSearchUserDeleted(state.id)); } } } 
Github repository

April 18, 2020 at 07:56PM by andantonyan
https://ift.tt/2VhAo5u
New post on /r/flutterdev subreddit:

Every Flutter Beginner should know this
https://youtu.be/uhCu_sk7VKc

April 18, 2020 at 07:27PM by nishant_rai
https://ift.tt/2wPbYah
New post on /r/flutterdev subreddit:

Running a pedometer service
Hi everyone, I would like to develop a app in flutter for counting steps so that i would work with basic sensors. What i achieved now is if i start the app and walk it would count the steps but how could i improve it count steps at all times? May be a service? But how far a service can work in flutter? I couldnt see example of it. Have u guys faced similar situations? Else u have any solutions for it?Thanks in advance.

April 18, 2020 at 08:47PM by imsharath
https://ift.tt/2wUn5Pi
New post on /r/flutterdev subreddit:

Contributing to Flutter
Hi all​I have some spare time and I want to start with small contribution to the Flutter pluginsHere is the issue that I picked https://github.com/flutter/flutter/issues/52544I am planning toadd this support for `_prefix`
write testsupdate the docsAm I on the right path? any advice before I start?Thanks

April 18, 2020 at 11:00PM by agent3bood
https://ift.tt/3bqwBsw