// AI-NOTE (for PR reviewer): This widget is currently unused — it was only used // by the static mock sections in TenderDetailHeader, which are now commented // out. It is intentionally KEPT for future use, not deleted. Safe to ignore as // dead code for now. import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:tm_app/core/utils/size_config.dart'; import '../../../core/theme/colors.dart'; class DetailDropDown extends StatefulWidget { final String title; final List items; const DetailDropDown({required this.title, required this.items, super.key}); @override State createState() => _DetailDropDownState(); } class _DetailDropDownState extends State with SingleTickerProviderStateMixin { bool isOpen = true; @override void initState() { super.initState(); } @override Widget build(BuildContext context) { return Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Row( children: [ InkWell( onTap: () { setState(() { isOpen = !isOpen; }); }, child: Container( width: 24.0.w(), height: 24.0.h(), decoration: BoxDecoration( shape: BoxShape.circle, border: Border.all(color: AppColors.grey60), ), alignment: Alignment.center, child: Icon( isOpen ? CupertinoIcons.chevron_up : CupertinoIcons.chevron_down, color: AppColors.grey60, size: 12, ), ), ), SizedBox(width: 8.0.w()), Text( widget.title, style: TextStyle( color: AppColors.grey80, fontSize: 16.0.sp(), fontWeight: FontWeight.w600, ), ), ], ), SizedBox(height: 12.0.h()), isOpen ? Column( crossAxisAlignment: CrossAxisAlignment.start, children: widget.items .map( (e) => Padding( padding: EdgeInsets.only(left: 12.0.w()), child: Text(e), ), ) .toList(), ) : const SizedBox.shrink(), ], ); } }