Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
furkankurt
2021-07-02 16:04:29 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b9de5e7ab7ff77308541e87a2705f9b9ff7fdaed
b9de5e7a
1 parent
9d51040a
Added dispose() for bottomSheet.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
lib/get_navigation/src/bottomsheet/bottomsheet.dart
lib/get_navigation/src/bottomsheet/bottomsheet.dart
View file @
b9de5e7
import
'package:flutter/material.dart'
;
import
'../../../get_core/get_core.dart'
;
import
'../../../get_instance/src/get_instance.dart'
;
class
GetModalBottomSheetRoute
<
T
>
extends
PopupRoute
<
T
>
{
GetModalBottomSheetRoute
({
...
...
@@ -52,6 +54,15 @@ class GetModalBottomSheetRoute<T> extends PopupRoute<T> {
AnimationController
?
_animationController
;
@override
void
dispose
()
{
if
(
Get
.
smartManagement
!=
SmartManagement
.
onlyBuilder
)
{
WidgetsBinding
.
instance
!.
addPostFrameCallback
(
(
_
)
=>
GetInstance
().
removeDependencyByRoute
(
name
));
}
super
.
dispose
();
}
@override
AnimationController
createAnimationController
()
{
assert
(
_animationController
==
null
);
_animationController
=
...
...
Please
register
or
login
to post a comment