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
03b60ac7
Unverified
Commit
03b60ac7
authored
Sep 06, 2023
by
Polina Cherkasova
Committed by
GitHub
Sep 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_DropdownMenuState should dispose TextEditingController. (#133914)
parent
03fcfbef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
dropdown_menu.dart
packages/flutter/lib/src/material/dropdown_menu.dart
+3
-0
dropdown_menu_theme_test.dart
packages/flutter/test/material/dropdown_menu_theme_test.dart
+1
-1
No files found.
packages/flutter/lib/src/material/dropdown_menu.dart
View file @
03b60ac7
...
@@ -541,6 +541,9 @@ class _DropdownMenuState<T> extends State<DropdownMenu<T>> {
...
@@ -541,6 +541,9 @@ class _DropdownMenuState<T> extends State<DropdownMenu<T>> {
@override
@override
void
dispose
()
{
void
dispose
()
{
if
(
widget
.
controller
==
null
)
{
_textEditingController
.
dispose
();
}
super
.
dispose
();
super
.
dispose
();
}
}
...
...
packages/flutter/test/material/dropdown_menu_theme_test.dart
View file @
03b60ac7
...
@@ -100,7 +100,7 @@ void main() {
...
@@ -100,7 +100,7 @@ void main() {
expect
(
material
.
textStyle
?.
color
,
themeData
.
colorScheme
.
onSurface
);
expect
(
material
.
textStyle
?.
color
,
themeData
.
colorScheme
.
onSurface
);
});
});
testWidgets
(
'ThemeData.dropdownMenuTheme overrides defaults'
,
(
WidgetTester
tester
)
async
{
testWidgets
WithLeakTracking
(
'ThemeData.dropdownMenuTheme overrides defaults'
,
(
WidgetTester
tester
)
async
{
final
ThemeData
theme
=
ThemeData
(
final
ThemeData
theme
=
ThemeData
(
dropdownMenuTheme:
DropdownMenuThemeData
(
dropdownMenuTheme:
DropdownMenuThemeData
(
textStyle:
TextStyle
(
textStyle:
TextStyle
(
...
...
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