fix search icon sizing
This commit is contained in:
@@ -53,14 +53,21 @@ class _MihSearchBarState extends State<MihSearchBar> {
|
|||||||
)
|
)
|
||||||
: Padding(
|
: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
child: Icon(Icons.search, color: widget.hintColor),
|
child: Icon(
|
||||||
|
Icons.search,
|
||||||
|
color: widget.hintColor,
|
||||||
|
size: 35,
|
||||||
|
),
|
||||||
); // Default to search icon if no alt icon
|
); // Default to search icon if no alt icon
|
||||||
} else {
|
} else {
|
||||||
// Return the primary prefix icon or the alternative if provided
|
// Return the primary prefix icon or the alternative if provided
|
||||||
return Icon(
|
return Padding(
|
||||||
widget.prefixIcon,
|
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||||
color: widget.hintColor,
|
child: Icon(
|
||||||
size: 35,
|
Icons.search,
|
||||||
|
color: widget.hintColor,
|
||||||
|
size: 35,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user