operance_datatable 1.0.7
operance_datatable: ^1.0.7 copied to clipboard
OperanceDataTable: A powerful, customizable data table widget for Flutter with features like sorting, searching, infinite scroll, row expansion, and keyboard navigation.
Changelog #
1.0.7 - 2024-10-22 #
Changed #
- Updated
tableWidthlogic to just usemaxWidthif is aisDesktopPlatform
1.0.6 - 2024-10-21 #
Added #
- Added helpful extensions for VSCode for testing:
Flutterando.flutter-coverageandryanluker.vscode-coverage-gutters - Implemented options to hide the
OperanceDataColumnHeaderandOperanceDataTablefooter - Added full test coverage for
OperanceDataColumnWidth,OperanceDataColumn,OperanceDataDecoration,OperanceDataRow, andOperanceDataColumnHeader - Added new showcase image
Changed #
- Updated
lefthookconfiguration to include checks for for test coverage - Updated assert message for
OperanceDataColumnWidthto be lowercase - Updated
CONTRIBUTING.mdto include Windows setup forlefthook - Renamed
draggingtoactivefor better clarity in_ColumnHeader - Optimized the
OperanceDataColumnHeader's column handling for better performance - Changed
headerandcolumnHeaderTrailingActionsfrom optional parameters to default to an empty list
Removed #
- Removed deprecated VSCode extension:
CoenraadS.bracket-pair-colorizer-2
1.0.5 - 2024-10-18 #
Added #
- Integrated
lefthookfor Git hooks automation. - Added
pre-commithooks:sort-imports: Sorts Dart imports usingimport_sorterand stages the changes.lint: Analyzes the Dart files for linting issues.format: Formats Dart files and stages the changes.pubspec-check: Runsflutter pub getto ensure dependencies are up to date.unit-tests: Runs unit tests usingflutter test.
- Added
pre-pushhooks:full-lint: Analyzes the entire project for linting issues.full-test: Runs all unit tests.check-branch-name: Validates the branch name against a predefined pattern to ensure it follows the naming convention.
- Added
currentPageIndexandonCurrentPageIndexChangedproperties to theOperanceDataTablewidget to manage the current page index. - Added an assertion to the
OperanceDataColumnWidthclass to ensure that thefactorparameter is between 1 and 0.
Changed #
- Renamed _currentPage to _currentPageIndex in the OperanceDataController class.
- Updated the value function in the
OperanceDataColumnWidthto be more concise and readable. - Updated
pubspec.yamldescription to be shorter
Removed #
- Unused import in
OperanceDataColumnWidthclass. - Extra space in
operance_data_decoration.dartfile.
1.0.4 - 2024-10-17 #
Added #
- Initial release of
OperanceDataTable - Core
OperanceDataTablewidget with the following features:- Customizable columns with sorting capabilities
- Pagination support with customizable rows per page
- Infinite scrolling option
- Search functionality with customizable search field placement
- Row selection with multi-select support
- Expandable rows for additional details
- Column reordering capability
- Keyboard navigation support
- Customizable loading and empty states
OperanceDataColumnclass for defining table columns with various options:- Custom cell builders
- Sortable columns
- Numeric columns
- Custom width settings
OperanceDataControllerfor managing table state and data fetching- Extensive customization options through
OperanceDataDecoration:- Customizable colors (
OperanceDataColors) - Customizable icons (
OperanceDataIcons) - Customizable sizes (
OperanceDataSizes) - Customizable styles (
OperanceDataStyles) - Customizable UI options (
OperanceDataUI)
- Customizable colors (
- Created the
OperanceDataColumnWidthclass to represent the width of a column in theOperanceDataTable.- Supports a fixed column width using the
sizeparameter. - Added a
factorparameter (defaulting to 0.15) to calculate the width dynamically ifsizeis not provided. - Introduced a
valuemethod that returns the column width based on the current screen size, considering platform-specific behaviors (iOS, Android, Web).
- Supports a fixed column width using the
- Added the
OperanceDataColumnHeaderwidget to represent the header of a data column in theOperanceDataTable.- Includes properties like
columnOrder,columns, and callbacks such asonChecked,onColumnDragged, andonSort. - Supports decoration settings using the
OperanceDataDecorationclass. - Added support for selectable and expandable columns.
- Includes properties like
- Support for custom header widgets
- Built-in support for showing loading progress
- Customizable row dividers
Changed #
- N/A (Initial release)
Deprecated #
- N/A (Initial release)
Removed #
- N/A (Initial release)
Fixed #
- N/A (Initial release)
Security #
- N/A (Initial release)