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

flutter web app getting Bad state: Future already completed
I am trying to develop web application with geolocation and webcam using flutter but getting this error. any one can you please help meThe following StateError was thrown during a platform message response callback:Bad state: Future already completedWhen the exception was thrown, this was the stack:dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 195:49 throwdart-sdk/lib/async/future_impl.dart 42:79 completepackages/flutter/src/services/binding.dart 176:18dart-sdk/lib/async/zone.dart 1374:10 runUnaryGuardedlib/_engine/engine/window.dart 331:23lib/_engine/engine/window.dart 488:17dart-sdk/lib/async/zone.dart 1439:54 runUnarydart-sdk/lib/async/future_impl.dart 141:18 handleValuedart-sdk/lib/async/future_impl.dart 682:44 handleValueCallbackdart-sdk/lib/async/future_impl.dart 711:32
_propagateToListenersdart-sdk/lib/async/future_impl.dart 516:7 [_complete]dart-sdk/lib/async/future.dart 315:15dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 50:19 internalCallback═════════════════════════════════════════════════════════════════════════════════════════════════
═══

April 17, 2020 at 02:52AM by janardhanmupparaju
https://ift.tt/2XH9TrT
New post on /r/flutterdev subreddit:

Learn kotlin only for 7$ use coupon "GET DISCOUNT" for 30% off
https://ift.tt/2VBLBwU

April 17, 2020 at 04:51AM by delansakamoto
https://ift.tt/2KbT1BF
New post on /r/flutterdev subreddit:

White label app - exclude other flavors(schemes) during build time
Let's say I want to write a white label app which will describe my application - for example main view is AVIEW. Then I want to have different flavors(schemes) which will have their implementations of AVIEW in specific directories. The case is that if I build target#1 I don't want to have implementations from target#2, #3 etc. included. How can I achieve that?

April 17, 2020 at 11:31AM by __just_random_dude
https://ift.tt/2RN9sbT
New post on /r/flutterdev subreddit:

FAIL. The application's Info.plist does not contain CFBundleVersion. [Flutter]
hi, I updated flutter and since then I can't access my application on android and IOS.I need help``Launching lib/main.dart on iPhone 11 Pro in debug mode...Xcode build done. 724,2sProcessException: Process exited abnormally: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22): Failed to install the requested application The application's Info.plist does not contain CFBundleVersion. Ensure your bundle contains a CFBundleVersion. Command: /usr/bin/xcrun simctl install CC6F37C2-794D-48DE-8EBC-FD7F3DB3FA79 /Users/mac/Desktop/Fabrice_apps/conduireenci/build/ios/iphonesimulator/Runner.app``

April 17, 2020 at 01:46PM by fabricendja
https://ift.tt/2ylfUjl
New post on /r/flutterdev subreddit:

How to access HttpServer on phone?
I'm running a HttpServer instance on the simulator or the phone and cannot access it with the phone's/simulator's IP from the outside, only with http://localhost:3001 from the device.Do I miss a configuration step or do I need another permission besides android.permission.INTERNET?The current state is in this branch: https://github.com/elsamuko/clusterup/blob/features/LoadSaveJSON/lib/server.dart

April 17, 2020 at 03:01PM by el_samuko
https://ift.tt/3bnzVog
New post on /r/flutterdev subreddit:

What are the common problems you are facing while developing apps with Flutter? Problems may include issues with ide, libraries etc.
I am going to list common problems I face daily. My problems are mostly with the toolings. I mostly use Vs code, I don't if these problems exist in Android studio or xcode. This is not a support or help post, because I have already tries most of the solutions mentioned in github and SO.Vs code sometimes builds old code and hot restart/reload don't work properly.I have to do flutter clean too often due to 1.Analyzer terminates every time after flutter clean and sometimes when a build is complete.When the codebase gets bigger then constant termination of analyzer means you have no auto complete, errors/warnings while the analyzer restarts.While debugging using breakpoints, hot restart does not work and gets stucks on syncing files.Lack of audio libarary support from the flutter team. I was working on an audio streaming app, there is not a single library which plays both local and remote audio files, plays in background, have notifications and lock screen controls in both android and ios. When we ended up doing is using multiple plugins to achieve this. For someone who doesn't have great knowledge of both native platforms, this makes getting this done harder and wait for the community to implement features.The problems listed above are already have issues in github and threads in SO. I just want to know if you are facing similar issues. If not what are the other problems you are facing.

April 17, 2020 at 02:46PM by creepy_hunter
https://ift.tt/2VCTbqR
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