Skip to content

Commit

Permalink
Merge pull request #227 from edufolly/dev
Browse files Browse the repository at this point in the history
Version 3.0.2.
  • Loading branch information
edufolly authored Apr 11, 2024
2 parents e6a8513 + 8079b5d commit 46d8eaf
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [3.0.2] - 2024-04-11

* Adding leadingWidth to AbstractEdit and AbstractList.

## [3.0.1] - 2024-03-31

* Updating Connectivity Plus to ^6.0.1.
Expand Down
6 changes: 3 additions & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ description: A new Flutter project.

publish_to: 'none'

version: 3.0.1+210
version: 3.0.2+211

environment:
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"

dependencies:
# https://pub.dev/packages/connectivity_plus
connectivity_plus: 6.0.1
connectivity_plus: 6.0.2

flutter:
sdk: flutter
Expand All @@ -37,7 +37,7 @@ dependencies:
http: 1.2.1

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

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

///
///
Expand All @@ -55,6 +56,7 @@ 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.leadingWidth,
super.key,
});

Expand Down Expand Up @@ -155,6 +157,7 @@ class AbstractEditState<
leading: widget.appBarLeading == null
? null
: widget.appBarLeading!(context),
leadingWidth: widget.leadingWidth,
title: Text(widget.builder.superSingle(context)),
actions: <Widget>[
/// Actions
Expand Down
16 changes: 7 additions & 9 deletions lib/crud/abstract_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ abstract class AbstractList<
void Function({bool clear})? refresh, {
required bool selection,
})? rowActions;
final double? leadingWidth;

///
///
Expand Down Expand Up @@ -141,6 +142,7 @@ abstract class AbstractList<
this.appBarLeading,
this.actions,
this.rowActions,
this.leadingWidth,
super.key,
}) : assert(
searchFieldStyle == null || searchFieldDecorationTheme == null,
Expand Down Expand Up @@ -327,6 +329,7 @@ class AbstractListState<
leading: widget.appBarLeading == null
? null
: widget.appBarLeading!(context),
leadingWidth: widget.leadingWidth,
title: _getScaffoldTitle(context),
actions: <Widget>[
/// Select All Button
Expand Down Expand Up @@ -488,9 +491,7 @@ class AbstractListState<
sprintf(
widget.listEmpty,
<dynamic>[
widget.builder
.superPlural(context)
.toLowerCase(),
widget.builder.superPlural(context).toLowerCase(),
],
),
)
Expand Down Expand Up @@ -971,8 +972,7 @@ class InternalSearch<
),
),
),
builder.buildBottomNavigationBar(context) ??
const SizedBox.shrink(),
builder.buildBottomNavigationBar(context) ?? const SizedBox.shrink(),
],
);
} else {
Expand Down Expand Up @@ -1022,8 +1022,7 @@ class InternalSearch<
),
),
),
builder.buildBottomNavigationBar(context) ??
const SizedBox.shrink(),
builder.buildBottomNavigationBar(context) ?? const SizedBox.shrink(),
],
);
}
Expand All @@ -1048,8 +1047,7 @@ class InternalSearch<
),
),
),
builder.buildBottomNavigationBar(context) ??
const SizedBox.shrink(),
builder.buildBottomNavigationBar(context) ?? const SizedBox.shrink(),
],
);
} else {
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.0.1
version: 3.0.2
repository: https://github.com/edufolly/folly_fields/
homepage: https://edufolly.github.io/folly_fields/

Expand Down

0 comments on commit 46d8eaf

Please sign in to comment.