0
0
Fluttermobile~20 mins

Backdrop filter (blur effects) in Flutter - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Backdrop Blur Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
ui_behavior
intermediate
2:00remaining
What is the visual effect of this Flutter code snippet?
Consider this Flutter widget tree snippet that uses a BackdropFilter with a blur effect. What will the user see on the screen?
Flutter
Stack(
  children: [
    Image.asset('background.jpg'),
    BackdropFilter(
      filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5),
      child: Container(
        color: Colors.black.withOpacity(0),
      ),
    ),
  ],
)
AThe background image appears sharp with no blur effect.
BThe background image is fully hidden by a black overlay with no blur.
CThe background image appears blurred behind a transparent overlay.
DThe background image is replaced by a solid black color.
Attempts:
2 left
💡 Hint
BackdropFilter applies a blur to the content behind it, but the child container's opacity affects visibility.
📝 Syntax
intermediate
2:00remaining
Which option correctly applies a blur effect using BackdropFilter in Flutter?
Select the Flutter code snippet that correctly applies a blur effect of 10 pixels on both X and Y axes using BackdropFilter.
ABackdropFilter(filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10), child: Container(color: Colors.transparent))
BBackdropFilter(filter: ImageFilter.blur(10, 10), child: Container(color: Colors.transparent))
CBackdropFilter(filter: blur(sigmaX: 10, sigmaY: 10), child: Container(color: Colors.transparent))
DBackdropFilter(filter: ImageFilter.blur(sigma: 10), child: Container(color: Colors.transparent))
Attempts:
2 left
💡 Hint
ImageFilter.blur requires named parameters sigmaX and sigmaY.
lifecycle
advanced
2:00remaining
What happens if you remove the child widget inside BackdropFilter?
In Flutter, what is the effect of omitting the child widget inside a BackdropFilter widget?
Flutter
BackdropFilter(
  filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5),
  // child: Container(color: Colors.transparent), // omitted
)
AThe blur effect will not be visible because BackdropFilter requires a child to render.
BThe blur effect will apply but the area will be filled with black color.
CThe app will crash with a runtime error due to missing child.
DThe blur effect will still apply normally to the background.
Attempts:
2 left
💡 Hint
BackdropFilter needs a child widget to define the area where the filter applies.
🔧 Debug
advanced
2:00remaining
Why does this BackdropFilter blur not appear on the screen?
Given this Flutter code, why is the blur effect not visible?
Flutter
Stack(
  children: [
    Image.asset('background.jpg'),
    BackdropFilter(
      filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5),
      child: Container(color: Colors.black.withOpacity(0.5)),
    ),
  ],
)
ABackdropFilter only works with fully transparent children, so opacity 0.5 disables it.
BThe semi-transparent black Container blocks the blurred background, hiding the blur effect.
CThe Image.asset must be wrapped in a Positioned widget for blur to work.
DThe blur effect requires sigmaX and sigmaY to be zero to be visible.
Attempts:
2 left
💡 Hint
Check how the child Container's color opacity affects visibility.
🧠 Conceptual
expert
3:00remaining
How does BackdropFilter differ from a normal blur effect on a widget?
Which statement best describes the difference between BackdropFilter and applying a blur effect directly on a widget in Flutter?
ABackdropFilter blurs the widget itself, but normal blur affects only the background behind the widget.
BBoth BackdropFilter and normal blur effects blur the widget and its children identically.
CBackdropFilter only works on images, while normal blur works on all widgets.
DBackdropFilter blurs the content behind it, while a normal blur effect blurs the widget itself and its children.
Attempts:
2 left
💡 Hint
Think about what is behind the BackdropFilter versus what the widget contains.