Skip to content

Commit

Permalink
fix issue: digits default value
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-convertino committed Jan 19, 2024
1 parent 62dcd6f commit 616040d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Binary file added assets/images/no_account.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions devtools_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extensions:
3 changes: 2 additions & 1 deletion lib/models/account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Account {
this.encryptedSecret,
required this.name,
this.issuer,
this.digits = 6,
this.digits,
required this.type,
this.period,
this.position,
Expand All @@ -71,6 +71,7 @@ class Account {
this.dbAlgorithm = dbAlgorithm;

// set default value
digits = digits ?? 6;
period = period ?? 30;
}

Expand Down
11 changes: 6 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.3.1+15
version: 1.4.1+17

environment:
sdk: ">=2.16.2 <3.0.0"
Expand All @@ -42,7 +42,6 @@ dependencies:
flutter_speed_dial: ^6.0.0 # MIT
objectbox: ^1.5.0 # Apache-2.0 (Trademark use)
objectbox_flutter_libs: any # Apache-2.0 (Trademark use)
google_fonts: ^4.0.4 # Apache-2.0 (Trademark use)

# nextcloud: ^3.0.2 # BSD-3
nextcloud:
Expand All @@ -52,7 +51,6 @@ dependencies:
ref: 4e4d6d7

webview_flutter: ^4.0.6 # BSD-3-Clause
simple_animated_icon: ^1.1.0 # MIT
dropdown_button2: 1.6.2 # MIT
mobile_scanner: ^2.0.0 # BSD-3-Clause
image_picker: ^0.8.5+3 # Apache-2.0, BSD-3-Clause
Expand All @@ -64,16 +62,19 @@ dependencies:
path_provider: ^2.0.15
url_launcher: ^6.1.11
file_saver: ^0.2.2
restart_app: ^1.1.2
equatable: ^2.0.5
flutter_bloc: ^8.1.3
flutter_hooks: ^0.18.6
animated_icon_button: ^1.0.2
upgrader: ^8.0.0
flutter_slidable: ^3.0.0
encrypt: ^5.0.3
crypto: ^3.0.3
http: ^1.1.0
material_design_icons_flutter: ^7.0.7296
circular_countdown_timer: ^0.2.3
simple_icons: ^10.1.3
flutter_animated_icon_button: ^1.0.0
arrow_path: ^3.1.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 616040d

Please sign in to comment.