Unverified Commit 9fa35180 authored by Qun Cheng's avatar Qun Cheng Committed by GitHub

`SearchBar` should not be impacted by overall `InputDecorationTheme` (#127465)

parent f71075db
......@@ -1239,10 +1239,17 @@ class _SearchBarState extends State<SearchBar> {
controller: widget.controller,
style: effectiveTextStyle,
decoration: InputDecoration(
border: InputBorder.none,
hintText: widget.hintText,
).applyDefaults(InputDecorationTheme(
hintStyle: effectiveHintStyle,
),
// The configuration below is to make sure that the text field
// in `SearchBar` will not be overridden by the overall `InputDecorationTheme`
enabledBorder: InputBorder.none,
border: InputBorder.none,
focusedBorder: InputBorder.none,
contentPadding: const EdgeInsets.symmetric(vertical: 12.0),
)),
),
),
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment