From f1fd386f4cd0f742c55a748eca2614f0dcb33041 Mon Sep 17 00:00:00 2001 From: Maxim Saplin Date: Wed, 27 Nov 2024 19:56:44 +0300 Subject: [PATCH] 2.5.16 --- CHANGELOG.md | 4 ++++ lib/data_table_2.dart | 2 +- lib/src/paginated_data_table_2.dart | 2 +- pubspec.yaml | 6 +++--- test/async_paginated_data_table2_test.dart | 2 ++ 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3407898d..47a2cce3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.5.16 +- Updating dependencies +- Fixing analyzer warnings + ## 2.5.15 - `dart fromat .` diff --git a/lib/data_table_2.dart b/lib/data_table_2.dart index b7a889a3..b71bf1f3 100644 --- a/lib/data_table_2.dart +++ b/lib/data_table_2.dart @@ -1,7 +1,7 @@ /// Data table and Paginated data table widgets for Flutter /// /// Copyright (c) 2021 Maxim Saplin -library data_table_2; +library; export 'src/data_table_2.dart'; export 'src/paginated_data_table_2.dart'; diff --git a/lib/src/paginated_data_table_2.dart b/lib/src/paginated_data_table_2.dart index 1d414815..65c1079c 100644 --- a/lib/src/paginated_data_table_2.dart +++ b/lib/src/paginated_data_table_2.dart @@ -707,7 +707,7 @@ class PaginatedDataTable2State extends State { if (_selectedRowCount == 0 && widget.header != null) { headerWidgets.add(Expanded(child: widget.header!)); - if (widget.header is ButtonBar) { + if (widget.header is OverflowBar) { // We adjust the padding when a button bar is present, because the // ButtonBar introduces 2 pixels of outside padding, plus 2 pixels // around each button on each side, and the button itself will have 8 diff --git a/pubspec.yaml b/pubspec.yaml index 60e7fa46..393e053c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: data_table_2 description: In-place substitute for Flutter's DataTable and PaginatedDataTable with fixed/sticky headers and few extra features -version: 2.5.15 +version: 2.5.16 homepage: https://github.com/maxim-saplin/data_table_2 repository: https://github.com/maxim-saplin/data_table_2 @@ -18,8 +18,8 @@ dev_dependencies: flutter_test: sdk: flutter vector_math: ^2.1.0 - intl: ^0.19.0 - flutter_lints: ^4.0.0 + intl: ^0.20.0 + flutter_lints: ^5.0.0 golden_toolkit: # Solving problem with not rendered fonts screenshots: diff --git a/test/async_paginated_data_table2_test.dart b/test/async_paginated_data_table2_test.dart index 981dc2a8..c5f23bf4 100644 --- a/test/async_paginated_data_table2_test.dart +++ b/test/async_paginated_data_table2_test.dart @@ -17,6 +17,8 @@ void main() { final TestWidgetsFlutterBinding binding = TestWidgetsFlutterBinding.ensureInitialized(); + dataTableShowLogs = false; + testWidgets('AsyncPaginatedDataTable2 paging', (WidgetTester tester) async { final DessertDataSourceAsync source = DessertDataSourceAsync(useKDeserts: true);