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
tableWidth
logic to just usemaxWidth
if is aisDesktopPlatform
1.0.6
- 2024-10-21 #
Added #
- Added helpful extensions for VSCode for testing:
Flutterando.flutter-coverage
andryanluker.vscode-coverage-gutters
- Implemented options to hide the
OperanceDataColumnHeader
andOperanceDataTable
footer - Added full test coverage for
OperanceDataColumnWidth
,OperanceDataColumn
,OperanceDataDecoration
,OperanceDataRow
, andOperanceDataColumnHeader
- Added new showcase image
Changed #
- Updated
lefthook
configuration to include checks for for test coverage - Updated assert message for
OperanceDataColumnWidth
to be lowercase - Updated
CONTRIBUTING.md
to include Windows setup forlefthook
- Renamed
dragging
toactive
for better clarity in_ColumnHeader
- Optimized the
OperanceDataColumnHeader
's column handling for better performance - Changed
header
andcolumnHeaderTrailingActions
from 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
lefthook
for Git hooks automation. - Added
pre-commit
hooks:sort-imports
: Sorts Dart imports usingimport_sorter
and stages the changes.lint
: Analyzes the Dart files for linting issues.format
: Formats Dart files and stages the changes.pubspec-check
: Runsflutter pub get
to ensure dependencies are up to date.unit-tests
: Runs unit tests usingflutter test
.
- Added
pre-push
hooks: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
currentPageIndex
andonCurrentPageIndexChanged
properties to theOperanceDataTable
widget to manage the current page index. - Added an assertion to the
OperanceDataColumnWidth
class to ensure that thefactor
parameter is between 1 and 0.
Changed #
- Renamed _currentPage to _currentPageIndex in the OperanceDataController class.
- Updated the value function in the
OperanceDataColumnWidth
to be more concise and readable. - Updated
pubspec.yaml
description to be shorter
Removed #
- Unused import in
OperanceDataColumnWidth
class. - Extra space in
operance_data_decoration.dart
file.
1.0.4
- 2024-10-17 #
Added #
- Initial release of
OperanceDataTable
- Core
OperanceDataTable
widget 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
OperanceDataColumn
class for defining table columns with various options:- Custom cell builders
- Sortable columns
- Numeric columns
- Custom width settings
OperanceDataController
for 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
OperanceDataColumnWidth
class to represent the width of a column in theOperanceDataTable
.- Supports a fixed column width using the
size
parameter. - Added a
factor
parameter (defaulting to 0.15) to calculate the width dynamically ifsize
is not provided. - Introduced a
value
method 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
OperanceDataColumnHeader
widget 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
OperanceDataDecoration
class. - 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)