Skip to content

InteractiveView widget zoom functionality not working properly in Realme X2 device. #63281

@Rupak-66

Description

@Rupak-66

Problem Statement

I have tried my RealME X2 android device for testing flutter's brand new InteractiveViewer widget. Zoom is not properly working in the device. Sometimes it works and mostly not. I tried my Old samsung device but there it is working seamlessly.
I have tested release APK for both the cases.

Code snippet

class InterACtive extends StatefulWidget {
  @override
  _InterACtiveState createState() => _InterACtiveState();
}

class _InterACtiveState extends State<InterACtive> {
  final TransformationController _controller = TransformationController();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: InteractiveViewer(
        transformationController: _controller,
        onInteractionEnd: (details){
          _controller.value = Matrix4.identity();
        },
        child: Center(child: Image.asset("assets/images/pubg.png")),
      ),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.in triagePresently being triaged by the triage team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions