superlistapp/super_native_extensions

[super_context_menu] Why Android Context Menu has blurred effect like in IOS?

Closed this issue · 1 comments

Hi,

Super stoked to use this package and works really cool on iOS. I just ran the app on Android and to my surprise the long press effect looks similar to iOS. I was hoping that this would be more native to Android rather than iOS.

The expected rendering:

image

Is there any way to disable to frosted glass effect?

Figured that out.

class CustomMobileMenuWidgetBuilder extends DefaultMobileMenuWidgetBuilder {
  CustomMobileMenuWidgetBuilder({
    super.brightness,
  }) : super(
          enableBackgroundBlur: false,
        );

  @override
  Widget buildOverlayBackground(BuildContext context, double opacity) {
    return Opacity(
      opacity: opacity,
      child: Container(
        color: Colors.transparent,
      ),
    );
  }
}

But now I feel like blur is also cool on Android.