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
7a2b187c
Unverified
Commit
7a2b187c
authored
May 25, 2022
by
Tomasz Gucio
Committed by
GitHub
May 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dispose ValueNotifier instances in LicensePage state classes (#104589)
parent
74cfc3db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
about.dart
packages/flutter/lib/src/material/about.dart
+12
-0
No files found.
packages/flutter/lib/src/material/about.dart
View file @
7a2b187c
...
@@ -426,6 +426,12 @@ class LicensePage extends StatefulWidget {
...
@@ -426,6 +426,12 @@ class LicensePage extends StatefulWidget {
class
_LicensePageState
extends
State
<
LicensePage
>
{
class
_LicensePageState
extends
State
<
LicensePage
>
{
final
ValueNotifier
<
int
?>
selectedId
=
ValueNotifier
<
int
?>(
null
);
final
ValueNotifier
<
int
?>
selectedId
=
ValueNotifier
<
int
?>(
null
);
@override
void
dispose
()
{
selectedId
.
dispose
();
super
.
dispose
();
}
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
return
_MasterDetailFlow
(
return
_MasterDetailFlow
(
...
@@ -1321,6 +1327,12 @@ class _MasterDetailScaffoldState extends State<_MasterDetailScaffold>
...
@@ -1321,6 +1327,12 @@ class _MasterDetailScaffoldState extends State<_MasterDetailScaffold>
floatingActionButtonLocation
=
FloatingActionButtonLocation
.
endTop
;
floatingActionButtonLocation
=
FloatingActionButtonLocation
.
endTop
;
}
}
@override
void
dispose
()
{
_detailArguments
.
dispose
();
super
.
dispose
();
}
@override
@override
void
openDetailPage
(
Object
arguments
)
{
void
openDetailPage
(
Object
arguments
)
{
SchedulerBinding
.
instance
.
addPostFrameCallback
((
_
)
=>
_detailArguments
.
value
=
arguments
);
SchedulerBinding
.
instance
.
addPostFrameCallback
((
_
)
=>
_detailArguments
.
value
=
arguments
);
...
...
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