Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import 'dart:ui';
import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(home: new FrostedDemo()));
class FrostedDemo extends StatelessWidget {
Widget build(BuildContext context) {
return new Stack(
children: [
new Scaffold(
body: new ConstrainedBox(
constraints: const BoxConstraints.expand(),
child: new FlutterLogo(),
new BackdropFilter(
filter: new ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
child: new Container(
decoration: new BoxDecoration(color: Colors.grey[200].withOpacity(0.1)),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.