Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional width to dialog from PlutoColumnType.select #1130

Open
wants to merge 112 commits into
base: master
Choose a base branch
from
Open
Changes from 5 commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
a0c0601
Fix missing dates in date-picker
bastaware May 23, 2023
4a063fa
Change Package Name to flutter_grid_plus & upgrade the dependencies
doonfrs Dec 7, 2023
74b3f98
update version to 8.0.0
doonfrs Dec 7, 2023
9ac783d
update enviroment sdk
doonfrs Dec 7, 2023
6f5f15d
chand main dart file from pluto_grid to pluto_grid_plus.dart
doonfrs Dec 7, 2023
3c1835f
update package name & version in readme file
doonfrs Dec 7, 2023
9f7c223
add onSelectedItem function in plutoColumnType.select https://github.…
doonfrs Dec 7, 2023
84bd66f
Add column title (padding, icon-size, and checkBox size to auto-fit c…
doonfrs Dec 7, 2023
36207fd
Customize filter column by @RamshaFarheen https://github.com/bosskmk/…
doonfrs Dec 7, 2023
a84babe
fix unit test for autoFitColumn
doonfrs Dec 7, 2023
76e63b4
update readme, version and changelog
doonfrs Dec 7, 2023
ef3804a
update build files
doonfrs Dec 19, 2023
fffbd4b
add builder feature for select column type
doonfrs Dec 19, 2023
36ed914
increase version & update change log
doonfrs Dec 19, 2023
08879cb
Fixes #6 Migrate RawKeyboardEvent and related implications according …
Feb 18, 2024
29e2ada
Merge pull request #9 from aymswick/fix/flutter_RawKeyboardEvent_depr…
doonfrs Feb 18, 2024
753bbc0
Change pluto_grid_export to pluto_grid_plus_export as the old version…
doonfrs Feb 18, 2024
2fe4911
make pluto_grid_plus_export publishable
doonfrs Feb 18, 2024
f4e6142
change repo path in readme
doonfrs Feb 18, 2024
0444e4f
change class name / package name in the readme file
doonfrs Feb 18, 2024
517c0f9
change class name / package name in the readme file
doonfrs Feb 18, 2024
abde35c
remove unnecessary or
Macacoazul01 Feb 19, 2024
103382b
original value and getter
Macacoazul01 Feb 19, 2024
5128de8
Merge pull request #11 from bianca-inc/master
doonfrs Feb 19, 2024
6596529
added more personalization options
Macacoazul01 Feb 19, 2024
7caf19c
Merge pull request #12 from bianca-inc/format
doonfrs Feb 19, 2024
a01117d
improve files organization
Macacoazul01 Feb 20, 2024
f712ab8
Merge pull request #14 from bianca-inc/format
Macacoazul01 Feb 22, 2024
1a4658b
Merge pull request #16 from bastaware/fixdatepicker
doonfrs Feb 27, 2024
6be47e9
20240305
ramiro-ciocca Mar 5, 2024
8aee2f5
upgrade to latest packages
doonfrs Mar 18, 2024
73335e8
rollback intl to 18 as 19 still not supported by flutter stable
doonfrs Mar 18, 2024
eca21ed
Merge branch 'master' of https://github.com/doonfrs/pluto_grid_plus
ramiro-ciocca Mar 22, 2024
a13b1cf
added gridPadding and gridBorderWidth to configs
Macacoazul01 Mar 23, 2024
9648238
8.3.1
Macacoazul01 Mar 23, 2024
581b22c
Merge pull request #26 from bianca-inc/master
Macacoazul01 Mar 23, 2024
6ad30a9
feat(doonfrs/pluto_grid_plus#29): Support for hovering rows
coruscant187 Apr 1, 2024
8037bf9
Tests for hovering rows feature
coruscant187 Apr 1, 2024
8ca1d0d
moved hover logic:
coruscant187 Apr 1, 2024
d8a8053
modified CHANGELOG.md, contributor tile and version
coruscant187 Apr 1, 2024
8e54396
Update pluto_lazy_pagination.dart, Check if bodyRowsVertical has any …
Sokcevic Apr 12, 2024
3d98959
Merge pull request #30 from coruscant187/row_hover_status
Macacoazul01 Apr 13, 2024
3f7a4f8
Fix
Sokcevic Apr 15, 2024
0d88fcc
Merge pull request #35 from Sokcevic/master
Macacoazul01 Apr 20, 2024
7eec631
update version to 8.4 and publish to pub.dev
doonfrs Apr 20, 2024
d7d3143
upgrade pubspec
doonfrs May 15, 2024
43f8d02
upgrade to latest flutter & migrate
doonfrs May 15, 2024
8a4a114
add rowWrapper
rjfjohnson May 31, 2024
b0c4967
fix
rjfjohnson May 31, 2024
b5c0182
fix
rjfjohnson May 31, 2024
aa2f45c
Added an option for developers to use either the standard Material Da…
Jun 2, 2024
22a2981
Datepicker - moved isOpenedPopup = true
Jul 1, 2024
97d1ccc
Merge pull request #48 from rjfjohnson/master
doonfrs Jul 5, 2024
dcdd182
Merge pull request #43 from bastaware/use_standard_datepicker
doonfrs Jul 5, 2024
861947a
Added the ability to add a custom data property at the row level.
stan-at-work Jul 10, 2024
1b209ea
Merge branch 'master' of https://github.com/doonfrs/pluto_grid_plus
ramiro-ciocca Jul 11, 2024
92685a4
Merge pull request #54 from stan-at-work/master
doonfrs Jul 14, 2024
dd245c3
reformat readme md make it standard
doonfrs Jul 14, 2024
abef05b
prepare 8.4.2 for publish
doonfrs Jul 14, 2024
59ec734
use 8.4.2 in demo and included packages
doonfrs Jul 14, 2024
55aeb9d
added filterbuilder to pluto column
Software365-info Jul 19, 2024
95ecdd9
readded filterWidget so it can be deprecated but still usable
Software365-info Jul 19, 2024
2c588d5
made average and sum aggregates ignore null values
Software365-info Jul 22, 2024
d26208e
Merge pull request #59 from Software365-info/custom_filters
doonfrs Jul 23, 2024
bb71fd7
Merge branch 'doonfrs:master' into nullable_aggregate_numbers
Software365-info Jul 23, 2024
2d08def
empty check before calculating average/sum
Software365-info Jul 23, 2024
3121b1e
Merge pull request #62 from Software365-info/nullable_aggregate_numbers
doonfrs Jul 23, 2024
04db3e5
Merge branch 'master' of https://github.com/doonfrs/pluto_grid_plus
ramiro-ciocca Sep 6, 2024
db43188
fix demo project errors after upgrading faker package
doonfrs Sep 6, 2024
94e8061
Ignore some auto generated files
doonfrs Sep 16, 2024
5eb0c4a
add explicit type for rowWrapper
doonfrs Sep 16, 2024
776895a
add editCellWrapper and rowWrapper code
doonfrs Sep 16, 2024
a35cb9d
Merge branch 'master' of https://github.com/doonfrs/pluto_grid_plus
ramiro-ciocca Oct 17, 2024
1a9968b
20241017
ramiro-ciocca Oct 18, 2024
9d102b3
Manually detect doubleTaps on desktop platform to eliminate delay
AminBhst Oct 19, 2024
6c930c7
Merge pull request #84 from AminBhst/master
doonfrs Oct 19, 2024
ea12608
Merge pull request #82 from ramiro-ciocca/master
doonfrs Oct 19, 2024
add10d6
Add PlutoGridRowSelectionCheckBehavior which enables automatically se…
AminBhst Oct 19, 2024
b77a892
Update docs
AminBhst Oct 19, 2024
8ddce65
Merge pull request #85 from AminBhst/master
doonfrs Oct 19, 2024
ecc0b1b
lint & upgrade packages
doonfrs Oct 22, 2024
9512f22
Updated pluto_grid_plus from 8.4.2 to ^8.4.3
stan-at-work Nov 13, 2024
ffdc76f
Added onActiveCellChanged
stan-at-work Nov 13, 2024
eafbdc5
Pumped intl library to: ^0.20.0
adelkhayata76 Nov 17, 2024
0d7e7d4
Merge pull request #94 from adelkhayata76/patch-1
doonfrs Nov 17, 2024
78cf7c0
itsnotmeman v1: Introduced a new null check to prevent the 'Null chec…
Nov 22, 2024
0c20354
Merge pull request #93 from stan-at-work/master
doonfrs Dec 1, 2024
b14f2a5
Merge pull request #98 from itsnotmeman/master
doonfrs Dec 1, 2024
c38cb9d
Fixed homescreen pointing to old package
stan-at-work Dec 2, 2024
c9cce41
Merge branch 'doonfrs:master' into home_screen_fix
stan-at-work Dec 2, 2024
c9ef81b
Merge pull request #100 from stan-at-work/home_screen_fix
doonfrs Dec 2, 2024
2f2df5c
feat: continue to _update infinity scroll if screen not filled
pierrecorsini Dec 3, 2024
cc4e9f8
Changed function(Widget child) top WidgetBuilder
stan-at-work Dec 3, 2024
8dfe854
Changed WidgetBuilder to Widget Function(BuildContext, Widget)
stan-at-work Dec 4, 2024
53035c3
Added stateManager
stan-at-work Dec 4, 2024
f8e232c
Added coments
stan-at-work Dec 4, 2024
80772c0
fix: guard agains missing scroll client (disposed)
pierrecorsini Dec 5, 2024
10c9ce3
Fix unit tests
stan-at-work Dec 6, 2024
1c917b8
Changed test to english
stan-at-work Dec 6, 2024
f017912
Fixed test
stan-at-work Dec 6, 2024
f000578
Added tests on pull_req
stan-at-work Dec 6, 2024
64f4704
Add vs-code formatting restrictions
Sten435 Dec 7, 2024
80764b3
Added empty screen to homepage
Sten435 Dec 7, 2024
aec6708
Added clear columns filter event
Sten435 Dec 7, 2024
0191c58
FIX for https://github.com/doonfrs/pluto_grid_plus/issues/105
Sten435 Dec 7, 2024
5925ae6
Merge pull request #110 from stan-at-work/Added-empty-screen-to-homepage
doonfrs Dec 10, 2024
31558f6
Merge pull request #108 from stan-at-work/Add-formatting-restrictions
doonfrs Dec 10, 2024
ab2cc07
Merge pull request #103 from stan-at-work/rowWrapper-rework
doonfrs Dec 10, 2024
c03de3b
Merge pull request #107 from stan-at-work/Fix-unit-tests
doonfrs Dec 10, 2024
ba5b0f5
Merge pull request #101 from pierrecorsini/master
doonfrs Dec 10, 2024
7945e0d
Merge pull request #111 from stan-at-work/issue-105
doonfrs Dec 10, 2024
9f20732
Add optional width to column in PlutoColumnType.select
ramiro-ciocca Dec 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/src/manager/pluto_grid_state_manager.dart
Original file line number Diff line number Diff line change
@@ -109,8 +109,9 @@ class PlutoGridStateChangeNotifier extends PlutoChangeNotifier
_initialize();
}

/// {@macro pluto_grid_row_wrapper}
@override
final Widget Function(Widget rowWidget)? rowWrapper;
final RowWrapper? rowWrapper;

@override
final Widget Function(Widget editCellWidget, PlutoCell cell,
17 changes: 11 additions & 6 deletions lib/src/manager/state/row_state.dart
Original file line number Diff line number Diff line change
@@ -41,7 +41,12 @@ abstract class IRowState {
/// Row of currently selected cell.
PlutoRow? get currentRow;

Widget Function(Widget rowWidget)? get rowWrapper;
/// {@template pluto_grid_row_wrapper}
///
/// A wrapper that wraps arround each row.
///
/// {@endtemplate}
RowWrapper? get rowWrapper;

PlutoRowColorCallback? get rowColorCallback;

@@ -224,11 +229,11 @@ mixin RowState implements IPlutoGridState {

@override
void setRowChecked(
PlutoRow row,
bool flag, {
bool notify = true,
bool checkedViaSelect = false,
}) {
PlutoRow row,
bool flag, {
bool notify = true,
bool checkedViaSelect = false,
}) {
final findRow = refRows.firstWhereOrNull(
(element) => element.key == row.key,
);
8 changes: 6 additions & 2 deletions lib/src/pluto_grid.dart
Original file line number Diff line number Diff line change
@@ -55,7 +55,10 @@ typedef PlutoSelectDateCallBack = Future<DateTime?> Function(
PlutoCell dateCell, PlutoColumn column);

typedef PlutoOnActiveCellChangedEventCallback = void Function(
PlutoGridOnActiveCellChangedEvent event);
PlutoGridOnActiveCellChangedEvent event);

typedef RowWrapper = Widget Function(
BuildContext context, Widget row, PlutoGridStateManager stateManager);

/// [PlutoGrid] is a widget that receives columns and rows and is expressed as a grid-type UI.
///
@@ -96,7 +99,8 @@ class PlutoGrid extends PlutoStatefulWidget {
this.mode = PlutoGridMode.normal,
});

final Widget Function(Widget rowWidget)? rowWrapper;
/// {@macro pluto_grid_row_wrapper}
final RowWrapper? rowWrapper;

final Widget Function(Widget editCellWidget, PlutoCell cell,
TextEditingController controller)? editCellWrapper;
10 changes: 4 additions & 6 deletions lib/src/ui/pluto_body_rows.dart
Original file line number Diff line number Diff line change
@@ -106,7 +106,7 @@ class PlutoBodyRowsState extends PlutoStateWithChange<PlutoBodyRows> {
: stateManager.rowTotalHeight,
addRepaintBoundaries: false,
itemBuilder: (ctx, i) {
Widget w = PlutoBaseRow(
Widget row = PlutoBaseRow(
key: ValueKey('body_row_${_rows[i].key}'),
rowIdx: i,
row: _rows[i],
@@ -115,11 +115,9 @@ class PlutoBodyRowsState extends PlutoStateWithChange<PlutoBodyRows> {
visibilityLayout: true,
);

if (stateManager.rowWrapper != null) {
w = stateManager.rowWrapper!(w);
}

return w;
return stateManager.rowWrapper
?.call(context, row, stateManager) ??
row;
},
),
),