Skip to content

Commit

Permalink
lint & upgrade packages
Browse files Browse the repository at this point in the history
  • Loading branch information
doonfrs committed Oct 22, 2024
1 parent 8ddce65 commit ecc0b1b
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 32 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

All notable changes to this project will be documented in this file.

## [8.4.3] - 2024. 10. 23

* Added rowWrapper & editCellWrapper for the state manager
* Manually detect doubleTaps on desktop platform to eliminate delay
* Several improvements
* Add PlutoGridRowSelectionCheckBehavior which enables automatically setting the CheckBox values of selected rows
* Add PlutoGridRowSelectionCheckBehavior
* Upgrade packages



## [8.4.2] - 2024. 07. 15

* add rowWrapper
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PlutoGrid Plus for flutter - v8.4.2
# PlutoGrid Plus for flutter - v8.4.3

PlutoGrid Plus is a maintained version of <https://github.com/bosskmk/pluto_grid>

Expand Down
8 changes: 4 additions & 4 deletions demo/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,27 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: ">=2.17.0 <4.0.0"
sdk: ^3.0.0

dependencies:
flutter:
sdk: flutter
pluto_grid_plus: 8.4.2
pluto_grid_plus: 8.4.3
faker: ^2.1.0
url_launcher: ^6.2.1
font_awesome_flutter: ^10.6.0
rainbow_color: ^2.0.1
pluto_menu_bar: ^3.0.1
file_saver: ^0.2.10
pluto_grid_plus_export: 1.0.4
pluto_grid_plus_export: 1.0.5
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.6

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
sdk: ">=2.17.0 <4.0.0"
sdk: ^3.0.0

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down Expand Up @@ -46,7 +46,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
2 changes: 1 addition & 1 deletion lib/pluto_grid_plus.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library pluto_grid_plus;
library;

export './src/helper/filter_helper.dart';
export './src/helper/filtered_list.dart';
Expand Down
28 changes: 14 additions & 14 deletions lib/src/manager/pluto_change_notifier_filter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,29 +160,29 @@ class PlutoNotifierFilterResolverDefault
@override
Set<int> resolve(PlutoGridStateManager stateManager, Type type) {
switch (type) {
case PlutoGrid:
case const (PlutoGrid):
return defaultGridFilter(stateManager);
case PlutoBodyColumns:
case PlutoBodyColumnsFooter:
case PlutoLeftFrozenColumns:
case PlutoLeftFrozenColumnsFooter:
case PlutoRightFrozenColumns:
case PlutoRightFrozenColumnsFooter:
case const (PlutoBodyColumns):
case const (PlutoBodyColumnsFooter):
case const (PlutoLeftFrozenColumns):
case const (PlutoLeftFrozenColumnsFooter):
case const (PlutoRightFrozenColumns):
case const (PlutoRightFrozenColumnsFooter):
return defaultColumnsFilter(stateManager);
case PlutoBodyRows:
case PlutoLeftFrozenRows:
case PlutoRightFrozenRows:
case const (PlutoBodyRows):
case const (PlutoLeftFrozenRows):
case const (PlutoRightFrozenRows):
return defaultRowsFilter(stateManager);
case PlutoNoRowsWidget:
case const (PlutoNoRowsWidget):
return {
...defaultRowsFilter(stateManager),
stateManager.setShowLoading.hashCode,
};
case PlutoAggregateColumnFooter:
case const (PlutoAggregateColumnFooter):
return defaultAggregateColumnFooterFilter(stateManager);
case CheckboxSelectionWidget:
case const (CheckboxSelectionWidget):
return defaultCheckboxFilter(stateManager);
case CheckboxAllSelectionWidget:
case const (CheckboxAllSelectionWidget):
return defaultCheckboxAllFilter(stateManager);
}

Expand Down
1 change: 1 addition & 0 deletions lib/src/manager/pluto_grid_key_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class PlutoGridKeyManager {
final movingStream =
_subject.stream.where((event) => event.needsThrottle).transform(
ThrottleStreamTransformer(
// ignore: void_checks
(e) => TimerStream(e, const Duration(milliseconds: 1)),
),
);
Expand Down
2 changes: 1 addition & 1 deletion packages/pluto_grid_plus_export/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## PlutoGridExport for PlutoGrid - v1.0.4
## PlutoGridExport for PlutoGrid - v1.0.5

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library pluto_grid_plus_export;
library;

export 'package:pdf/pdf.dart';
export 'package:pdf/widgets.dart';
Expand Down
7 changes: 3 additions & 4 deletions packages/pluto_grid_plus_export/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ homepage: https://bosskmk.github.io
repository: https://github.com/doonfrs/pluto_grid_plus/tree/master/packages/pluto_grid_plus_export

environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=2.5.0"
sdk: ^3.0.0

dependencies:
flutter:
sdk: flutter
pluto_grid_plus: ^8.4.2
pluto_grid_plus: ^8.4.3
csv: ^6.0.0
pdf: ^3.10.7
printing: ^5.11.1
Expand All @@ -21,4 +20,4 @@ dev_dependencies:
sdk: flutter
mockito: ^5.4.3
build_runner: ^2.4.7
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0
7 changes: 3 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: pluto_grid_plus
description: PlutoGrid plus is a maintained version of PlutoGrid, PlutoGrid is a dataGrid that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS. (DataGrid, DataTable, Data Grid, Data Table, Sticky)
version: 8.4.2
version: 8.4.3
homepage: https://pluto.weblaze.dev
repository: https://github.com/doonfrs/pluto_grid_plus

environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=2.5.0"
sdk: ^3.0.0

dependencies:
flutter:
Expand All @@ -22,4 +21,4 @@ dev_dependencies:
sdk: flutter
mockito: ^5.4.3
build_runner: ^2.4.7
flutter_lints: ^4.0.0
flutter_lints: ^5.0.0

0 comments on commit ecc0b1b

Please sign in to comment.