Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit 2e8da0b

Browse files
committed
write v0.2 changelog
1 parent 0a13fc8 commit 2e8da0b

File tree

8 files changed

+29
-13
lines changed

8 files changed

+29
-13
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- 'pyproject.toml'
1414
- '.github/workflows/docs.yml'
1515
- 'src/flet_datatable2/**'
16-
- 'examples/flet_datatable2_example/src/main.py'
16+
- 'examples/flet_datatable2_example/src/**'
1717

1818
workflow_dispatch: # Allow manual trigger from the GitHub Actions UI
1919

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased] - 2025-mm-dd
99

10+
## Added
11+
12+
- Deployed online documentation: https://flet-dev.github.io/flet-datatable2/
13+
- New enums:
14+
- `DataColumnSize`
15+
1016
### Changed
1117

12-
TBA
18+
- Refactored `DataTable2`, `DataColumn2` and `DataRow2` controls to use `@flet.control` dataclass-style definition.
19+
- Additionally, they are now all based on their flet counterparts:
20+
- `DataTable2` is now based on `flet.DataTable`
21+
- `DataColumn2` is now based on `flet.DataColumn`
22+
- `DataRow2` is now based on `flet.DataRow`
1323

1424
## [0.1.0] - 2025-03-16
1525

1626
Initial release.
1727

1828

1929
[Unreleased]: https://github.com/flet-dev/flet-datatable2/compare/0.1.0...HEAD
20-
2130
[0.1.0]: https://github.com/flet-dev/flet-datatable2/releases/tag/0.1.0

docs/datatable2.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
::: flet_datatable2.datatable2.DataTable2
1+
::: flet_datatable2.datatable2.DataTable2
2+
options:
3+
filters:
4+
- "!data_row_min_height"
5+
- "!data_row_max_height"

docs/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ To install the `flet-datatable2` package and add it to your project dependencies
3838
pip install flet-datatable2 # (1)!
3939
```
4040

41+
1. After this, you will have to manually add this package to your `requirements.txt` or `pyproject.toml`.
42+
4143
=== "poetry"
4244
```bash
4345
poetry add flet-datatable2
4446
```
4547

46-
1. After this, you will have to manually add this package to your `requirements.txt` or `pyproject.toml`.
4748

4849
## Examples
4950

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ nav:
8181
- DataColumn2: datacolumn2.md
8282
- DataRow2: datarow2.md
8383
- Types:
84-
- DataColumnSize: datacolumn_size.md
84+
- DataColumnSize: types/datacolumn_size.md
8585
- Changelog: changelog.md
8686
- License: license.md
8787

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ docs = [
3838
]
3939

4040
[tool.uv.sources]
41-
flet = { git = "https://github.com/flet-dev/flet", subdirectory = "sdk/python/packages/flet", rev = "v1" }
42-
43-
[tool.setuptools]
44-
license-files = []
41+
# flet = { git = "https://github.com/flet-dev/flet", subdirectory = "sdk/python/packages/flet", rev = "v1" }
4542

4643
[build-system]
4744
requires = ["setuptools"]

src/flet_datatable2/datatable2.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
__all__ = ["DataTable2"]
1010

11+
1112
@ft.control("DataTable2")
1213
class DataTable2(ft.DataTable):
1314
"""
@@ -102,7 +103,7 @@ class DataTable2(ft.DataTable):
102103
default_factory=lambda: ft.Duration(milliseconds=150)
103104
)
104105
"""
105-
Duration of sort arrow animation in milliseconds.
106+
Duration of sort arrow animation.
106107
"""
107108

108109
visible_horizontal_scroll_bar: Optional[bool] = None
@@ -131,3 +132,7 @@ class DataTable2(ft.DataTable):
131132
`DataTable.data_row_min_height` and `DataTable.data_row_max_height`.
132133
"""
133134

135+
# present in parent but of no use in DataTable2
136+
data_row_min_height: None = field(init=False, repr=False, compare=False)
137+
data_row_max_height: None = field(init=False, repr=False, compare=False)
138+

src/flutter/flet_datatable2/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ environment:
1111

1212
dependencies:
1313
data_table_2: ^2.6.0
14-
# flet: 0.26.0
14+
# flet: 0.70.0
1515
flet:
1616
git:
17+
url: https://github.com/flet-dev/flet.git
1718
path: packages/flet
1819
ref: v1
19-
url: https://github.com/flet-dev/flet.git
2020

2121
flutter:
2222
sdk: flutter

0 commit comments

Comments
 (0)