import 'package:didvan/config/design_config.dart'; import 'package:didvan/constants/app_icons.dart'; import 'package:flutter/material.dart'; class SearchField extends StatelessWidget { const SearchField({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Container( height: 40, width: double.infinity, decoration: BoxDecoration( color: Theme.of(context).colorScheme.surface, ), child: Row( children: [ const Icon( DidvanIcons.search_regular, ), Expanded( child: TextField( style: Theme.of(context).textTheme.bodyText1, textAlignVertical: TextAlignVertical.top, onChanged: (value) {}, keyboardType: TextInputType.text, textInputAction: TextInputAction.search, decoration: InputDecoration( contentPadding: const EdgeInsets.only( left: 12, right: 12, bottom: 8, ), border: InputBorder.none, hintText: 'جستجو مطلب در رادار', hintStyle: Theme.of(context) .textTheme .subtitle2! .copyWith(color: DesignConfig.greyColor5), ), ), ), ], ), ); } }