Skip to content

Commit

Permalink
Formats code
Browse files Browse the repository at this point in the history
  • Loading branch information
O-Hannonen authored and actions-user committed May 18, 2023
1 parent c1a38d4 commit 07f3b4a
Show file tree
Hide file tree
Showing 9 changed files with 359 additions and 351 deletions.
226 changes: 113 additions & 113 deletions .dart_tool/package_config.json

Large diffs are not rendered by default.

448 changes: 224 additions & 224 deletions .dart_tool/package_config_subset

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .dart_tool/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.10.1
3.10.0
6 changes: 3 additions & 3 deletions .flutter-plugins
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is a generated file; do not edit or check into version control.
connectivity_plus=/Users/om/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/
mobile_scanner=/Users/om/.pub-cache/hosted/pub.dev/mobile_scanner-3.2.0/
screen_capture_event=/Users/om/.pub-cache/hosted/pub.dev/screen_capture_event-1.1.1/
connectivity_plus=/home/runner/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/
mobile_scanner=/home/runner/.pub-cache/hosted/pub.dev/mobile_scanner-3.2.0/
screen_capture_event=/home/runner/.pub-cache/hosted/pub.dev/screen_capture_event-1.1.1/
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity_plus","path":"/Users/om/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","native_build":true,"dependencies":[]},{"name":"mobile_scanner","path":"/Users/om/.pub-cache/hosted/pub.dev/mobile_scanner-3.2.0/","native_build":true,"dependencies":[]},{"name":"screen_capture_event","path":"/Users/om/.pub-cache/hosted/pub.dev/screen_capture_event-1.1.1/","native_build":true,"dependencies":[]}],"android":[{"name":"connectivity_plus","path":"/Users/om/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","native_build":true,"dependencies":[]},{"name":"mobile_scanner","path":"/Users/om/.pub-cache/hosted/pub.dev/mobile_scanner-3.2.0/","native_build":true,"dependencies":[]},{"name":"screen_capture_event","path":"/Users/om/.pub-cache/hosted/pub.dev/screen_capture_event-1.1.1/","native_build":true,"dependencies":[]}],"macos":[{"name":"connectivity_plus","path":"/Users/om/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","native_build":true,"dependencies":[]},{"name":"mobile_scanner","path":"/Users/om/.pub-cache/hosted/pub.dev/mobile_scanner-3.2.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"connectivity_plus","path":"/Users/om/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","native_build":false,"dependencies":[]}],"windows":[{"name":"connectivity_plus","path":"/Users/om/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","native_build":true,"dependencies":[]}],"web":[{"name":"connectivity_plus","path":"/Users/om/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","dependencies":[]},{"name":"mobile_scanner","path":"/Users/om/.pub-cache/hosted/pub.dev/mobile_scanner-3.2.0/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":[]},{"name":"mobile_scanner","dependencies":[]},{"name":"screen_capture_event","dependencies":[]}],"date_created":"2023-05-18 12:43:23.382365","version":"3.10.1"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"connectivity_plus","path":"/home/runner/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","native_build":true,"dependencies":[]},{"name":"mobile_scanner","path":"/home/runner/.pub-cache/hosted/pub.dev/mobile_scanner-3.2.0/","native_build":true,"dependencies":[]},{"name":"screen_capture_event","path":"/home/runner/.pub-cache/hosted/pub.dev/screen_capture_event-1.1.1/","native_build":true,"dependencies":[]}],"android":[{"name":"connectivity_plus","path":"/home/runner/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","native_build":true,"dependencies":[]},{"name":"mobile_scanner","path":"/home/runner/.pub-cache/hosted/pub.dev/mobile_scanner-3.2.0/","native_build":true,"dependencies":[]},{"name":"screen_capture_event","path":"/home/runner/.pub-cache/hosted/pub.dev/screen_capture_event-1.1.1/","native_build":true,"dependencies":[]}],"macos":[{"name":"connectivity_plus","path":"/home/runner/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","native_build":true,"dependencies":[]},{"name":"mobile_scanner","path":"/home/runner/.pub-cache/hosted/pub.dev/mobile_scanner-3.2.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"connectivity_plus","path":"/home/runner/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","native_build":false,"dependencies":[]}],"windows":[{"name":"connectivity_plus","path":"/home/runner/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","native_build":true,"dependencies":[]}],"web":[{"name":"connectivity_plus","path":"/home/runner/.pub-cache/hosted/pub.dev/connectivity_plus-4.0.0/","dependencies":[]},{"name":"mobile_scanner","path":"/home/runner/.pub-cache/hosted/pub.dev/mobile_scanner-3.2.0/","dependencies":[]}]},"dependencyGraph":[{"name":"connectivity_plus","dependencies":[]},{"name":"mobile_scanner","dependencies":[]},{"name":"screen_capture_event","dependencies":[]}],"date_created":"2023-05-18 09:50:34.944995","version":"3.10.0"}
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/src/feature/reader/view/qr_plus_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class QrPlusReader extends StatefulWidget {
this.controller,
this.fit = BoxFit.cover,
@Deprecated('Use DetectionSpeed on QrPlusReaderController instead')
this.allowDuplicates = false,
this.allowDuplicates = false,
});

/// The security mode of [QrPlusReader]. Note: in order to read QR codes rendered by package:qr_plus,
Expand Down
12 changes: 8 additions & 4 deletions lib/src/feature/renderer/cubit/qr_plus_renderer_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,25 @@ class QrPlusRendererState with _$QrPlusRendererState {
required String plainData,

/// The [QrPlusData] generated from the [plainData] given by the user.
@Default(QrPlusData.unknown()) QrPlusData data,
@Default(QrPlusData.unknown())
QrPlusData data,

/// The index of the crumb that is currently being rendered to the user.
@Default(0) int crumbledDataIndex,
@Default(0)
int crumbledDataIndex,

/// A state of the devices mobile connections. This is relevant for detecting cheating attempts
/// and constructing the proper [QrPlusAuthenticity].
@Default(ConnectivityResult.mobile) ConnectivityResult connectivity,
@Default(ConnectivityResult.mobile)
ConnectivityResult connectivity,

/// The current status of the screen recorder. This is relevant for detecting cheating attempts
/// and constructing the proper [QrPlusAuthenticity].
@Default(ScreenRecorderStatus.recorderOff)
ScreenRecorderStatus screenRecorderStatus,

/// A status for detecting cheating attempts by the renderer.
@Default(QrPlusAuthenticity.authentic) QrPlusAuthenticity authenticity,
@Default(QrPlusAuthenticity.authentic)
QrPlusAuthenticity authenticity,
}) = _QrPlusRendererState;
}
12 changes: 8 additions & 4 deletions lib/src/model/src/qr_plus_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class QrPlusMode with _$QrPlusMode {

/// The time-to-live of the data, which defines how long the data is valid.
/// Defaults to 20 seconds.
@Default(Duration(seconds: 20)) Duration ttl,
@Default(Duration(seconds: 20))
Duration ttl,
}) = RobustQrPlusMode;

