Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Macacoazul01 committed Jun 4, 2024
1 parent 2bf7a72 commit 3927acc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/currency_textfield.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import 'dart:math';
/// `startWithSeparator` lets you define if the controller starts with decimals activated.
///
/// Default `true`
///
///
/// `showZeroValue` lets you define if the controller will show the 0 value.
///
/// Default `false`
Expand Down
5 changes: 3 additions & 2 deletions test/currency_textfield_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,13 @@ void main() {
});

test('test_allowZeroValue_shoulDisplayZeroValueFormatted', () {
final controller = CurrencyTextFieldController(initIntValue: 0, showZeroValue: true);
final controller =
CurrencyTextFieldController(initIntValue: 0, showZeroValue: true);

expect(controller.text, "R\$ 0,00");
});

test('test_allowZeroValue_whithoutInitialValue_shoulDisplayEmptyString', () {
test('test_allowZeroValue_whithoutInitialValue_shoulDisplayEmptyString', () {
final controller = CurrencyTextFieldController(showZeroValue: true);
final controller2 = CurrencyTextFieldController(initIntValue: 0);

Expand Down

0 comments on commit 3927acc

Please sign in to comment.