Skip to content

Commit

Permalink
Issue #8 Fixed, Multiple widgets used the same GlobalKey
Browse files Browse the repository at this point in the history
Release 0.0.8
  • Loading branch information
shubham16g committed Jan 2, 2023
1 parent 8d0d39a commit dc111d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.0.8
- Fixed issue: "Multiple widgets used the same GlobalKey"

## 0.0.7
- Added support for default images 🖼️ (pre selected images)
- Solved white flash 🔦 problem occurs on add/remove image
Expand Down
3 changes: 1 addition & 2 deletions lib/src/multi_image_picker_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class MultiImagePickerView extends StatefulWidget {
class _MultiImagePickerViewState extends State<MultiImagePickerView> {
late ScrollController scrollController;
final gridViewKey = GlobalKey();
final selectorKey = GlobalKey();

@override
void initState() {
Expand Down Expand Up @@ -98,7 +97,7 @@ class _MultiImagePickerViewState extends State<MultiImagePickerView> {
);
}
final selector = SizedBox(
key: selectorKey,
key: const Key("selector"),
child: widget.addMoreBuilder != null
? widget.addMoreBuilder!(context, _pickImages)
: Container(
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: multi_image_picker_view
description: A complete widget which can easily pick multiple images from device and display them in UI. Also picked image can be re-ordered and removed easily.
version: 0.0.7
version: 0.0.8
homepage: https://github.com/shubham-gupta-16/multi_image_picker_view
repository: https://github.com/shubham-gupta-16/multi_image_picker_view
issue_tracker: https://github.com/shubham-gupta-16/multi_image_picker_view/issues
Expand Down

0 comments on commit dc111d8

Please sign in to comment.