import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

/// 可点击的提示条组件
class RecordingHintChipWidget extends StatelessWidget {
  const RecordingHintChipWidget({
    super.key,
    required this.label,
    required this.onTap,
  });

  final String label;
  final VoidCallback onTap;

  @override
  /// 构建提示条 UI
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onTap,
      child: DecoratedBox(
        decoration: BoxDecoration(
          color: Colors.white12,
          borderRadius: BorderRadius.circular(8.r),
        ),
        child: Padding(
          padding: EdgeInsets.symmetric(horizontal: 12.r, vertical: 8.r),
          child: Row(
            children: [
              Expanded(
                child: Text(
                  label,
                  style: TextStyle(color: Colors.white70, fontSize: 12.sp),
                ),
              ),
              Icon(Icons.chevron_right, color: Colors.white54, size: 18.r),
            ],
          ),
        ),
      ),
    );
  }
}
