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
Navaron Bracke
2024-01-29 16:16:00 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b9b99e8abdc997f2fecbd887c3c8f0ab8ad23301
b9b99e8a
1 parent
aae1a022
use a const for the view type
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/src/web/mobile_scanner_web.dart
lib/src/web/mobile_scanner_web.dart
View file @
b9b99e8
...
...
@@ -56,7 +56,7 @@ class MobileScannerWeb extends MobileScannerPlatform {
StreamController
.
broadcast
();
/// The view type for the platform view factory.
final
String
_viewType
=
'MobileScannerWeb'
;
static
const
String
_viewType
=
'MobileScannerWeb'
;
static
void
registerWith
(
Registrar
registrar
)
{
MobileScannerPlatform
.
instance
=
MobileScannerWeb
();
...
...
@@ -181,7 +181,7 @@ class MobileScannerWeb extends MobileScannerPlatform {
return
const
SizedBox
();
}
return
HtmlElementView
(
viewType:
_viewType
);
return
const
HtmlElementView
(
viewType:
_viewType
);
}
@override
...
...
Please
register
or
login
to post a comment