import 'package:flutter/material.dart'; import '../theme/app_theme.dart'; class ComposerField extends StatelessWidget { final TextEditingController controller; final ValueChanged? onChanged; final FormFieldValidator? validator; final String? hintText; final FocusNode? focusNode; const ComposerField({ super.key, required this.controller, this.onChanged, this.validator, this.hintText, this.focusNode, }); @override Widget build(BuildContext context) { return TextFormField( controller: controller, onChanged: onChanged, validator: validator, focusNode: focusNode, maxLines: null, minLines: 5, // Replaced AppTheme.composerMinLines keyboardType: TextInputType.multiline, textInputAction: TextInputAction.newline, style: AppTheme.postBody, // Using AppTheme.postBody as it's a general body style textAlignVertical: TextAlignVertical.top, decoration: InputDecoration( hintText: hintText, // fillColor and contentPadding are now handled by AppTheme.inputDecorationTheme // The InputDecorationTheme in AppTheme sets filled: true and fillColor: white, // and also contentPadding: const EdgeInsets.all(16). ), ); } }