This repository was archived by the owner on Dec 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +25
-24
lines changed
Expand file tree Collapse file tree 5 files changed +25
-24
lines changed Original file line number Diff line number Diff line change 1- # Flet DataTable2
1+ # flet-charts
22
3- DataTable2 Control for Flet based on [ DataTable2 package] ( https://pub.dev/packages/data_table_2 ) for Flutter.
3+ [ ![ pypi] ( https://img.shields.io/pypi/v/flet-charts.svg )] ( https://pypi.python.org/pypi/flet-charts )
4+ [ ![ downloads] ( https://static.pepy.tech/badge/flet-charts/month )] ( https://pepy.tech/project/flet-charts )
5+ [ ![ license] ( https://img.shields.io/github/license/flet-dev/flet-charts.svg )] ( https://github.com/flet-dev/flet-charts/blob/main/LICENSE )
46
5- DataTable2 features fixed/sticky header/top rows and left columns and many other useful features additionally to all the properties of built-in Flet [ DataTable ] ( https://flet.dev/docs/controls/datatable ) .
7+ A Flet extension for creating interactive charts and graphs .
68
7- ## Installation
9+ It is based on the [ charts ] ( https://pub.dev/packages/fl_chart ) Flutter package.
810
9- Add dependency to ` pyproject.toml ` of your Flet app:
11+ ## Documentation
1012
11- ```
12- dependencies = [
13- "flet-datatable2 @ git+https://github.com/flet-dev/flet_datatable2.git",
14- "flet>=0.27.4",
15- ]
16- ```
13+ You can find its documentation [ here] ( https://flet-dev.github.io/flet-charts ) .
1714
18- Build your app:
19- ```
20- flet build macos -v
21- ```
15+ ## Platform Support
2216
23- ## Documentation
17+ This package supports the following platforms:
2418
25- https://flet-dev.github.io/flet-datatable2/
19+ | Platform | Supported |
20+ | ----------| :---------:|
21+ | Windows | ✅ |
22+ | macOS | ✅ |
23+ | Linux | ✅ |
24+ | iOS | ✅ |
25+ | Android | ✅ |
26+ | Web | ✅ |
Original file line number Diff line number Diff line change 1- ::: flet_datatable2.types.DataColumnSize
1+ ::: flet_datatable2.types.DataColumnSize
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class DataColumn2(ft.DataColumn):
1515 Meant to be used as an item of [`DataTable2.columns`][(p).].
1616 """
1717
18- fixed_width : ft .OptionalNumber = None
18+ fixed_width : Optional [ ft .Number ] = None
1919 """
2020 Defines absolute width of the column in pixels (as opposed to relative [`size`][..] used by default).
2121 """
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class DataRow2(ft.DataRow):
2020 Overrides `divider_thickness`.
2121 """
2222
23- specific_row_height : ft .OptionalNumber = None
23+ specific_row_height : Optional [ ft .Number ] = None
2424 """
2525 Specific row height.
2626
Original file line number Diff line number Diff line change 11from dataclasses import field
2- from typing import List , Optional , Union
2+ from typing import Optional , Union
33
44import flet as ft
55
@@ -33,7 +33,7 @@ class DataTable2(ft.DataTable):
3333 Placeholder control shown when there are no data rows.
3434 """
3535
36- bottom_margin : ft .OptionalNumber = None
36+ bottom_margin : Optional [ ft .Number ] = None
3737 """
3838 Adds space after the last row if set.
3939 """
@@ -73,7 +73,7 @@ class DataTable2(ft.DataTable):
7373 When set always overrides/preceeds default arrow icon color.
7474 """
7575
76- min_width : ft .OptionalNumber = None
76+ min_width : Optional [ ft .Number ] = None
7777 """
7878 Minimum table width before horizontal scrolling kicks in.
7979 """
@@ -122,7 +122,7 @@ class DataTable2(ft.DataTable):
122122 Alignment of the checkbox.
123123 """
124124
125- data_row_height : ft .OptionalNumber = None
125+ data_row_height : Optional [ ft .Number ] = None
126126 """
127127 Height of each data row.
128128
You can’t perform that action at this time.
0 commit comments