[super_context_menu] Why Android Context Menu has blurred effect like in IOS?
Closed this issue · 1 comments
hls-app commented
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:
Is there any way to disable to frosted glass effect?
hls-app commented
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.