appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
187 stars 214 forks source link

[ BUG ] : Throw error A value of type 'OverlayState?' can't be assigned to a variable of type 'OverlayState' when run application #239

Open fifteenjoy opened 7 months ago

fifteenjoy commented 7 months ago

Plugin name WidgetZoom

Describe the bug when I run my application, it throw error: "A value of type 'OverlayState?' can't be assigned to a variable of type 'OverlayState' because 'OverlayState?' is nullable and 'OverlayState' isn't"

To Reproduce Steps to reproduce the behavior:

  1. install WidgetZoom,and add import the library import 'package:widget_zoom/widget_zoom.dart';
  2. add below code in my widget
return Center(
        child: WidgetZoom(
          heroAnimationTag: 'tag',
          zoomWidget:
          Image.memory(
              utList,
              fit: BoxFit.fitWidth,
              gaplessPlayback: true,
            )
        )
      )
  1. RunApplication in androd studio(version:2022.2.1)

Screenshots

image

Smartphone (please complete the following information):

-Flutter version: 3.3.10 -WidgetZoom version: 0.0.3

please help to update the package to remove the error