flutter-dependencies

Flutter multidex problem With FirebaseAuth , Firestore and Google Sign in

做~自己de王妃 提交于 2019-12-07 08:18:58
问题 Flutter application is working fine if i use only firestore. But as now i want to add Firebase Auth it is Causing problem And showing Dex error log How can i use both firestore and Firebase Auth. 回答1: In your app/build.gradle file inside your android folder , add this attribute multiDexEnabled . defaultConfig { ... multiDexEnabled true } Don't forget: flutter clean 来源: https://stackoverflow.com/questions/52232452/flutter-multidex-problem-with-firebaseauth-firestore-and-google-sign-in

Firestore is failed to build with Flutter for iOS

老子叫甜甜 提交于 2019-12-06 06:24:33
问题 I want to add Firestore to Flutter app, and I have problems running it on iOS. I already added this line to pubspec.yaml cloud_firestore: ^0.6.3 Flutter is updated. Flutter doctor says that I have v0.3.1. While compiling app for iOS simulator I got this build error Xcode's output: ↳ / Users/*********/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.3/ios/Classes/FirebaseCorePlugin.m:7:9: fatal error: 'Firebase/Firebase.h' file not found #import <Firebase/Firebase.h> ^~~~~~~~~~~~~~~~~~~~~

How to add OpenCV in Flutter Plugin

心已入冬 提交于 2019-12-06 06:24:25
问题 I am working on a flutter project where I have to detect edges of the objects. I have searched for existing plugins but couldn't find any. I am planning to use OpenCV for edge detection. I have created a flutter plugin from Android Studio. This is the plugin structure. I have downloaded the OpenCV for Android from here - opencv-3.4.3-android-sdk and extracted. I have imported the java folder from OpenCV SDK as the module to the Android Project of the flutter plugin. This is how my android

How to disable list of specific date on flutter

风流意气都作罢 提交于 2019-12-05 06:29:11
问题 I have a code to call showDatePicker, my question is how to disable list of specific date, one, two or more json dates? I try selectableDayPredicate with Saturday and Sunday disabled, but how to do disable with json list of date from api ? onTap: () { showDatePicker( context: context, initialDate: DateTime.now().add(Duration(days: 2)), firstDate: DateTime.now().add(Duration(days: 1)), lastDate: DateTime.now().add(Duration(days: 730)), selectableDayPredicate: (DateTime val) => val.weekday == 5

flutter:error facing in console. app is automatically closed?

十年热恋 提交于 2019-12-05 04:48:07
问题 After add flowing dependency to my app shared_preferences,image_picker,uuid,image,path_provider,font_awesome_flutter,async,http: any,cached_network_image,firebase_storage its showing me error in console page .. my console error is below ....################################################################################################################################################################################################################################################################

How to add OpenCV in Flutter Plugin

╄→尐↘猪︶ㄣ 提交于 2019-12-04 16:24:44
I am working on a flutter project where I have to detect edges of the objects. I have searched for existing plugins but couldn't find any. I am planning to use OpenCV for edge detection. I have created a flutter plugin from Android Studio. This is the plugin structure. I have downloaded the OpenCV for Android from here - opencv-3.4.3-android-sdk and extracted. I have imported the java folder from OpenCV SDK as the module to the Android Project of the flutter plugin. This is how my android project (flutter plugin) build.gradle looks like group 'com.xxxx.xxxxx' version '1.0-SNAPSHOT' buildscript

How to disable list of specific date on flutter

隐身守侯 提交于 2019-12-03 21:41:52
I have a code to call showDatePicker, my question is how to disable list of specific date, one, two or more json dates? I try selectableDayPredicate with Saturday and Sunday disabled, but how to do disable with json list of date from api ? onTap: () { showDatePicker( context: context, initialDate: DateTime.now().add(Duration(days: 2)), firstDate: DateTime.now().add(Duration(days: 1)), lastDate: DateTime.now().add(Duration(days: 730)), selectableDayPredicate: (DateTime val) => val.weekday == 5 || val.weekday == 6 ? false : true, ); } This depends a lot on the data you're getting from your API.

Flow Layout in flutter example

余生颓废 提交于 2019-12-03 15:17:35
i want to implement flow layout in flutter i found a class called FLOW in sdk but unable to find sample code on how to use it here is the layout i am trying to achieve Use Wrap instead of Flow . Flow is for more complicated custom layout. Wrap is what is used to achieve the layout in your screenshot. new Wrap( spacing: 8.0, // gap between adjacent chips runSpacing: 4.0, // gap between lines children: <Widget>[ new Chip( avatar: new CircleAvatar(backgroundColor: Colors.blue.shade900, child: new Text('AH')), label: new Text('Hamilton'), ), new Chip( avatar: new CircleAvatar(backgroundColor:

Unable to build apk, firebase_admob making Error

ぐ巨炮叔叔 提交于 2019-12-02 05:11:43
I am trying to build apk but firebase admob is making problem, if I run without firebase_admob then apk works perfectly and built without any error how to resolve that issue? I am getting this error : Execution failed for task ':firebase_admob:verifyReleaseResources' in this case. I am using firebase_admob: ^0.5.2 this version of it I even try some latest versions but the problem is still there. C:\Users\Waqas\AndroidStudioProjects\gtvsports1>flutter build apk You are building a fat APK that includes binaries for android-arm, android-arm64. If you are deploying the app to the Play Store, it's

Flutter android app crashes upon startup if I include a certain package

孤街浪徒 提交于 2019-12-01 10:42:47
A problem has suddenly recently arisen such that simply by including the dependency in 'location' in pubspec.yaml like e.g. dependencies: flutter: sdk: flutter location: ^1.2.0 <------------------------ culprit firebase_auth: ^0.5.10 cloud_firestore: ^0.7.2 the app crashes immediately upon startup. The 'location' package itself works when alone in an example app. I am not currently importing i.e. using any of the functionality contained within the location package, yet when I remove the entry, all is well. No clues from watching flutter log unfortunately... I was facing the same issue. What I