Git Product home page Git Product logo

Comments (5)

benneca avatar benneca commented on August 12, 2024

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.

benneca avatar benneca commented on August 12, 2024

flutter/flutter#103630

from adv_camera.

benneca avatar benneca commented on August 12, 2024

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.

benneca avatar benneca commented on August 12, 2024

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.

benneca avatar benneca commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.