Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9fa35180
Unverified
Commit
9fa35180
authored
May 25, 2023
by
Qun Cheng
Committed by
GitHub
May 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`SearchBar` should not be impacted by overall `InputDecorationTheme` (#127465)
parent
f71075db
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
180 additions
and
34 deletions
+180
-34
search_anchor.dart
packages/flutter/lib/src/material/search_anchor.dart
+9
-2
search_anchor_test.dart
packages/flutter/test/material/search_anchor_test.dart
+171
-32
No files found.
packages/flutter/lib/src/material/search_anchor.dart
View file @
9fa35180
...
...
@@ -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
),
)),
),
),
)
...
...
packages/flutter/test/material/search_anchor_test.dart
View file @
9fa35180
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment