i have a list using sticky headers. i want to place a custome made shadow under each header so i did the following:
return StickyHeader(
header: Material(
color: Colors.transparent,
child: Container(
color: Colors.transparent,
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
color: AppColors.todaysTasks,
height: 60.0,
padding: EdgeInsets.symmetric(horizontal: spacing),
alignment: Alignment.centerLeft,
child: Text(
title,
style: FontStyles.taskListItemName.copyWith(color: Colors.black),
),
),
Image.asset(
'assets/images/BlurCropped.png',
),
],
),
),
),
content: Column(
the problem is that my shadow expands the header's container and creates a large margin between each header and the first task. I've provided an image. please help me im lost here.
i was trying to put a shadow image under a header but it created a weird margin.