/// {@macro qr_plus_mode}
Expand All @@ -75,7 +76,8 @@ class QrPlusMode with _$QrPlusMode {

/// The time-to-live of the data, which defines how long the data is valid.
/// Defaults to 20 seconds.
@Default(Duration(seconds: 20)) Duration ttl,
@Default(Duration(seconds: 20))
Duration ttl,

/// The interval at which the NTP check is performed.
/// Defaults to 5 seconds.
Expand All @@ -94,7 +96,8 @@ class QrPlusMode with _$QrPlusMode {

/// The time-to-live of the data, which defines how long the data is valid.
/// Defaults to 20 seconds.
@Default(Duration(seconds: 20)) Duration ttl,
@Default(Duration(seconds: 20))
Duration ttl,

/// The interval at which the NTP check is performed.
/// Defaults to 5 seconds.
Expand All @@ -113,7 +116,8 @@ class QrPlusMode with _$QrPlusMode {

/// The time-to-live of the data, which defines how long the data is valid.
/// Defaults to 20 seconds.
@Default(Duration(seconds: 20)) Duration ttl,
@Default(Duration(seconds: 20))
Duration ttl,

/// The interval at which the NTP check is performed.
/// Defaults to 5 seconds.
Expand Down

0 comments on commit 07f3b4a

Please sign in to comment.