Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
9.43k
stars
360
forks
source link
Text control is in the ft.DataColumn ,how to set the Text control's margin #3123
Closed
jackwan990 closed 2 weeks ago
Text control is in the ft.DataColumn ,how to set the Text control's margin,eg:
import flet as ft
def main(page: ft.Page): page.add( ft.DataTable( width=700, bgcolor="yellow", border=ft.border.all(2, "red"), border_radius=10, vertical_lines=ft.border.BorderSide(3, "blue"), horizontal_lines=ft.border.BorderSide(1, "green"), sort_column_index=0, sort_ascending=True, heading_row_color=ft.colors.BLACK12, heading_row_height=100, data_row_color={"hovered": "0x30FF0000"}, show_checkbox_column=True, divider_thickness=0,
column_spacing=200,
ft.app(target=main)