This is my current widget:
I want the borders to look transparent, so that I can see the red background just behind that. I have tried wrapping it with a Container
with Colors.transparent
as its color, but it hasn't worked at all.
How can I achieve this? This is my code, currently:
return Container(
height: 80.0,
decoration: const BoxDecoration(
color: Colors.black38,
borderRadius: BorderRadius.all(
Radius.circular(15),
),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
children: [
const SizedBox(width: 11.0),
Container(
decoration: BoxDecoration(
color: addiction.color,
borderRadius: const BorderRadius.all(
Radius.circular(15),
),
),
height: 60.0,
width: 6.0,
),
const SizedBox(width: 11.0),
Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
addiction.name,
style: GoogleFonts.lato(
fontSize: 21.0,
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 4.0),
buildDate(),
],
),
],
),
],
),
);
Any ideas?