Skip to content

Commit

Permalink
version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham16g committed Sep 4, 2024
1 parent 18ec6d9 commit 524895b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 24 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.1.0
- `flutter_reorderable_grid_view` updated to `^5.0.1`
- iOS simulator issue fixed for example project.
- Flutter higher version support added.
- Removed deprecated methods and classes.
- PR #43 (Upgrade for flutter_reorderable_grid_view) 🚀 merged (author:smocken78) which includes changes mentioned above.

## 1.0.3
- Reverted/Changed the changes made in 1.0.2 as it only working with the latest Flutter version.

Expand Down
3 changes: 1 addition & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ void main() {
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
elevation: WidgetStateProperty.all(0),
backgroundColor:
WidgetStateProperty.all(Colors.purple.shade50)),
backgroundColor: WidgetStateProperty.all(Colors.purple.shade50)),
)),
home: const DemoPage(),
));
Expand Down
18 changes: 5 additions & 13 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.8"
equatable:
dependency: transitive
description:
name: equatable
sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2
url: "https://pub.dev"
source: hosted
version: "2.0.5"
fake_async:
dependency: transitive
description:
Expand All @@ -85,10 +77,10 @@ packages:
dependency: "direct main"
description:
name: file_picker
sha256: "1bbf65dd997458a08b531042ec3794112a6c39c07c37ff22113d2e7e4f81d4e4"
sha256: "167bb619cdddaa10ef2907609feb8a79c16dfa479d3afaf960f8e223f754bf12"
url: "https://pub.dev"
source: hosted
version: "6.2.1"
version: "8.1.2"
file_selector_linux:
dependency: transitive
description:
Expand Down Expand Up @@ -146,10 +138,10 @@ packages:
dependency: transitive
description:
name: flutter_reorderable_grid_view
sha256: ac92a49a8411adfda40f75eff44d0958ee879b0f9d6776bb6154c74aa166aaf1
sha256: "40abcc5bff228ebff119326502e7357ee6399956b60b80b17385e9770b7458c0"
url: "https://pub.dev"
source: hosted
version: "4.0.0"
version: "5.0.1"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -310,7 +302,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.3"
version: "1.1.0"
path:
dependency: transitive
description:
Expand Down
11 changes: 4 additions & 7 deletions lib/src/multi_image_picker_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ class _MultiImagePickerViewState extends State<MultiImagePickerView> {
late final ScrollController _scrollController;
final _gridViewKey = GlobalKey();

final lockedIndices = <int>[0, 4];
final nonDraggableIndices = [0, 2, 3];

@override
void initState() {
super.initState();
Expand Down Expand Up @@ -113,10 +110,10 @@ class _MultiImagePickerViewState extends State<MultiImagePickerView> {
),
],
),
onReorder: (reOrderCallback) {
final newList = reOrderCallback(widget.controller.images.toList());
widget.controller.updateImages(newList as List<ImageFile>);
},
onReorder: (reOrderCallback) {
final newList = reOrderCallback(widget.controller.images.toList());
widget.controller.updateImages(newList as List<ImageFile>);
},
longPressDelay:
Duration(milliseconds: widget.longPressDelayMilliseconds),
builder: (children) {
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
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: 1.0.5
version: 1.1.0
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

environment:
sdk: '>=3.4.0 <4.0.0'
sdk: '>=2.18.6 <4.0.0'

dependencies:
flutter:
Expand Down

0 comments on commit 524895b

Please sign in to comment.