Skip to content

Commit

Permalink
Fixing actionFunctions at AbstractList.
Browse files Browse the repository at this point in the history
  • Loading branch information
edufolly committed Sep 13, 2021
1 parent 83ff006 commit 8111732
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.20+65"
version: "0.2.21+66"
font_awesome_flutter:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A new Flutter project.

publish_to: 'none'

version: 0.2.20+65
version: 0.2.21+66

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down
7 changes: 6 additions & 1 deletion lib/crud/abstract_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,12 @@ class _AbstractListState<
onPressed: () async {
Widget widget =
await actionFunction.onPressed(context, model);
_push(widget);

await Navigator.of(context).push(
MaterialPageRoute<dynamic>(builder: (_) => widget),
);

await _loadData(context, clear: true);
},
);
}
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: 0.2.20+65
version: 0.2.21+66
# author:
homepage: https://edufolly.github.io/folly_fields/

Expand Down

0 comments on commit 8111732

Please sign in to comment.