import 'package:flutter/material.dart'; import '../theme/app_theme.dart'; class SearchField extends StatelessWidget { final String hint; final ValueChanged onChanged; const SearchField({super.key, required this.hint, required this.onChanged}); @override Widget build(BuildContext context) { // Ultra kompakt: 16px yükseklik, 8pt metin. return Container( height: 16, decoration: BoxDecoration( color: AppColors.surfaceAlt, borderRadius: BorderRadius.circular(4), border: Border.all(color: AppColors.border), ), child: TextField( onChanged: onChanged, style: TextStyle(color: AppColors.textPrimary, fontSize: 8, height: 1.0), cursorColor: AppColors.accent, cursorHeight: 8, decoration: InputDecoration( isDense: true, border: InputBorder.none, // prefixIcon: Icon(Icons.search, size: 8, color: AppColors.textMuted), // prefixIconConstraints: const BoxConstraints(minWidth: 13, minHeight: 12), hintText: hint, hintStyle: TextStyle(color: AppColors.textMuted, fontSize: 8, height: 1.0), contentPadding: const EdgeInsets.symmetric(vertical: 1), ), ), ); } }