Camera crashes when Flutter App opened on Chrome on Mac - flutter

I have implemented code which will allow me to access the camera in my flutter application and it is working perfectly when the app is opened on android, but the app crashes and throws an exception when I open the same, on Chrome on Mac!
I am using camera package from flutter docs to access the camera!
import 'package:camera/camera.dart';
The exception occurs at this line:
List<CameraDescription> cameras = await availableCameras();
I don't know whether camera package supports on web or not, so if this is the case, can anyone suggest me an alternative, which I can use in web and a way how to write a condition, like if the app opened on web then the alternative camerapreview, else (on android) camerapreview from camera package
Edit - when I accept the permission of camera on chrome, the light of the webcam blinks and then the app crashes and points to the above line showcasing exception occurs

Related

Flutter Camera plugin zoomed in

I am developing a document scanner app in flutter, however of all the flutter apps I have seen, they are using the camera plugin which has a main issue that I found out here:
https://github.com/flutter/flutter/issues/45906#issuecomment-1124244943
I want to have a full resolution preview(for taking photos) rather than the video preview of the camera(which is also a little zoomed in). Any ideas?

shake and screenshot events dont work instabug flutter

i opened instabug flutter example app (from github repository) with shake and screenshot event but it doesnt work. (floating button works)
Is it possible to shake and screenshot event dont work on android emulator? Unfortunately I can't test it on physical device.

pictureRecorder.endRecording creates "Minified:vs" instead of "CkPicture" on Flutter Web Mobile

I am using a PictureRecorder variable from the dart:ui package for creating an image with this line of code:
final _image =
await pictureRecorder.endRecording().toImage(size, (size * 1.1).toInt());
It works fine with Flutter Android, Flutter iOS and also Flutter Web. But I experienced a problem with Flutter Web, if it is opened with any mobile device (iOS and Android).
The problem is that endRecording doesn't create an "Instance of CkPicture". Instead it creates an "Instance of Minified:vs", whatever that means. But only on Flutter Web if you open with a mobile phone.
And ideas for a fix or a workaround?
Here's a complete example for this code for converting an image to a png
Round Image File

Flutter Camera plugin (auto zoom)

first of all sorry my english
I'm developing a flutter application using the camera flutter plugin, after capturing the images I upload to amazon's S3
everything works fine, but users have begun to complain that the images taken on my app and the camera's native app look very different
in my app the image looks like I've been zoomed in by cropping the sides and top
in the native app the area that the camera captures is much larger
I would like my app to take photos like the native app (same area)
it is possible?
I already searched and found nothing related to it, I already changed the
ResolutionPreset.max
changed the size of my cameraPreview
unsuccessfully
Any help is welcome
thanks
I was able to resolve by updating the plugin version
I was using the camera: ^ 0.5.6
now I'm with
camera: ^ 0.5.7 + 3

Android application paused on Marshmallow and higher

I have built an android game and published it. It works fine in Unity editor and Blue Stack emulator, and also works fine in jelly bean 4.1 on a real device.
The problem is that in Android Nougat and Marshmallow the game starts normally, the main menu appears and menus work normally. But whenever the user opens the first level, the game enters something like a paused state - the player does not move, controls do not work and even the traffic is stopped (it is a racing game). However, the pause menu can be opened using back button works fine and the user can use it normally.
This problem do not appear in Jelly Bean.
I am using unity 5.6.2f1 personal (64bit).
using google admob and iap.
I have android sdk build tool 27.0.3
NOTE1: I confirmed that Start() function runs fine on start of scene. but update() function do not run. all update functions of all scripts are stopped. i am not changing scaled time at all.
NOTE2: It only happens on android marshmallow and higher.Everything works fine on lower devices.