flutter-dependencies

Upload image with http.post and registration form in Flutter?

假如想象 提交于 2020-01-10 05:38:05
问题 so i want to upload a File (image) to a server with a bunch of other variable (Strings) String firstname , lastname , birthDay, phone , adresse ; File image; return http.post( uri, headers: { 'Accept': 'application/json', "Authorization": "Bearer $token", }, body: body, encoding: encoding, ); Future<http.Response> postRegisteration() async { return await api.httpPost('fotApp/master', body: { 'firstname': 'lorem', 'lastname': 'lorem', 'birthDay': 'lorem', 'adresse': 'lorem', 'phone': 'lorem',

Flutter:Error with authorization via Google Firebase

北战南征 提交于 2020-01-06 06:32:40
问题 I am begginer in Flutter and faced such a problem.I need to make it so that when logging into my application, my mail is shown in the firebase. I kind of did authorization, but errors appear when I click on the button (login with google). Here is my pubspec.yaml: dependencies: http: ^0.12.0 flutter: sdk: flutter location: ^1.4.1 firebase_core: ^0.2.5 firebase_auth: ^0.5.20 google_sign_in: ^3.2.2 Here is the photo of problem My project on GitHub I can not get rid of this problem import

Flutter:Error with authorization via Google Firebase

半世苍凉 提交于 2020-01-06 06:32:06
问题 I am begginer in Flutter and faced such a problem.I need to make it so that when logging into my application, my mail is shown in the firebase. I kind of did authorization, but errors appear when I click on the button (login with google). Here is my pubspec.yaml: dependencies: http: ^0.12.0 flutter: sdk: flutter location: ^1.4.1 firebase_core: ^0.2.5 firebase_auth: ^0.5.20 google_sign_in: ^3.2.2 Here is the photo of problem My project on GitHub I can not get rid of this problem import

json.decode throws FormatException on nested double quote in json - dart

允我心安 提交于 2020-01-04 14:05:11
问题 Below code snippet throws Format Exception in Flutter json decode, Any suggestion please? import 'dart:async' show Future; import 'dart:convert'; Future<String> readBooks() async { String jsonString = '{"description":"As part of the "You Don’t Know JS" series","quantity":55}'; Map<String, dynamic> books = json.decode(jsonString); return jsonString; } Format Exception: 2018-10-23 20:40:30.680 18115-18142/addon.com.bookshop E/flutter: [ERROR:flutter/shell/common/shell.cc(181)] Dart Error:

Flutter error: Could not download bcprov-jdk15on.jar (org.bouncycastle:bcprov-jdk15on:1.56)

最后都变了- 提交于 2020-01-03 16:51:17
问题 I'm failing to run my first ever Flutter App. Getting the below error. Launching lib\main.dart on Android SDK built for x86 in debug mode... Initializing gradle... Resolving dependencies... * Error running Gradle: Exit code 1 from: D:\PROJECTS\softwareProjects\AndroidProjects\flutter_app_2\android\gradlew.bat app:properties: Download https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.56/bcprov-jdk15on-1.56.jar FAILURE: Build failed with an exception. * What went wrong: A problem

App works perfectly yesterday and now an error PlatformException(FirebaseException, An internal error has occurred. [ 7: ], null) appears

蹲街弑〆低调 提交于 2019-12-25 01:49:00
问题 Hi I have a flutter app that is perfectly working yesterday. I even manage to signup and it registered in my Firebase console but for some reason when i try it today (didnt change anything code whatsoever) This error appears when trying to register for a new account PlatformException(FirebaseException, An internal error has occurred. [ 7: ], null) 回答1: This is not an actual error. Happened with me too yesterday, Fixed this with. Check your internet connectivity (or firewall) Restart your

Running the Firebase ML Vision API calls inside a Compute/Isolate function

拈花ヽ惹草 提交于 2019-12-24 11:39:08
问题 I have been playing around with the Firebase ML Vision https://pub.dartlang.org/packages/firebase_ml_vision and have so far integrated the Text recognition within my application. My issue here is that I have my UI which is a live camera feed and every time I call the Firebase ML vision, I see about 1-2 seconds lag/freeze which affects my UI. I managed to narrow this down to this line of code from the Firebase ML API final results = (() async => (await detector.detectInImage(visionImage) ??

Add # sign in tel uri using Url_launcher

邮差的信 提交于 2019-12-24 08:03:24
问题 In flutter app i am using Url_launcher dependency to open phone application with content to dial using following function Url_launcher.launch("tel:\*5*250#" ). It does open the application but # symbol is not dialed in there else everything works ok ... Any workaround to include # ??? 回答1: I found this issue only on Android devices. It works on iOS. You need to use URL encoding for special character in a URL. So # equals % 23 This will work launch('tel:\*5*250\%23'); This answer helped me.

Flutter lower dart version

百般思念 提交于 2019-12-23 09:32:46
问题 I'm getting the following error due to Dart version of my flutter setup when I run the flutter get packages command: [project_name] flutter packages get Running "flutter packages get" in project_name... The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f. Because project depends on intl_translation >=0.14.0+1 <0.17.0 which requires SDK version >=1.12.0 <2.0.0, version solving failed. pub get failed (1) exit code 1 My framework version: Flutter 0.6.0 • channel beta • https:/

Flutter: 'package get' has not been run; 'Pub get' has not been run

本小妞迷上赌 提交于 2019-12-23 05:45:09
问题 I dowloaded a Flutter sample code for Catalog from git, which showing me a warning, 'package get' has not been run 'Pub get' has not been run What does it mean? How to solve it? Should I ignore this warnings or Update dependencies as suggested with links in warning? 回答1: Dart is similar to node. It has a pubspec.yaml which is the equivalent of package.json containing your dependencies and stuff. And you need to download these dependencies, using pub get . Or on the case of flutter, using