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
2023-11-08 14:41:32 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
53ba133cb2a239c34606f49dff3e906e31751826
53ba133c
1 parent
83a8db5b
revert the addition of platform specific view attributes
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
47 deletions
lib/src/method_channel/mobile_scanner_texture_view_attributes.dart
lib/src/mobile_scanner_view_attributes.dart
lib/src/web/mobile_scanner_html_view_attributes.dart
lib/src/method_channel/mobile_scanner_texture_view_attributes.dart
deleted
100644 → 0
View file @
83a8db5
import
'package:flutter/widgets.dart'
;
import
'package:mobile_scanner/src/mobile_scanner_view_attributes.dart'
;
/// An implementation for [MobileScannerViewAttributes] for platforms that provide a [Texture].
class
MobileScannerTextureViewAttributes
implements
MobileScannerViewAttributes
{
const
MobileScannerTextureViewAttributes
({
required
this
.
textureId
,
required
this
.
hasTorch
,
required
this
.
size
,
});
/// The id of the [Texture].
final
int
textureId
;
@override
final
bool
hasTorch
;
@override
final
Size
size
;
}
lib/src/mobile_scanner_view_attributes.dart
View file @
53ba133
import
'dart:ui'
;
/// This interface defines the attributes for the mobile scanner view.
abstract
class
MobileScannerViewAttributes
{
/// This class defines the attributes for the mobile scanner view.
class
MobileScannerViewAttributes
{
const
MobileScannerViewAttributes
({
required
this
.
hasTorch
,
required
this
.
size
,
});
/// Whether the current active camera has a torch.
bool
get
hasTorch
;
final
bool
hasTorch
;
/// The size of the camera output.
Size
get
size
;
final
Size
size
;
}
...
...
lib/src/web/mobile_scanner_html_view_attributes.dart
deleted
100644 → 0
View file @
83a8db5
import
'package:flutter/widgets.dart'
;
import
'package:mobile_scanner/src/mobile_scanner_view_attributes.dart'
;
/// An implementation for [MobileScannerViewAttributes] for the web.
class
MobileScannerHtmlViewAttributes
implements
MobileScannerViewAttributes
{
const
MobileScannerHtmlViewAttributes
({
required
this
.
htmlElementViewType
,
required
this
.
hasTorch
,
required
this
.
size
,
});
@override
final
bool
hasTorch
;
/// The [HtmlElementView.viewType] for the underlying [HtmlElementView].
final
String
htmlElementViewType
;
@override
final
Size
size
;
}
Please
register
or
login
to post a comment