I'm trying to create the following:
I've managed to get the background image work and also got the image on top to work, using:
Scaffold(
appBar: AppBar(..),
body: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: MemoryImage(
_selectedImage
),
fit: BoxFit.cover,
),
),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5),
child: Container(
color: Colors.black.withOpacity(0.4),
// height: 450,
child: Stack(
children: [
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15),
image: DecorationImage(
image: MemoryImage(
_finalImage == null ? _selectedImage: img.encodePng(_finalImage)
),
fit: BoxFit.cover,
),
),
margin: EdgeInsets.symmetric(
horizontal: 30,
vertical: 80 - 80 * 0.6,
),
),
Center(
child: _working ? _Image2Widget() : Container(),
),
Center(
child: _working2 ? _Image3Widget() : Container(),
),
],
),
),
),
),
);
The above code produces the following:
But when I wrap my image Container() inside a Column():
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5),
child: Container(
color: Colors.black.withOpacity(0.4),
// height: 450,
child: Stack(
children: [
Column(
children: [
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15),
image: DecorationImage(
image: MemoryImage(
_finalImage == null ? _selectedImage: img.encodePng(_finalImage)
),
fit: BoxFit.cover,
),
),
margin: EdgeInsets.symmetric(
horizontal: 30,
vertical: 80 - 80 * 0.6,
),
),
],
),
Center(
child: _working ? _Image2Widget() : Container(),
),
Center(
child: _working2 ? _Image3Widget() : Container(),
),
],
),
),
),
),
The image on top disappears leaving behind the background only
Why does it now work when I wrap it in column?
How do I get my desired look?





