-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/engine
#15321Labels
platform-webWeb applications specificallyWeb applications specifically
Description
Imagefilter.blur not working as expected.
Code
import 'package:flutter_web/material.dart';
import 'package:flutter_web_ui/ui.dart';
void main() {
runApp(new MaterialApp(home: new FrostedDemo()));
}
class FrostedDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
body: new Stack(
children: <Widget>[
new ConstrainedBox(
constraints: const BoxConstraints.expand(),
child: new FlutterLogo()
),
new Center(
child: new ClipRect(
child: new BackdropFilter(
filter: new ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
child: new Container(
width: 200.0,
height: 200.0,
decoration: new BoxDecoration(
color: Colors.grey.shade200.withOpacity(0.5)
),
child: new Center(
child: new Text(
'Frosted',
style: Theme.of(context).textTheme.display3
),
),
),
),
),
),
],
),
);
}
}###Result
https://i.imgur.com/8d946ZK.png
Expected result
https://stackoverflow.com/questions/43550853/how-do-i-do-the-frosted-glass-effect-in-flutter
loicsacre, mghyazd, Sacchid, ctrysbita, jakcharvat and 13 more
Metadata
Metadata
Assignees
Labels
platform-webWeb applications specificallyWeb applications specifically