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

How can I add firestore google to this code ?
import 'package:cloud_firestore/cloud_firestore.dart';
enum Type {
multiple,
boolean
}class Question {
final String categoryName;
final Type type;
final String question;
final String correctAnswer;
final List<dynamic> incorrectAnswers;
Question({this.categoryName, this.type, this.question, this.correctAnswer, this.incorrectAnswers});
var ref = Firestore.instance.collection('users').document('id').snapshots();
Question.fromMap(Map<String, dynamic> data):
categoryName = data["category"],
type = data["type"] == "multiple" ? Type.multiple : Type.boolean,
question = data["question"],
correctAnswer = data["correct_answer"],
incorrectAnswers = data["incorrect_answers"];static List<Question> fromData(List<Map<String,dynamic>> data){
return data.map((question) => Question.fromMap(question)).toList();
}
}

April 17, 2020 at 04:34PM by tarq1998
https://ift.tt/3cvrEyn
New post on /r/flutterdev subreddit:

Is it viable to use Flutter without using Material or Cupertino?
My application has a unified design, not specifically inspired by Material or Cupertino design patterns.I'm hesitating between 2 approaches: - Using material (the most advanced and polished package) and twisting the widgets and the theme to "unmaterialize" it, - Only using the unopinionated package widgets.The later makes more sense to me, but at the time I have serious doubts about the viability of the solution. When asking about using Flutter without Material (like here), people are like "Yeaaah sure! It is technically possible, do whatever you want". But I found literally zero feedback about going to production with this approach.The only useful "neutral" widget I found is WidgetsApp it just wires up the navigation stuff and that's it. There is no Scaffold, no theme inheritance mecanism...Other example: I have a drawer in my app. AFAIK, a drawer not a material thing, however in Flutter, it is a widget from the material package. So what should I do? Implement my own?Are there people out there who doesn't use Material or Cupertino? I mean, for real?

April 17, 2020 at 05:57PM by ncuillery
https://ift.tt/3eugAn9
New post on /r/flutterdev subreddit:

WebRTC
We are in a discovery phase to develop webRTC application. Does flutter support webRTC and platform support for ios , android and web and desktop? Please suggest. Do we need to explore on sip client?

April 17, 2020 at 06:37PM by kcath
https://ift.tt/2RJulVc
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 &rarr; 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