Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
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
Julian Steenbakker
2025-04-18 08:42:30 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7b5b2bc9607090de150128d82fb460ca999e5876
7b5b2bc9
1 parent
0260d8b0
fix: merge conflicts
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
lib/src/mobile_scanner.dart
lib/src/mobile_scanner.dart
View file @
7b5b2bc
...
...
@@ -285,7 +285,6 @@ class _MobileScannerState extends State<MobileScanner>
}
Future
<
void
>
disposeMobileScanner
()
async
{
Future
<
void
>
disposeMobileScanner
()
async
{
if
(
widget
.
controller
==
null
)
{
WidgetsBinding
.
instance
.
removeObserver
(
this
);
}
...
...
@@ -302,17 +301,6 @@ class _MobileScannerState extends State<MobileScanner>
await
controller
.
dispose
();
}
}
WidgetsBinding
.
instance
.
removeObserver
(
this
);
if
(
controller
.
autoStart
)
{
await
controller
.
stop
();
}
// Dispose default controller if not provided by user
if
(
widget
.
controller
==
null
)
{
await
controller
.
dispose
();
}
}
@override
void
initState
()
{
...
...
Please
register
or
login
to post a comment