Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Widget build(BuildContext context) {
  2. var size = MediaQuery.of(context).size.width - 75;
  3. return Container(
  4. height: size,
  5. width: size,
  6. child: Stack(
  7. alignment: Alignment.center,
  8. children: <Widget>[
  9. Image(imageUri: "...", size: size - 30), // this is just a container with the image
  10. Positioned(
  11. top: 100,
  12. left: 100,
  13. bottom: 100,
  14. right: 100,
  15. child: BackdropFilter(
  16. filter: ImageFilter.blur(
  17. sigmaX: 5,
  18. sigmaY: 5,
  19. ),
  20. child: Container(
  21. color: Color(0x66FF0000),
  22. ),
  23. ),
  24. )
  25. ],
  26. ),
  27. );
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement