text filed in card code example

Example: text filed in card

class SearchTF extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Card(
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(10),
          side: BorderSide(color: ColorsList.CardsBorderColor, width: 2)
        ),
        child: Row(
          children: [
            IconButton(icon: Icon(Icons.search_rounded), color: ColorsList.hintTextColor, iconSize: 20,),
            Expanded(child: serarchTF())
          ],
        ),
      ),
    );
  }
  serarchTF(){
    return TextFormField(
      decoration: InputDecoration(
          hintText:Strings.historySearchTx,
          hintStyle: TextStyle(
              color: ColorsList.hintTextColor
          ),
          border: InputBorder.none
      ),
    );
  }
}