This tutorial explains how to use Android CameraX to develop a full working camera app, including picture / video capture and writing media files to system DCIM folder, with the help of the new CameraX widget CameraView. It's Android 10 compatible. App running Gif: We all know how complicated and frustrating Android Camera2 was. The good news is we now have CameraX, though still in beta phase, but fully workable. With CameraX and CameraView, we can write way less code than Camera2. 1. Add D ependencies And C ompileOptions Let's open your module/app level build.gradle file and add dependencies and compileOptions : (File build.gradle) apply plugin : 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.haoc.cameraxfullcodedemo" minSdkVersion 23 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationR...
Update: Nov 11, 2020 Added phone_login.dart for phone number authentication. Update: Nov 2, 2020 1. Added "forgot password" to email_login.dart 2. Added forgot_password.dart Update: Nov 1, 2020 1. Added "await" in email_singup.dart 2. Added "isLoading = false;" in email_login.dart As of Oct 7 2020, Firebase Auth for Flutter has the new version 0.18.1+2. This Flutter Auth demo with Email and Google Sign-in is just a new update to show you how to work with the newest Firebase Auth version. Most of the codes here are obtained from Peter Haddad 's article How To Use Firebase Authentication In Flutter. Many thanks to Peter Haddad . 1. Create a new Flutter project. Open Android Studio. And create a new Flutter project named "fire_auth_demo". Then go to android/app/build.gradle. Look for "applicationId". That's your Android package name. My package name is "com.haoc.fire_auth_demo". Yours might be different. We nee...
Comments
Post a Comment