fix search icon sizing
This commit is contained in:
parent
a058ff833a
commit
14f4c9acd2
1 changed files with 12 additions and 5 deletions
|
|
@ -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,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue