Comments (5)
my guess is that this is due to the changes to the stack clippingbehavior and removal of the stack overlay parameter coupled with the clipRect and overflowbox being used in the camera itself. but as yet, I have not figured out quite how.
from adv_camera.
from adv_camera.
it's looking like the camera AndroidView will need to be changed to something like what's below for Flutter 3.0:
camera =
PlatformViewLink(
viewType: 'plugins.flutter.io/adv_camera',
surfaceFactory: (
BuildContext context,
PlatformViewController controller,
) {
return AndroidViewSurface(
controller: controller as AndroidViewController,
gestureRecognizers: gestureRecognizers ??
const <Factory<OneSequenceGestureRecognizer>>{},
hitTestBehavior: PlatformViewHitTestBehavior.opaque,
);
},
onCreatePlatformView: (PlatformViewCreationParams params) {
final AndroidViewController controller =
PlatformViewsService.initExpensiveAndroidView(
id: params.id,
viewType: 'plugins.flutter.io/adv_camera',
layoutDirection: TextDirection.ltr,
creationParams: creationParams,
creationParamsCodec: const StandardMessageCodec(),
onFocus: () => params.onFocusChanged(true),
);
controller.addOnPlatformViewCreatedListener(
params.onPlatformViewCreated,
);
controller.addOnPlatformViewCreatedListener(
onPlatformViewCreated,
);
return controller;
},
);
However, this currently only works on the master branch and not the stable branch. it looks like they are possibly cherry-picking a fix to make this work on stable
from adv_camera.
this is resolved for android in the latest version however, there has been an issue introduced with iOS where animatedContainers clip away. trying to work out more details. will post them as I learn more.
from adv_camera.
So the issue with iOS is that an animated bottom nav that previously would slide over the camera, no longer works. I replaced the animated bottom navigation elements with a showbottommodal and this resolved the issue satisfactorily for me, closing
from adv_camera.
Related Issues (20)
- how to set custom focus point? HOT 4
- adv_camera V1.3.1+1 CameraPreviewRatio.r16_9 not full screen HOT 3
- App crash on iOS simulator after picking an image from gallery (AdvCamera.swift line 371)
- How to change save directory? HOT 1
- Dispose cam resource widget disposed
- Running for local developement HOT 2
- Execution failed for task ':adv_camera:generateDebugRFile'.
- Flash doesn't work. HOT 2
- Add JPEG quality param
- Cannot build iOS project with adv_camera library
- Calling controller.setFlashType does not activate flash HOT 3
- Windows Mac Linux web support
- Focus marker disappear on iOS after changing camera
- Green camera indicator never disappears
- Is it possible to capture from both front and back cameras at the same time?
- Unexpected platform view context. When constructing a platform view in the factory, use the context from PlatformViewFactory#create
- [camera] Android 12 - camera plugin fails to take a photo
- can not take photo HOT 1
- zoom issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adv_camera.