setEffect method
- WindowEffect effect,
- BuildContext context
Implementation
void setEffect(WindowEffect effect, BuildContext context) {
Window.setEffect(
effect: effect,
color: [
WindowEffect.solid,
WindowEffect.acrylic,
].contains(effect)
? FluentTheme.of(context).micaBackgroundColor.withOpacity(0.05)
: Colors.transparent,
dark: FluentTheme.of(context).brightness.isDark,
);
}