Skip to content

Commit

Permalink
Merge pull request #239 from edufolly/dev
Browse files Browse the repository at this point in the history
Version 3.2.3.
  • Loading branch information
edufolly authored Jun 20, 2024
2 parents 45024d4 + 77c88c9 commit a1bce39
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## [3.2.2] - 2024-05-23
## [3.2.3] - 2024-06-20

* Adding translations for AbstractEdit.
* Updating analysis_options.yaml.

## [3.2.2] - 2024-05-23

* Removing duration field.

Expand Down
3 changes: 2 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ linter:
avoid_types_on_closure_parameters: false

avoid_unnecessary_containers: true
# avoid_unstable_final_fields: true
avoid_unused_constructor_parameters: true
avoid_void_async: true
avoid_web_libraries_in_flutter: true
Expand Down Expand Up @@ -119,6 +118,7 @@ linter:
lines_longer_than_80_chars: true
literal_only_boolean_expressions: true
matching_super_parameters: true
missing_code_block_language_in_doc_comment: true
missing_whitespace_between_adjacent_strings: true
no_adjacent_strings_in_list: true
no_default_cases: true
Expand Down Expand Up @@ -240,6 +240,7 @@ linter:
unnecessary_lambdas: true
unnecessary_late: true
unnecessary_library_directive: true
unnecessary_library_name: true
unnecessary_new: true
unnecessary_null_aware_assignments: true
unnecessary_null_aware_operator_on_extension_on_nullable: true
Expand Down
3 changes: 2 additions & 1 deletion example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ linter:
avoid_types_on_closure_parameters: false

avoid_unnecessary_containers: true
# avoid_unstable_final_fields: true
avoid_unused_constructor_parameters: true
avoid_void_async: true
avoid_web_libraries_in_flutter: true
Expand Down Expand Up @@ -119,6 +118,7 @@ linter:
lines_longer_than_80_chars: true
literal_only_boolean_expressions: true
matching_super_parameters: true
missing_code_block_language_in_doc_comment: true
missing_whitespace_between_adjacent_strings: true
no_adjacent_strings_in_list: true
no_default_cases: true
Expand Down Expand Up @@ -240,6 +240,7 @@ linter:
unnecessary_lambdas: true
unnecessary_late: true
unnecessary_library_directive: true
unnecessary_library_name: true
unnecessary_new: true
unnecessary_null_aware_assignments: true
unnecessary_null_aware_operator_on_extension_on_nullable: true
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies:
http: 1.2.1

# https://pub.dev/packages/url_launcher
url_launcher: 6.2.6
url_launcher: 6.3.0

dev_dependencies:
# https://pub.dev/packages/flutter_lints
Expand Down
11 changes: 7 additions & 4 deletions lib/crud/abstract_edit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ abstract class AbstractEdit<
})? actions;
final String exitWithoutSaveMessage;
final String saveErrorText;
final String saveTooltip;
final String waitingMessage;
final double? leadingWidth;

///
Expand All @@ -56,6 +58,8 @@ abstract class AbstractEdit<
this.exitWithoutSaveMessage = 'Modificações foram realizadas.\n\n'
'Deseja sair mesmo assim?',
this.saveErrorText = 'Ocorreu um erro ao tentar salvar:\n%s',
this.saveTooltip = 'Salvar',
this.waitingMessage = 'Consultando...',
this.leadingWidth,
super.key,
});
Expand Down Expand Up @@ -170,7 +174,7 @@ class AbstractEditState<
/// Save Button
if (widget.edit)
IconButton(
tooltip: 'Salvar',
tooltip: widget.saveTooltip,
icon: FaIcon(
widget.consumer.routeName.isEmpty
? FontAwesomeIcons.check
Expand Down Expand Up @@ -207,8 +211,7 @@ class AbstractEditState<

FollyDialogs.yesNoDialog(
context: context,
message: 'Modificações foram realizadas.\n\n'
'Deseja sair mesmo assim?',
message: widget.exitWithoutSaveMessage,
).then((bool go) {
if (go) {
_alreadyPopped = true;
Expand All @@ -222,7 +225,7 @@ class AbstractEditState<
},
child: SafeStreamBuilder<bool>(
stream: _controller.stream,
waitingMessage: 'Consultando...',
waitingMessage: widget.waitingMessage,
builder: (
BuildContext context,
bool data,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: folly_fields
description: Basic form fields and utilities.
version: 3.2.2
version: 3.2.3
repository: https://github.com/edufolly/folly_fields/
homepage: https://edufolly.github.io/folly_fields/

Expand Down

0 comments on commit a1bce39

Please sign in to comment.