StretchyHeader.listViewBuilder(
headerData: HeaderData(
headerHeight: 360.h,
backgroundColor: Colors.white,
blurColor: Colors.white,
header: GestureDetector(
onTap: (){
print('click1...');
},
child: Container(
height: 300.h,
color: AllStyle.background,
child: Align(
alignment: Alignment.center,
child: Container(
height: 120.h,
child: Row(
children: [
SizedBox(
width: 30.w,
),
GestureDetector(
onTap: () async {
print('click2');
await showBarModalBottomSheet(
context: context,
backgroundColor: AllStyle.lightBack,
builder: (context) => IndexPagePage(),
);
},
child: Container(
width: 140.r,
height: 140.r,
decoration: BoxDecoration(
color: AllStyle.blueBtn.withOpacity(0.2),
borderRadius:
BorderRadius.all(Radius.circular(30.sp)),
image: DecorationImage(
image: ExactAssetImage('assets/img/100101.png'),
fit: BoxFit.cover)),
),
),
SizedBox(
width: 20.w,
),
Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
"123",
style:
AllStyle.banTitle.copyWith(color: Colors.white),
),
Text(
"122",
style: AllStyle.banTitle
.copyWith(color: Colors.white, fontSize: 22.sp),
),
],
),
Spacer(),
Icon(FontAwesomeIcons.borderNone,
size: 40.sp, color: Colors.white),
SizedBox(
width: 60.w,
),
],
),
),
),
),
),
I can not get any click in header