flet 0.70.0.dev5620__py3-none-any.whl → 0.70.0.dev5771__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of flet might be problematic. Click here for more details.
- flet/__init__.py +2 -0
- flet/controls/adaptive_control.py +16 -13
- flet/controls/base_page.py +5 -5
- flet/controls/border.py +4 -3
- flet/controls/box.py +6 -11
- flet/controls/buttons.py +7 -7
- flet/controls/context.py +2 -2
- flet/controls/control.py +18 -11
- flet/controls/core/animated_switcher.py +9 -13
- flet/controls/core/canvas/canvas.py +1 -1
- flet/controls/core/canvas/line.py +2 -3
- flet/controls/core/canvas/oval.py +1 -1
- flet/controls/core/canvas/shape.py +10 -10
- flet/controls/core/canvas/text.py +1 -1
- flet/controls/core/column.py +5 -5
- flet/controls/core/dismissible.py +8 -8
- flet/controls/core/drag_target.py +5 -4
- flet/controls/core/draggable.py +19 -14
- flet/controls/core/grid_view.py +2 -2
- flet/controls/core/image.py +1 -1
- flet/controls/core/interactive_viewer.py +2 -2
- flet/controls/core/list_view.py +7 -7
- flet/controls/core/markdown.py +1 -1
- flet/controls/core/pagelet.py +10 -10
- flet/controls/core/reorderable_draggable.py +1 -1
- flet/controls/core/responsive_row.py +7 -7
- flet/controls/core/row.py +8 -8
- flet/controls/core/semantics.py +9 -6
- flet/controls/core/shader_mask.py +3 -3
- flet/controls/core/stack.py +4 -4
- flet/controls/core/text.py +7 -7
- flet/controls/core/text_span.py +4 -4
- flet/controls/core/transparent_pointer.py +3 -3
- flet/controls/core/view.py +16 -16
- flet/controls/core/window.py +1 -1
- flet/controls/core/window_drag_area.py +1 -1
- flet/controls/cupertino/cupertino_action_sheet.py +19 -8
- flet/controls/cupertino/cupertino_activity_indicator.py +5 -6
- flet/controls/cupertino/cupertino_alert_dialog.py +7 -10
- flet/controls/cupertino/cupertino_app_bar.py +34 -34
- flet/controls/cupertino/cupertino_bottom_sheet.py +5 -5
- flet/controls/cupertino/cupertino_button.py +4 -4
- flet/controls/cupertino/cupertino_checkbox.py +33 -40
- flet/controls/cupertino/cupertino_context_menu.py +7 -6
- flet/controls/cupertino/cupertino_context_menu_action.py +2 -4
- flet/controls/cupertino/cupertino_date_picker.py +35 -37
- flet/controls/cupertino/cupertino_dialog_action.py +12 -9
- flet/controls/cupertino/cupertino_list_tile.py +24 -36
- flet/controls/cupertino/cupertino_navigation_bar.py +10 -11
- flet/controls/cupertino/cupertino_picker.py +11 -10
- flet/controls/cupertino/cupertino_radio.py +10 -13
- flet/controls/cupertino/cupertino_segmented_button.py +9 -12
- flet/controls/cupertino/cupertino_slider.py +6 -9
- flet/controls/cupertino/cupertino_sliding_segmented_button.py +14 -17
- flet/controls/cupertino/cupertino_switch.py +30 -41
- flet/controls/cupertino/cupertino_textfield.py +14 -18
- flet/controls/cupertino/cupertino_timer_picker.py +11 -8
- flet/controls/exceptions.py +5 -5
- flet/controls/icon_data.py +2 -2
- flet/controls/keys.py +2 -1
- flet/controls/layout_control.py +22 -27
- flet/controls/material/alert_dialog.py +44 -50
- flet/controls/material/app_bar.py +41 -45
- flet/controls/material/auto_complete.py +10 -8
- flet/controls/material/badge.py +32 -28
- flet/controls/material/banner.py +14 -14
- flet/controls/material/bottom_app_bar.py +7 -9
- flet/controls/material/bottom_sheet.py +10 -10
- flet/controls/material/button.py +2 -24
- flet/controls/material/card.py +10 -11
- flet/controls/material/checkbox.py +41 -49
- flet/controls/material/chip.py +44 -47
- flet/controls/material/circle_avatar.py +19 -22
- flet/controls/material/container.py +16 -123
- flet/controls/material/datatable.py +71 -95
- flet/controls/material/date_picker.py +13 -14
- flet/controls/material/date_range_picker.py +183 -0
- flet/controls/material/divider.py +24 -23
- flet/controls/material/dropdown.py +21 -13
- flet/controls/material/expansion_tile.py +5 -6
- flet/controls/material/filled_button.py +1 -1
- flet/controls/material/floating_action_button.py +2 -2
- flet/controls/material/form_field_control.py +64 -56
- flet/controls/material/icon_button.py +29 -65
- flet/controls/material/list_tile.py +41 -32
- flet/controls/material/menu_item_button.py +2 -2
- flet/controls/material/navigation_bar.py +3 -3
- flet/controls/material/navigation_rail.py +11 -11
- flet/controls/material/outlined_button.py +1 -1
- flet/controls/material/popup_menu_button.py +3 -3
- flet/controls/material/progress_bar.py +15 -22
- flet/controls/material/progress_ring.py +8 -8
- flet/controls/material/radio.py +3 -8
- flet/controls/material/range_slider.py +1 -1
- flet/controls/material/search_bar.py +15 -16
- flet/controls/material/segmented_button.py +4 -4
- flet/controls/material/selection_area.py +4 -3
- flet/controls/material/slider.py +16 -16
- flet/controls/material/snack_bar.py +33 -32
- flet/controls/material/submenu_button.py +9 -9
- flet/controls/material/switch.py +13 -13
- flet/controls/material/tabs.py +77 -78
- flet/controls/material/text_button.py +2 -2
- flet/controls/material/textfield.py +4 -6
- flet/controls/material/tooltip.py +16 -15
- flet/controls/material/vertical_divider.py +10 -10
- flet/controls/page.py +4 -4
- flet/controls/painting.py +2 -2
- flet/controls/scrollable_control.py +1 -1
- flet/controls/services/file_picker.py +7 -7
- flet/controls/services/haptic_feedback.py +1 -1
- flet/controls/services/shake_detector.py +1 -1
- flet/controls/services/storage_paths.py +3 -3
- flet/controls/text_style.py +1 -1
- flet/controls/theme.py +669 -608
- flet/controls/types.py +11 -11
- flet/testing/flet_test_app.py +4 -4
- flet/version.py +1 -1
- {flet-0.70.0.dev5620.dist-info → flet-0.70.0.dev5771.dist-info}/METADATA +5 -5
- flet-0.70.0.dev5771.dist-info/RECORD +239 -0
- flet-0.70.0.dev5620.dist-info/RECORD +0 -238
- {flet-0.70.0.dev5620.dist-info → flet-0.70.0.dev5771.dist-info}/WHEEL +0 -0
- {flet-0.70.0.dev5620.dist-info → flet-0.70.0.dev5771.dist-info}/entry_points.txt +0 -0
- {flet-0.70.0.dev5620.dist-info → flet-0.70.0.dev5771.dist-info}/top_level.txt +0 -0
flet/controls/theme.py
CHANGED
|
@@ -33,7 +33,6 @@ from flet.controls.types import (
|
|
|
33
33
|
ClipBehavior,
|
|
34
34
|
ColorValue,
|
|
35
35
|
IconData,
|
|
36
|
-
Locale,
|
|
37
36
|
MainAxisAlignment,
|
|
38
37
|
MouseCursor,
|
|
39
38
|
NotchShape,
|
|
@@ -322,9 +321,10 @@ class ColorScheme:
|
|
|
322
321
|
@dataclass
|
|
323
322
|
class TextTheme:
|
|
324
323
|
"""
|
|
325
|
-
Customizes [`Text`][flet.
|
|
324
|
+
Customizes [`Text`][flet.] styles.
|
|
326
325
|
|
|
327
|
-
Material 3 design
|
|
326
|
+
Material 3 design
|
|
327
|
+
[defines](http://localhost:3000/docs/controls/text#pre-defined-theme-text-styles)
|
|
328
328
|
5 groups of text styles with 3 sizes in each group: "Display", "Headline", "Title",
|
|
329
329
|
"Label" and "Body" which are used across Flet controls.
|
|
330
330
|
"""
|
|
@@ -382,8 +382,8 @@ class TextTheme:
|
|
|
382
382
|
Largest of the label styles. Label styles are smaller, utilitarian styles, used for
|
|
383
383
|
areas of the UI such as text inside of components or very small supporting text in
|
|
384
384
|
the content body, like captions. Used for text on
|
|
385
|
-
[`Button`][flet.
|
|
386
|
-
[`OutlinedButton`][flet.
|
|
385
|
+
[`Button`][flet.], [`TextButton`][flet.] and
|
|
386
|
+
[`OutlinedButton`][flet.].
|
|
387
387
|
"""
|
|
388
388
|
|
|
389
389
|
label_medium: Optional[TextStyle] = None
|
|
@@ -501,97 +501,97 @@ class ScrollbarTheme:
|
|
|
501
501
|
@dataclass
|
|
502
502
|
class TabBarTheme:
|
|
503
503
|
"""
|
|
504
|
-
Customizes the appearance of [`TabBar`][flet.
|
|
504
|
+
Customizes the appearance of [`TabBar`][flet.] control across the app.
|
|
505
505
|
"""
|
|
506
506
|
|
|
507
507
|
indicator_size: Optional[TabBarIndicatorSize] = None
|
|
508
508
|
"""
|
|
509
509
|
Overrides the default value for
|
|
510
|
-
[`TabBar.indicator_size`][flet.
|
|
510
|
+
[`TabBar.indicator_size`][flet.].
|
|
511
511
|
"""
|
|
512
512
|
|
|
513
513
|
indicator: Optional[UnderlineTabIndicator] = None
|
|
514
514
|
"""
|
|
515
515
|
Overrides the default value for
|
|
516
|
-
[`TabBar.indicator`][flet.
|
|
516
|
+
[`TabBar.indicator`][flet.].
|
|
517
517
|
"""
|
|
518
518
|
|
|
519
519
|
indicator_animation: Optional[TabIndicatorAnimation] = None
|
|
520
520
|
"""
|
|
521
521
|
Overrides the default value for
|
|
522
|
-
[`TabBar.indicator_animation`][flet.
|
|
522
|
+
[`TabBar.indicator_animation`][flet.].
|
|
523
523
|
"""
|
|
524
524
|
|
|
525
525
|
splash_border_radius: Optional[BorderRadiusValue] = None
|
|
526
526
|
"""
|
|
527
527
|
Overrides the default value for
|
|
528
|
-
[`TabBar.splash_border_radius`][flet.
|
|
528
|
+
[`TabBar.splash_border_radius`][flet.].
|
|
529
529
|
"""
|
|
530
530
|
|
|
531
531
|
tab_alignment: Optional[TabAlignment] = None
|
|
532
532
|
"""
|
|
533
533
|
Overrides the default value for
|
|
534
|
-
[`TabBar.tab_alignment`][flet.
|
|
534
|
+
[`TabBar.tab_alignment`][flet.].
|
|
535
535
|
"""
|
|
536
536
|
|
|
537
537
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
538
538
|
"""
|
|
539
539
|
Overrides the default value for
|
|
540
|
-
[`TabBar.overlay_color`][flet.
|
|
540
|
+
[`TabBar.overlay_color`][flet.].
|
|
541
541
|
"""
|
|
542
542
|
|
|
543
543
|
divider_color: Optional[ColorValue] = None
|
|
544
544
|
"""
|
|
545
545
|
Overrides the default value for
|
|
546
|
-
[`TabBar.divider_color`][flet.
|
|
546
|
+
[`TabBar.divider_color`][flet.].
|
|
547
547
|
"""
|
|
548
548
|
|
|
549
549
|
indicator_color: Optional[ColorValue] = None
|
|
550
550
|
"""
|
|
551
551
|
Overrides the default value for
|
|
552
|
-
[`TabBar.indicator_color`][flet.
|
|
552
|
+
[`TabBar.indicator_color`][flet.].
|
|
553
553
|
"""
|
|
554
554
|
|
|
555
555
|
mouse_cursor: Optional[ControlStateValue[Optional[MouseCursor]]] = None
|
|
556
556
|
"""
|
|
557
557
|
Overrides the default value for
|
|
558
|
-
[`TabBar.mouse_cursor`][flet.
|
|
558
|
+
[`TabBar.mouse_cursor`][flet.].
|
|
559
559
|
"""
|
|
560
560
|
|
|
561
561
|
divider_height: Optional[Number] = None
|
|
562
562
|
"""
|
|
563
563
|
Overrides the default value for
|
|
564
|
-
[`TabBar.divider_height`][flet.
|
|
564
|
+
[`TabBar.divider_height`][flet.].
|
|
565
565
|
"""
|
|
566
566
|
|
|
567
567
|
label_color: Optional[ColorValue] = None
|
|
568
568
|
"""
|
|
569
569
|
Overrides the default value for
|
|
570
|
-
[`TabBar.label_color`][flet.
|
|
570
|
+
[`TabBar.label_color`][flet.].
|
|
571
571
|
"""
|
|
572
572
|
|
|
573
573
|
unselected_label_color: Optional[ColorValue] = None
|
|
574
574
|
"""
|
|
575
575
|
Overrides the default value for
|
|
576
|
-
[`TabBar.unselected_label_color`][flet.
|
|
576
|
+
[`TabBar.unselected_label_color`][flet.].
|
|
577
577
|
"""
|
|
578
578
|
|
|
579
579
|
label_padding: Optional[PaddingValue] = None
|
|
580
580
|
"""
|
|
581
581
|
Overrides the default value for
|
|
582
|
-
[`TabBar.label_padding`][flet.
|
|
582
|
+
[`TabBar.label_padding`][flet.].
|
|
583
583
|
"""
|
|
584
584
|
|
|
585
585
|
label_text_style: Optional[TextStyle] = None
|
|
586
586
|
"""
|
|
587
587
|
Overrides the default value for
|
|
588
|
-
[`TabBar.label_text_style`][flet.
|
|
588
|
+
[`TabBar.label_text_style`][flet.].
|
|
589
589
|
"""
|
|
590
590
|
|
|
591
591
|
unselected_label_text_style: Optional[TextStyle] = None
|
|
592
592
|
"""
|
|
593
593
|
Overrides the default value for
|
|
594
|
-
[`TabBar.unselected_label_text_style`][flet.
|
|
594
|
+
[`TabBar.unselected_label_text_style`][flet.].
|
|
595
595
|
"""
|
|
596
596
|
|
|
597
597
|
|
|
@@ -648,391 +648,391 @@ class SystemOverlayStyle:
|
|
|
648
648
|
@dataclass
|
|
649
649
|
class DialogTheme:
|
|
650
650
|
"""
|
|
651
|
-
Customizes the appearance of [`AlertDialog`][flet.
|
|
651
|
+
Customizes the appearance of [`AlertDialog`][flet.] across the app.
|
|
652
652
|
"""
|
|
653
653
|
|
|
654
654
|
bgcolor: Optional[ColorValue] = None
|
|
655
655
|
"""
|
|
656
|
-
Overrides the default value of [`AlertDialog.bgcolor`][flet.
|
|
657
|
-
all descendant [`AlertDialog`][flet.
|
|
656
|
+
Overrides the default value of [`AlertDialog.bgcolor`][flet.] in
|
|
657
|
+
all descendant [`AlertDialog`][flet.] controls.
|
|
658
658
|
"""
|
|
659
659
|
|
|
660
660
|
shadow_color: Optional[ColorValue] = None
|
|
661
661
|
"""
|
|
662
662
|
Overrides the default value of
|
|
663
|
-
[`AlertDialog.shadow_color`][flet.
|
|
664
|
-
[`AlertDialog`][flet.
|
|
663
|
+
[`AlertDialog.shadow_color`][flet.] in all descendant
|
|
664
|
+
[`AlertDialog`][flet.] controls.
|
|
665
665
|
"""
|
|
666
666
|
|
|
667
667
|
icon_color: Optional[ColorValue] = None
|
|
668
668
|
"""
|
|
669
|
-
Used to configure the [`IconTheme`][flet.
|
|
670
|
-
[`AlertDialog.icon`][flet.
|
|
669
|
+
Used to configure the [`IconTheme`][flet.] for the
|
|
670
|
+
[`AlertDialog.icon`][flet.] control.
|
|
671
671
|
"""
|
|
672
672
|
|
|
673
673
|
elevation: Optional[Number] = None
|
|
674
674
|
"""
|
|
675
675
|
Overrides the default value of
|
|
676
|
-
[`AlertDialog.elevation`][flet.
|
|
676
|
+
[`AlertDialog.elevation`][flet.] in all descendant dialog
|
|
677
677
|
controls.
|
|
678
678
|
"""
|
|
679
679
|
|
|
680
680
|
shape: Optional[OutlinedBorder] = None
|
|
681
681
|
"""
|
|
682
|
-
Overrides the default value of [`AlertDialog.shape`][flet.
|
|
683
|
-
descendant [`AlertDialog`][flet.
|
|
682
|
+
Overrides the default value of [`AlertDialog.shape`][flet.] in all
|
|
683
|
+
descendant [`AlertDialog`][flet.] controls.
|
|
684
684
|
"""
|
|
685
685
|
|
|
686
686
|
title_text_style: Optional[TextStyle] = None
|
|
687
687
|
"""
|
|
688
688
|
Overrides the default value of
|
|
689
|
-
[`AlertDialog.title_text_style`][flet.
|
|
690
|
-
descendant [`AlertDialog`][flet.
|
|
689
|
+
[`AlertDialog.title_text_style`][flet.] in all
|
|
690
|
+
descendant [`AlertDialog`][flet.] controls.
|
|
691
691
|
"""
|
|
692
692
|
|
|
693
693
|
content_text_style: Optional[TextStyle] = None
|
|
694
694
|
"""
|
|
695
695
|
Overrides the default value of
|
|
696
|
-
[`AlertDialog.content_text_style`]
|
|
697
|
-
descendant [`AlertDialog`][flet.
|
|
696
|
+
[`AlertDialog.content_text_style`][flet.] in all
|
|
697
|
+
descendant [`AlertDialog`][flet.] controls.
|
|
698
698
|
"""
|
|
699
699
|
|
|
700
700
|
alignment: Optional[Alignment] = None
|
|
701
701
|
"""
|
|
702
|
-
Overrides the default value of [`AlertDialog.alignment`][flet.
|
|
703
|
-
in all descendant [`AlertDialog`][flet.
|
|
702
|
+
Overrides the default value of [`AlertDialog.alignment`][flet.]
|
|
703
|
+
in all descendant [`AlertDialog`][flet.] controls.
|
|
704
704
|
"""
|
|
705
705
|
|
|
706
706
|
actions_padding: Optional[PaddingValue] = None
|
|
707
707
|
"""
|
|
708
708
|
Overrides the default value of
|
|
709
|
-
[`AlertDialog.actions_padding`][flet.
|
|
710
|
-
[`AlertDialog`][flet.
|
|
709
|
+
[`AlertDialog.actions_padding`][flet.] in all descendant
|
|
710
|
+
[`AlertDialog`][flet.] controls.
|
|
711
711
|
"""
|
|
712
712
|
|
|
713
713
|
clip_behavior: Optional[ClipBehavior] = None
|
|
714
714
|
"""
|
|
715
715
|
Overrides the default value of
|
|
716
|
-
[`AlertDialog.clip_behavior`][flet.
|
|
717
|
-
[`AlertDialog`][flet.
|
|
716
|
+
[`AlertDialog.clip_behavior`][flet.] in all descendant
|
|
717
|
+
[`AlertDialog`][flet.] controls.
|
|
718
718
|
"""
|
|
719
719
|
|
|
720
720
|
barrier_color: Optional[ColorValue] = None
|
|
721
721
|
"""
|
|
722
722
|
Overrides the default value of
|
|
723
|
-
[`AlertDialog.barrier_color`][flet.
|
|
724
|
-
[`AlertDialog`][flet.
|
|
723
|
+
[`AlertDialog.barrier_color`][flet.] in all descendant
|
|
724
|
+
[`AlertDialog`][flet.] controls.
|
|
725
725
|
"""
|
|
726
726
|
|
|
727
727
|
inset_padding: Optional[PaddingValue] = None
|
|
728
728
|
"""
|
|
729
729
|
Overrides the default value of
|
|
730
|
-
[`AlertDialog.inset_padding`][flet.
|
|
731
|
-
[`AlertDialog`][flet.
|
|
730
|
+
[`AlertDialog.inset_padding`][flet.] in all descendant
|
|
731
|
+
[`AlertDialog`][flet.] controls.
|
|
732
732
|
"""
|
|
733
733
|
|
|
734
734
|
|
|
735
735
|
@dataclass
|
|
736
736
|
class ButtonTheme:
|
|
737
737
|
"""
|
|
738
|
-
Customizes the appearance of [`Button`][flet.
|
|
738
|
+
Customizes the appearance of [`Button`][flet.] across the app.
|
|
739
739
|
"""
|
|
740
740
|
|
|
741
741
|
style: Optional[ButtonStyle] = None
|
|
742
742
|
"""
|
|
743
743
|
Overrides the default value of
|
|
744
|
-
[`Button.style`][flet.
|
|
745
|
-
[`Button`][flet.
|
|
744
|
+
[`Button.style`][flet.] in all descendant
|
|
745
|
+
[`Button`][flet.] controls.
|
|
746
746
|
"""
|
|
747
747
|
|
|
748
748
|
|
|
749
749
|
@dataclass
|
|
750
750
|
class OutlinedButtonTheme:
|
|
751
751
|
"""
|
|
752
|
-
Customizes the appearance of [`OutlinedButton`][flet.
|
|
752
|
+
Customizes the appearance of [`OutlinedButton`][flet.] across the app.
|
|
753
753
|
"""
|
|
754
754
|
|
|
755
755
|
style: Optional[ButtonStyle] = None
|
|
756
756
|
"""
|
|
757
757
|
Overrides the default value of
|
|
758
|
-
[`OutlinedButton.style`][flet.
|
|
759
|
-
[`OutlinedButton`][flet.
|
|
758
|
+
[`OutlinedButton.style`][flet.] in all descendant
|
|
759
|
+
[`OutlinedButton`][flet.] controls.
|
|
760
760
|
"""
|
|
761
761
|
|
|
762
762
|
|
|
763
763
|
@dataclass
|
|
764
764
|
class TextButtonTheme:
|
|
765
765
|
"""
|
|
766
|
-
Customizes the appearance of [`TextButton`][flet.
|
|
766
|
+
Customizes the appearance of [`TextButton`][flet.] across the app.
|
|
767
767
|
"""
|
|
768
768
|
|
|
769
769
|
style: Optional[ButtonStyle] = None
|
|
770
770
|
"""
|
|
771
771
|
Overrides the default value of
|
|
772
|
-
[`TextButton.style`][flet.
|
|
773
|
-
[`TextButton`][flet.
|
|
772
|
+
[`TextButton.style`][flet.] in all descendant
|
|
773
|
+
[`TextButton`][flet.] controls.
|
|
774
774
|
"""
|
|
775
775
|
|
|
776
776
|
|
|
777
777
|
@dataclass
|
|
778
778
|
class FilledButtonTheme:
|
|
779
779
|
"""
|
|
780
|
-
Customizes the appearance of [`FilledButton`][flet.
|
|
780
|
+
Customizes the appearance of [`FilledButton`][flet.] across the app.
|
|
781
781
|
"""
|
|
782
782
|
|
|
783
783
|
style: Optional[ButtonStyle] = None
|
|
784
784
|
"""
|
|
785
785
|
Overrides the default value of
|
|
786
|
-
[`FilledButton.style`][flet.
|
|
787
|
-
[`FilledButton`][flet.
|
|
786
|
+
[`FilledButton.style`][flet.] in all descendant
|
|
787
|
+
[`FilledButton`][flet.] controls.
|
|
788
788
|
"""
|
|
789
789
|
|
|
790
790
|
|
|
791
791
|
@dataclass
|
|
792
792
|
class IconButtonTheme:
|
|
793
793
|
"""
|
|
794
|
-
Customizes the appearance of [`IconButton`][flet.
|
|
794
|
+
Customizes the appearance of [`IconButton`][flet.] across the app.
|
|
795
795
|
"""
|
|
796
796
|
|
|
797
797
|
style: Optional[ButtonStyle] = None
|
|
798
798
|
"""
|
|
799
799
|
Overrides the default value of
|
|
800
|
-
[`IconButton.style`][flet.
|
|
801
|
-
[`IconButton`][flet.
|
|
800
|
+
[`IconButton.style`][flet.] in all descendant
|
|
801
|
+
[`IconButton`][flet.] controls.
|
|
802
802
|
"""
|
|
803
803
|
|
|
804
804
|
|
|
805
805
|
@dataclass
|
|
806
806
|
class BottomSheetTheme:
|
|
807
807
|
"""
|
|
808
|
-
Customizes the appearance of [`BottomSheet`][flet.
|
|
808
|
+
Customizes the appearance of [`BottomSheet`][flet.] across the app.
|
|
809
809
|
"""
|
|
810
810
|
|
|
811
811
|
bgcolor: Optional[ColorValue] = None
|
|
812
812
|
"""
|
|
813
|
-
Overrides the default value of [`BottomSheet.bgcolor`][flet.
|
|
814
|
-
all descendant [`BottomSheet`][flet.
|
|
813
|
+
Overrides the default value of [`BottomSheet.bgcolor`][flet.] in
|
|
814
|
+
all descendant [`BottomSheet`][flet.] controls.
|
|
815
815
|
"""
|
|
816
816
|
|
|
817
817
|
elevation: Optional[Number] = None
|
|
818
818
|
"""
|
|
819
819
|
Overrides the default value of
|
|
820
|
-
[`BottomSheet.elevation`][flet.
|
|
821
|
-
[`BottomSheet`][flet.
|
|
820
|
+
[`BottomSheet.elevation`][flet.] in all descendant
|
|
821
|
+
[`BottomSheet`][flet.] controls.
|
|
822
822
|
"""
|
|
823
823
|
|
|
824
824
|
shape: Optional[OutlinedBorder] = None
|
|
825
825
|
"""
|
|
826
|
-
Overrides the default value of [`BottomSheet.shape`][flet.
|
|
827
|
-
descendant [`BottomSheet`][flet.
|
|
826
|
+
Overrides the default value of [`BottomSheet.shape`][flet.] in all
|
|
827
|
+
descendant [`BottomSheet`][flet.] controls.
|
|
828
828
|
"""
|
|
829
829
|
|
|
830
830
|
show_drag_handle: Optional[bool] = None
|
|
831
831
|
"""
|
|
832
832
|
Overrides the default value of
|
|
833
|
-
[`BottomSheet.show_drag_handle`][flet.
|
|
834
|
-
descendant [`BottomSheet`][flet.
|
|
833
|
+
[`BottomSheet.show_drag_handle`][flet.] in all
|
|
834
|
+
descendant [`BottomSheet`][flet.] controls.
|
|
835
835
|
"""
|
|
836
836
|
|
|
837
837
|
clip_behavior: Optional[ClipBehavior] = None
|
|
838
838
|
"""
|
|
839
839
|
Overrides the default value of
|
|
840
|
-
[`BottomSheet.clip_behavior`][flet.
|
|
841
|
-
descendant [`BottomSheet`][flet.
|
|
840
|
+
[`BottomSheet.clip_behavior`][flet.] in all
|
|
841
|
+
descendant [`BottomSheet`][flet.] controls.
|
|
842
842
|
"""
|
|
843
843
|
|
|
844
844
|
size_constraints: Optional[BoxConstraints] = None
|
|
845
845
|
"""
|
|
846
846
|
Overrides the default value of
|
|
847
|
-
[`BottomSheet.size_constraints`][flet.
|
|
848
|
-
descendant [`BottomSheet`][flet.
|
|
847
|
+
[`BottomSheet.size_constraints`][flet.] in all
|
|
848
|
+
descendant [`BottomSheet`][flet.] controls.
|
|
849
849
|
"""
|
|
850
850
|
|
|
851
851
|
barrier_color: Optional[ColorValue] = None
|
|
852
852
|
"""
|
|
853
853
|
Overrides the default value of
|
|
854
|
-
[`BottomSheet.barrier_color`][flet.
|
|
855
|
-
descendant [`BottomSheet`][flet.
|
|
854
|
+
[`BottomSheet.barrier_color`][flet.] in all
|
|
855
|
+
descendant [`BottomSheet`][flet.] controls.
|
|
856
856
|
"""
|
|
857
857
|
|
|
858
858
|
drag_handle_color: Optional[ColorValue] = None
|
|
859
859
|
"""
|
|
860
860
|
Overrides the default value of drag handle color in all descendant
|
|
861
|
-
[`BottomSheet`][flet.
|
|
861
|
+
[`BottomSheet`][flet.] controls.
|
|
862
862
|
"""
|
|
863
863
|
|
|
864
864
|
shadow_color: Optional[ColorValue] = None
|
|
865
865
|
"""
|
|
866
866
|
Overrides the default value of shadow color in all descendant
|
|
867
|
-
[`BottomSheet`][flet.
|
|
867
|
+
[`BottomSheet`][flet.] controls.
|
|
868
868
|
"""
|
|
869
869
|
|
|
870
870
|
|
|
871
871
|
@dataclass
|
|
872
872
|
class CardTheme:
|
|
873
873
|
"""
|
|
874
|
-
Customizes the appearance of [`Card`][flet.
|
|
874
|
+
Customizes the appearance of [`Card`][flet.] across the app.
|
|
875
875
|
"""
|
|
876
876
|
|
|
877
877
|
color: Optional[ColorValue] = None
|
|
878
878
|
"""
|
|
879
|
-
Overrides the default value of [`Card.clip_behavior`][flet.
|
|
880
|
-
all descendant [`Card`][flet.
|
|
879
|
+
Overrides the default value of [`Card.clip_behavior`][flet.] in
|
|
880
|
+
all descendant [`Card`][flet.] controls.
|
|
881
881
|
"""
|
|
882
882
|
|
|
883
883
|
shadow_color: Optional[ColorValue] = None
|
|
884
884
|
"""
|
|
885
|
-
Overrides the default value of [`Card.shadow_color`][flet.
|
|
886
|
-
all descendant [`Card`][flet.
|
|
885
|
+
Overrides the default value of [`Card.shadow_color`][flet.] in
|
|
886
|
+
all descendant [`Card`][flet.] controls.
|
|
887
887
|
"""
|
|
888
888
|
|
|
889
889
|
elevation: Optional[Number] = None
|
|
890
890
|
"""
|
|
891
891
|
Overrides the default value of
|
|
892
|
-
[`Card.elevation`][flet.
|
|
892
|
+
[`Card.elevation`][flet.] in all descendant [`Card`][flet.]
|
|
893
893
|
controls.
|
|
894
894
|
"""
|
|
895
895
|
|
|
896
896
|
shape: Optional[OutlinedBorder] = None
|
|
897
897
|
"""
|
|
898
|
-
Overrides the default value of [`Card.shape`][flet.
|
|
899
|
-
[`Card`][flet.
|
|
898
|
+
Overrides the default value of [`Card.shape`][flet.] in all descendant
|
|
899
|
+
[`Card`][flet.] controls.
|
|
900
900
|
"""
|
|
901
901
|
|
|
902
902
|
clip_behavior: Optional[ClipBehavior] = None
|
|
903
903
|
"""
|
|
904
|
-
Overrides the default value of [`Card.clip_behavior`][flet.
|
|
905
|
-
all descendant [`Card`][flet.
|
|
904
|
+
Overrides the default value of [`Card.clip_behavior`][flet.] in
|
|
905
|
+
all descendant [`Card`][flet.] controls.
|
|
906
906
|
"""
|
|
907
907
|
|
|
908
908
|
margin: Optional[MarginValue] = None
|
|
909
909
|
"""
|
|
910
|
-
Overrides the default value of [`Card.margin`][flet.
|
|
911
|
-
[`Card`][flet.
|
|
910
|
+
Overrides the default value of [`Card.margin`][flet.] in all descendant
|
|
911
|
+
[`Card`][flet.] controls.
|
|
912
912
|
"""
|
|
913
913
|
|
|
914
914
|
|
|
915
915
|
@dataclass
|
|
916
916
|
class ChipTheme:
|
|
917
917
|
"""
|
|
918
|
-
Customizes the appearance of [`Chip`][flet.
|
|
918
|
+
Customizes the appearance of [`Chip`][flet.] across the app.
|
|
919
919
|
"""
|
|
920
920
|
|
|
921
921
|
color: Optional[ControlStateValue[ColorValue]] = None
|
|
922
922
|
"""
|
|
923
|
-
Overrides the default value of [`Chip.color`][flet.
|
|
924
|
-
[`Chip`][flet.
|
|
923
|
+
Overrides the default value of [`Chip.color`][flet.] in all descendant
|
|
924
|
+
[`Chip`][flet.] controls.
|
|
925
925
|
"""
|
|
926
926
|
|
|
927
927
|
bgcolor: Optional[ColorValue] = None
|
|
928
928
|
"""
|
|
929
|
-
Overrides the default value of [`Chip.bgcolor`][flet.
|
|
930
|
-
descendant [`Chip`][flet.
|
|
929
|
+
Overrides the default value of [`Chip.bgcolor`][flet.] in all
|
|
930
|
+
descendant [`Chip`][flet.] controls.
|
|
931
931
|
"""
|
|
932
932
|
|
|
933
933
|
shadow_color: Optional[ColorValue] = None
|
|
934
934
|
"""
|
|
935
|
-
Overrides the default value of [`Chip.shadow_color`][flet.
|
|
936
|
-
descendant [`Chip`][flet.
|
|
935
|
+
Overrides the default value of [`Chip.shadow_color`][flet.] in all
|
|
936
|
+
descendant [`Chip`][flet.] controls.
|
|
937
937
|
"""
|
|
938
938
|
|
|
939
939
|
selected_shadow_color: Optional[ColorValue] = None
|
|
940
940
|
"""
|
|
941
941
|
Overrides the default value of
|
|
942
|
-
[`Chip.selected_shadow_color`][flet.
|
|
943
|
-
[`Chip`][flet.
|
|
942
|
+
[`Chip.selected_shadow_color`][flet.] in all descendant
|
|
943
|
+
[`Chip`][flet.] controls.
|
|
944
944
|
"""
|
|
945
945
|
|
|
946
946
|
disabled_color: Optional[ColorValue] = None
|
|
947
947
|
"""
|
|
948
948
|
Overrides the default value of
|
|
949
|
-
[`Chip.disabled_color`][flet.
|
|
950
|
-
[`Chip`][flet.
|
|
949
|
+
[`Chip.disabled_color`][flet.] in all descendant
|
|
950
|
+
[`Chip`][flet.] controls.
|
|
951
951
|
"""
|
|
952
952
|
|
|
953
953
|
selected_color: Optional[ColorValue] = None
|
|
954
954
|
"""
|
|
955
955
|
Overrides the default value of
|
|
956
|
-
[`Chip.selected_color`][flet.
|
|
957
|
-
[`Chip`][flet.
|
|
956
|
+
[`Chip.selected_color`][flet.] in all descendant
|
|
957
|
+
[`Chip`][flet.] controls.
|
|
958
958
|
"""
|
|
959
959
|
|
|
960
960
|
check_color: Optional[ColorValue] = None
|
|
961
961
|
"""
|
|
962
962
|
Overrides the default value of
|
|
963
|
-
[`Chip.check_color`][flet.
|
|
964
|
-
[`Chip`][flet.
|
|
963
|
+
[`Chip.check_color`][flet.] in all descendant
|
|
964
|
+
[`Chip`][flet.] controls.
|
|
965
965
|
"""
|
|
966
966
|
|
|
967
967
|
delete_icon_color: Optional[ColorValue] = None
|
|
968
968
|
"""
|
|
969
969
|
Overrides the default value of
|
|
970
|
-
[`Chip.delete_icon_color`][flet.
|
|
971
|
-
[`Chip`][flet.
|
|
970
|
+
[`Chip.delete_icon_color`][flet.] in all descendant
|
|
971
|
+
[`Chip`][flet.] controls.
|
|
972
972
|
"""
|
|
973
973
|
|
|
974
974
|
elevation: Optional[Number] = None
|
|
975
975
|
"""
|
|
976
|
-
Overrides the default value of [`Chip.elevation`][flet.
|
|
977
|
-
descendant [`Chip`][flet.
|
|
976
|
+
Overrides the default value of [`Chip.elevation`][flet.] in all
|
|
977
|
+
descendant [`Chip`][flet.] controls.
|
|
978
978
|
"""
|
|
979
979
|
|
|
980
980
|
elevation_on_click: Optional[Number] = None
|
|
981
981
|
"""
|
|
982
982
|
Overrides the default value of
|
|
983
|
-
[`Chip.elevation_on_click`][flet.
|
|
984
|
-
[`Chip`][flet.
|
|
983
|
+
[`Chip.elevation_on_click`][flet.] in all descendant
|
|
984
|
+
[`Chip`][flet.] controls.
|
|
985
985
|
"""
|
|
986
986
|
|
|
987
987
|
shape: Optional[OutlinedBorder] = None
|
|
988
988
|
"""
|
|
989
|
-
Overrides the default value of [`Chip.shape`][flet.
|
|
990
|
-
[`Chip`][flet.
|
|
989
|
+
Overrides the default value of [`Chip.shape`][flet.] in all descendant
|
|
990
|
+
[`Chip`][flet.] controls.
|
|
991
991
|
"""
|
|
992
992
|
|
|
993
993
|
padding: Optional[PaddingValue] = None
|
|
994
994
|
"""
|
|
995
|
-
Overrides the default value of [`Chip.padding`][flet.
|
|
996
|
-
descendant [`Chip`][flet.
|
|
995
|
+
Overrides the default value of [`Chip.padding`][flet.] in all
|
|
996
|
+
descendant [`Chip`][flet.] controls.
|
|
997
997
|
"""
|
|
998
998
|
|
|
999
999
|
label_padding: Optional[PaddingValue] = None
|
|
1000
1000
|
"""
|
|
1001
|
-
Overrides the default value of [`Chip.label_padding`][flet.
|
|
1002
|
-
all descendant [`Chip`][flet.
|
|
1001
|
+
Overrides the default value of [`Chip.label_padding`][flet.] in
|
|
1002
|
+
all descendant [`Chip`][flet.] controls.
|
|
1003
1003
|
"""
|
|
1004
1004
|
|
|
1005
1005
|
label_text_style: Optional[TextStyle] = None
|
|
1006
1006
|
"""
|
|
1007
1007
|
Overrides the default value of
|
|
1008
|
-
[`Chip.label_text_style`][flet.
|
|
1009
|
-
[`Chip`][flet.
|
|
1008
|
+
[`Chip.label_text_style`][flet.] in all descendant
|
|
1009
|
+
[`Chip`][flet.] controls.
|
|
1010
1010
|
"""
|
|
1011
1011
|
|
|
1012
1012
|
border_side: Optional[BorderSide] = None
|
|
1013
1013
|
"""
|
|
1014
|
-
Overrides the default value of [`Chip.border_side`][flet.
|
|
1015
|
-
descendant [`Chip`][flet.
|
|
1014
|
+
Overrides the default value of [`Chip.border_side`][flet.] in all
|
|
1015
|
+
descendant [`Chip`][flet.] controls.
|
|
1016
1016
|
"""
|
|
1017
1017
|
|
|
1018
1018
|
show_checkmark: Optional[bool] = None
|
|
1019
1019
|
"""
|
|
1020
|
-
Overrides the default value of [`Chip.show_checkmark`][flet.
|
|
1021
|
-
all descendant [`Chip`][flet.
|
|
1020
|
+
Overrides the default value of [`Chip.show_checkmark`][flet.] in
|
|
1021
|
+
all descendant [`Chip`][flet.] controls.
|
|
1022
1022
|
"""
|
|
1023
1023
|
|
|
1024
1024
|
leading_size_constraints: Optional[BoxConstraints] = None
|
|
1025
1025
|
"""
|
|
1026
1026
|
Overrides the default value of
|
|
1027
|
-
[`Chip.leading_size_constraints`][flet.
|
|
1028
|
-
descendant [`Chip`][flet.
|
|
1027
|
+
[`Chip.leading_size_constraints`][flet.] in all
|
|
1028
|
+
descendant [`Chip`][flet.] controls.
|
|
1029
1029
|
"""
|
|
1030
1030
|
|
|
1031
1031
|
delete_icon_size_constraints: Optional[BoxConstraints] = None
|
|
1032
1032
|
"""
|
|
1033
1033
|
Overrides the default value of
|
|
1034
|
-
[`Chip.delete_icon_size_constraints`][flet.
|
|
1035
|
-
all descendant [`Chip`][flet.
|
|
1034
|
+
[`Chip.delete_icon_size_constraints`][flet.] in
|
|
1035
|
+
all descendant [`Chip`][flet.] controls.
|
|
1036
1036
|
"""
|
|
1037
1037
|
|
|
1038
1038
|
brightness: Optional[Brightness] = None
|
|
@@ -1048,14 +1048,14 @@ class ChipTheme:
|
|
|
1048
1048
|
@dataclass
|
|
1049
1049
|
class FloatingActionButtonTheme:
|
|
1050
1050
|
"""
|
|
1051
|
-
Customizes the appearance of [`FloatingActionButton`][flet.
|
|
1051
|
+
Customizes the appearance of [`FloatingActionButton`][flet.]
|
|
1052
1052
|
across the app.
|
|
1053
1053
|
"""
|
|
1054
1054
|
|
|
1055
1055
|
bgcolor: Optional[ColorValue] = None
|
|
1056
1056
|
"""
|
|
1057
1057
|
Color to be used for the unselected, enabled
|
|
1058
|
-
[`FloatingActionButton`][flet.
|
|
1058
|
+
[`FloatingActionButton`][flet.]'s background.
|
|
1059
1059
|
"""
|
|
1060
1060
|
|
|
1061
1061
|
hover_color: Optional[ColorValue] = None
|
|
@@ -1072,20 +1072,20 @@ class FloatingActionButtonTheme:
|
|
|
1072
1072
|
foreground_color: Optional[ColorValue] = None
|
|
1073
1073
|
"""
|
|
1074
1074
|
Color to be used for the unselected, enabled
|
|
1075
|
-
[`FloatingActionButton`][flet.
|
|
1075
|
+
[`FloatingActionButton`][flet.]'s foreground.
|
|
1076
1076
|
"""
|
|
1077
1077
|
|
|
1078
1078
|
splash_color: Optional[ColorValue] = None
|
|
1079
1079
|
"""
|
|
1080
1080
|
Overrides the default value of
|
|
1081
|
-
[`FloatingActionButton.splash_color`][flet.
|
|
1082
|
-
descendant [`FloatingActionButton`][flet.
|
|
1081
|
+
[`FloatingActionButton.splash_color`][flet.] in all
|
|
1082
|
+
descendant [`FloatingActionButton`][flet.] controls.
|
|
1083
1083
|
"""
|
|
1084
1084
|
|
|
1085
1085
|
elevation: Optional[Number] = None
|
|
1086
1086
|
"""
|
|
1087
1087
|
The z-coordinate to be used for the unselected, enabled
|
|
1088
|
-
[`FloatingActionButton`][flet.
|
|
1088
|
+
[`FloatingActionButton`][flet.]'s elevation foreground.
|
|
1089
1089
|
"""
|
|
1090
1090
|
|
|
1091
1091
|
focus_elevation: Optional[Number] = None
|
|
@@ -1103,56 +1103,57 @@ class FloatingActionButtonTheme:
|
|
|
1103
1103
|
highlight_elevation: Optional[Number] = None
|
|
1104
1104
|
"""
|
|
1105
1105
|
The z-coordinate to be used for the selected, enabled
|
|
1106
|
-
[`FloatingActionButton`][flet.
|
|
1106
|
+
[`FloatingActionButton`][flet.]'s elevation foreground.
|
|
1107
1107
|
"""
|
|
1108
1108
|
|
|
1109
1109
|
disabled_elevation: Optional[Number] = None
|
|
1110
1110
|
"""
|
|
1111
1111
|
The z-coordinate to be used for the disabled
|
|
1112
|
-
[`FloatingActionButton`][flet.
|
|
1112
|
+
[`FloatingActionButton`][flet.]'s elevation foreground.
|
|
1113
1113
|
"""
|
|
1114
1114
|
|
|
1115
1115
|
shape: Optional[OutlinedBorder] = None
|
|
1116
1116
|
"""
|
|
1117
1117
|
Overrides the default value of
|
|
1118
|
-
[`FloatingActionButton.shape`][flet.
|
|
1119
|
-
descendant [`FloatingActionButton`][flet.
|
|
1118
|
+
[`FloatingActionButton.shape`][flet.] in all
|
|
1119
|
+
descendant [`FloatingActionButton`][flet.] controls.
|
|
1120
1120
|
"""
|
|
1121
1121
|
|
|
1122
1122
|
enable_feedback: Optional[bool] = None
|
|
1123
1123
|
"""
|
|
1124
1124
|
If specified, defines the feedback property for
|
|
1125
|
-
[`FloatingActionButton`][flet.
|
|
1125
|
+
[`FloatingActionButton`][flet.].
|
|
1126
1126
|
"""
|
|
1127
1127
|
|
|
1128
1128
|
extended_padding: Optional[PaddingValue] = None
|
|
1129
1129
|
"""
|
|
1130
|
-
The padding for
|
|
1131
|
-
content.
|
|
1130
|
+
The padding for a [`FloatingActionButton`][flet.]'s
|
|
1131
|
+
that has both icon and content.
|
|
1132
1132
|
"""
|
|
1133
1133
|
|
|
1134
|
-
|
|
1134
|
+
text_style: Optional[TextStyle] = None
|
|
1135
1135
|
"""
|
|
1136
|
-
|
|
1137
|
-
[`FloatingActionButton`][flet.
|
|
1136
|
+
Text style merged into default text style of
|
|
1137
|
+
[`FloatingActionButton.content`][flet.].
|
|
1138
1138
|
"""
|
|
1139
1139
|
|
|
1140
|
-
|
|
1140
|
+
icon_label_spacing: Optional[Number] = None
|
|
1141
1141
|
"""
|
|
1142
|
-
The spacing between the icon and the label for
|
|
1143
|
-
[`FloatingActionButton`][flet.
|
|
1142
|
+
The spacing between the icon and the label for
|
|
1143
|
+
[`FloatingActionButton`][flet.].
|
|
1144
1144
|
"""
|
|
1145
1145
|
|
|
1146
1146
|
extended_size_constraints: Optional[BoxConstraints] = None
|
|
1147
1147
|
"""
|
|
1148
1148
|
Overrides the default size constraints of
|
|
1149
|
-
|
|
1149
|
+
[`FloatingActionButton`][flet.] that has both icon and content.
|
|
1150
1150
|
"""
|
|
1151
1151
|
|
|
1152
1152
|
size_constraints: Optional[BoxConstraints] = None
|
|
1153
1153
|
"""
|
|
1154
1154
|
Overrides the default size constraints of
|
|
1155
|
-
[`FloatingActionButton`][flet.
|
|
1155
|
+
[`FloatingActionButton`][flet.] that has either icon or content
|
|
1156
|
+
and is not a mini button.
|
|
1156
1157
|
"""
|
|
1157
1158
|
|
|
1158
1159
|
# large_size_constraints: Optional[BoxConstraints] = None
|
|
@@ -1162,448 +1163,448 @@ class FloatingActionButtonTheme:
|
|
|
1162
1163
|
@dataclass
|
|
1163
1164
|
class NavigationRailTheme:
|
|
1164
1165
|
"""
|
|
1165
|
-
Customizes the appearance of [`NavigationRail`][flet.
|
|
1166
|
+
Customizes the appearance of [`NavigationRail`][flet.] across the app.
|
|
1166
1167
|
"""
|
|
1167
1168
|
|
|
1168
1169
|
bgcolor: Optional[ColorValue] = None
|
|
1169
1170
|
"""
|
|
1170
|
-
Color to be used for the [`NavigationRail`][flet.
|
|
1171
|
+
Color to be used for the [`NavigationRail`][flet.]'s background.
|
|
1171
1172
|
"""
|
|
1172
1173
|
|
|
1173
1174
|
indicator_color: Optional[ColorValue] = None
|
|
1174
1175
|
"""
|
|
1175
1176
|
Overrides the default value of
|
|
1176
|
-
[`NavigationRail.indicator_color`][flet.
|
|
1177
|
-
descendant [`NavigationRail`][flet.
|
|
1178
|
-
[`NavigationRailTheme.use_indicator`][flet.
|
|
1177
|
+
[`NavigationRail.indicator_color`][flet.] in all
|
|
1178
|
+
descendant [`NavigationRail`][flet.] controls. when
|
|
1179
|
+
[`NavigationRailTheme.use_indicator`][flet.]
|
|
1179
1180
|
is true.
|
|
1180
1181
|
"""
|
|
1181
1182
|
|
|
1182
1183
|
elevation: Optional[Number] = None
|
|
1183
1184
|
"""
|
|
1184
|
-
The z-coordinate to be used for the [`NavigationRail`][flet.
|
|
1185
|
+
The z-coordinate to be used for the [`NavigationRail`][flet.]'s
|
|
1185
1186
|
elevation.
|
|
1186
1187
|
"""
|
|
1187
1188
|
|
|
1188
1189
|
indicator_shape: Optional[OutlinedBorder] = None
|
|
1189
1190
|
"""
|
|
1190
1191
|
Overrides the default value of
|
|
1191
|
-
[`NavigationRail.indicator_shape`][flet.
|
|
1192
|
-
descendant [`NavigationRail`][flet.
|
|
1192
|
+
[`NavigationRail.indicator_shape`][flet.] in all
|
|
1193
|
+
descendant [`NavigationRail`][flet.] controls.
|
|
1193
1194
|
"""
|
|
1194
1195
|
|
|
1195
1196
|
unselected_label_text_style: Optional[TextStyle] = None
|
|
1196
1197
|
"""
|
|
1197
1198
|
Overrides the default value of
|
|
1198
|
-
[`NavigationRail.unselected_label_text_style`][flet.
|
|
1199
|
-
in all descendant [`NavigationRail`][flet.
|
|
1199
|
+
[`NavigationRail.unselected_label_text_style`][flet.]
|
|
1200
|
+
in all descendant [`NavigationRail`][flet.] controls.
|
|
1200
1201
|
"""
|
|
1201
1202
|
|
|
1202
1203
|
selected_label_text_style: Optional[TextStyle] = None
|
|
1203
1204
|
"""
|
|
1204
1205
|
Overrides the default value of
|
|
1205
|
-
[`NavigationRail.selected_label_text_style`][flet.
|
|
1206
|
-
in all descendant [`NavigationRail`][flet.
|
|
1206
|
+
[`NavigationRail.selected_label_text_style`][flet.]
|
|
1207
|
+
in all descendant [`NavigationRail`][flet.] controls.
|
|
1207
1208
|
"""
|
|
1208
1209
|
|
|
1209
1210
|
label_type: Optional[NavigationRailLabelType] = None
|
|
1210
1211
|
"""
|
|
1211
1212
|
The type that defines the layout and behavior of the labels in the
|
|
1212
|
-
[`NavigationRail`][flet.
|
|
1213
|
+
[`NavigationRail`][flet.].
|
|
1213
1214
|
"""
|
|
1214
1215
|
|
|
1215
1216
|
min_width: Optional[Number] = None
|
|
1216
1217
|
"""
|
|
1217
1218
|
Overrides the default value of
|
|
1218
|
-
[`NavigationRail.min_width`][flet.
|
|
1219
|
-
[`NavigationRail`][flet.
|
|
1219
|
+
[`NavigationRail.min_width`][flet.] in all descendant
|
|
1220
|
+
[`NavigationRail`][flet.] controls when they are not extended.
|
|
1220
1221
|
"""
|
|
1221
1222
|
|
|
1222
1223
|
min_extended_width: Optional[Number] = None
|
|
1223
1224
|
"""
|
|
1224
1225
|
Overrides the default value of
|
|
1225
|
-
[`NavigationRail.min_extended_width`][flet.
|
|
1226
|
-
descendant [`NavigationRail`][flet.
|
|
1226
|
+
[`NavigationRail.min_extended_width`][flet.] in all
|
|
1227
|
+
descendant [`NavigationRail`][flet.] controls when they are extended.
|
|
1227
1228
|
"""
|
|
1228
1229
|
|
|
1229
1230
|
group_alignment: Optional[Number] = None
|
|
1230
1231
|
"""
|
|
1231
1232
|
The alignment for the
|
|
1232
|
-
[`NavigationRail.destinations`][flet.
|
|
1233
|
-
positioned within the [`NavigationRail`][flet.
|
|
1233
|
+
[`NavigationRail.destinations`][flet.] as they are
|
|
1234
|
+
positioned within the [`NavigationRail`][flet.].
|
|
1234
1235
|
"""
|
|
1235
1236
|
|
|
1236
1237
|
use_indicator: Optional[bool] = None
|
|
1237
1238
|
"""
|
|
1238
1239
|
Overrides the default value of
|
|
1239
|
-
[`NavigationRail.use_indicator`][flet.
|
|
1240
|
-
descendant [`NavigationRail`][flet.
|
|
1240
|
+
[`NavigationRail.use_indicator`][flet.] in all
|
|
1241
|
+
descendant [`NavigationRail`][flet.] controls.
|
|
1241
1242
|
"""
|
|
1242
1243
|
|
|
1243
1244
|
|
|
1244
1245
|
@dataclass
|
|
1245
1246
|
class AppBarTheme:
|
|
1246
1247
|
"""
|
|
1247
|
-
Customizes the appearance of [`AppBar`][flet.
|
|
1248
|
+
Customizes the appearance of [`AppBar`][flet.] controls across the app.
|
|
1248
1249
|
"""
|
|
1249
1250
|
|
|
1250
1251
|
color: Optional[ColorValue] = None
|
|
1251
1252
|
"""
|
|
1252
|
-
Overrides the default value of [`AppBar.color`][flet.
|
|
1253
|
-
descendant [`AppBar`][flet.
|
|
1253
|
+
Overrides the default value of [`AppBar.color`][flet.] in all
|
|
1254
|
+
descendant [`AppBar`][flet.] controls.
|
|
1254
1255
|
"""
|
|
1255
1256
|
|
|
1256
1257
|
bgcolor: Optional[ColorValue] = None
|
|
1257
1258
|
"""
|
|
1258
|
-
Overrides the default value of [`AppBar.bgcolor`][flet.
|
|
1259
|
-
descendant [`AppBar`][flet.
|
|
1259
|
+
Overrides the default value of [`AppBar.bgcolor`][flet.] in all
|
|
1260
|
+
descendant [`AppBar`][flet.] controls.
|
|
1260
1261
|
"""
|
|
1261
1262
|
|
|
1262
1263
|
shadow_color: Optional[ColorValue] = None
|
|
1263
1264
|
"""
|
|
1264
|
-
Overrides the default value of [`AppBar.shadow_color`][flet.
|
|
1265
|
-
all descendant [`AppBar`][flet.
|
|
1265
|
+
Overrides the default value of [`AppBar.shadow_color`][flet.] in
|
|
1266
|
+
all descendant [`AppBar`][flet.] controls.
|
|
1266
1267
|
"""
|
|
1267
1268
|
|
|
1268
1269
|
elevation: Optional[Number] = None
|
|
1269
1270
|
"""
|
|
1270
|
-
Overrides the default value of [`AppBar.elevation`][flet.
|
|
1271
|
-
descendant [`AppBar`][flet.
|
|
1271
|
+
Overrides the default value of [`AppBar.elevation`][flet.] in all
|
|
1272
|
+
descendant [`AppBar`][flet.] controls.
|
|
1272
1273
|
"""
|
|
1273
1274
|
|
|
1274
1275
|
shape: Optional[OutlinedBorder] = None
|
|
1275
1276
|
"""
|
|
1276
|
-
Overrides the default value of [`AppBar.shape`][flet.
|
|
1277
|
-
descendant [`AppBar`][flet.
|
|
1277
|
+
Overrides the default value of [`AppBar.shape`][flet.] in all
|
|
1278
|
+
descendant [`AppBar`][flet.] controls.
|
|
1278
1279
|
"""
|
|
1279
1280
|
|
|
1280
1281
|
title_text_style: Optional[TextStyle] = None
|
|
1281
1282
|
"""
|
|
1282
1283
|
Overrides the default value of
|
|
1283
|
-
[`AppBar.title_text_style`][flet.
|
|
1284
|
-
[`AppBar`][flet.
|
|
1284
|
+
[`AppBar.title_text_style`][flet.] in all descendant
|
|
1285
|
+
[`AppBar`][flet.] controls.
|
|
1285
1286
|
"""
|
|
1286
1287
|
|
|
1287
1288
|
toolbar_text_style: Optional[TextStyle] = None
|
|
1288
1289
|
"""
|
|
1289
1290
|
Overrides the default value of
|
|
1290
|
-
[`AppBar.toolbar_text_style`][flet.
|
|
1291
|
-
[`AppBar`][flet.
|
|
1291
|
+
[`AppBar.toolbar_text_style`][flet.] in all descendant
|
|
1292
|
+
[`AppBar`][flet.] controls.
|
|
1292
1293
|
"""
|
|
1293
1294
|
|
|
1294
1295
|
center_title: Optional[bool] = None
|
|
1295
1296
|
"""
|
|
1296
|
-
Overrides the default value of [`AppBar.center_title`][flet.
|
|
1297
|
-
all descendant [`AppBar`][flet.
|
|
1297
|
+
Overrides the default value of [`AppBar.center_title`][flet.] in
|
|
1298
|
+
all descendant [`AppBar`][flet.] controls.
|
|
1298
1299
|
"""
|
|
1299
1300
|
|
|
1300
1301
|
title_spacing: Optional[Number] = None
|
|
1301
1302
|
"""
|
|
1302
1303
|
Overrides the default value of
|
|
1303
|
-
[`AppBar.title_spacing`][flet.
|
|
1304
|
-
[`AppBar`][flet.
|
|
1304
|
+
[`AppBar.title_spacing`][flet.] in all descendant
|
|
1305
|
+
[`AppBar`][flet.] controls.
|
|
1305
1306
|
"""
|
|
1306
1307
|
|
|
1307
1308
|
elevation_on_scroll: Optional[Number] = None
|
|
1308
1309
|
"""
|
|
1309
1310
|
Overrides the default value of
|
|
1310
|
-
[`AppBar.elevation_on_scroll`][flet.
|
|
1311
|
-
[`AppBar`][flet.
|
|
1311
|
+
[`AppBar.elevation_on_scroll`][flet.] in all descendant
|
|
1312
|
+
[`AppBar`][flet.] controls.
|
|
1312
1313
|
"""
|
|
1313
1314
|
|
|
1314
1315
|
toolbar_height: Optional[Number] = None
|
|
1315
1316
|
"""
|
|
1316
1317
|
Overrides the default value of
|
|
1317
|
-
[`AppBar.toolbar_height`][flet.
|
|
1318
|
-
[`AppBar`][flet.
|
|
1318
|
+
[`AppBar.toolbar_height`][flet.] in all descendant
|
|
1319
|
+
[`AppBar`][flet.] controls.
|
|
1319
1320
|
"""
|
|
1320
1321
|
|
|
1321
1322
|
actions_padding: Optional[PaddingValue] = None
|
|
1322
1323
|
"""
|
|
1323
1324
|
Overrides the default value of
|
|
1324
|
-
[`AppBar.actions_padding`][flet.
|
|
1325
|
-
[`AppBar`][flet.
|
|
1325
|
+
[`AppBar.actions_padding`][flet.] in all descendant
|
|
1326
|
+
[`AppBar`][flet.] controls.
|
|
1326
1327
|
"""
|
|
1327
1328
|
|
|
1328
1329
|
|
|
1329
1330
|
@dataclass
|
|
1330
1331
|
class BottomAppBarTheme:
|
|
1331
1332
|
"""
|
|
1332
|
-
Customizes the appearance of [`BottomAppBar`][flet.
|
|
1333
|
+
Customizes the appearance of [`BottomAppBar`][flet.] controls across
|
|
1333
1334
|
the app.
|
|
1334
1335
|
"""
|
|
1335
1336
|
|
|
1336
1337
|
bgcolor: Optional[ColorValue] = None
|
|
1337
1338
|
"""
|
|
1338
|
-
Overrides the default value of [`BottomAppBar.bgcolor`][flet.
|
|
1339
|
-
in all descendant [`BottomAppBar`][flet.
|
|
1339
|
+
Overrides the default value of [`BottomAppBar.bgcolor`][flet.]
|
|
1340
|
+
in all descendant [`BottomAppBar`][flet.] controls.
|
|
1340
1341
|
"""
|
|
1341
1342
|
|
|
1342
1343
|
shadow_color: Optional[ColorValue] = None
|
|
1343
1344
|
"""
|
|
1344
1345
|
Overrides the default value of
|
|
1345
|
-
[`BottomAppBar.shadow_color`][flet.
|
|
1346
|
-
[`BottomAppBar`][flet.
|
|
1346
|
+
[`BottomAppBar.shadow_color`][flet.] in all descendant
|
|
1347
|
+
[`BottomAppBar`][flet.] controls.
|
|
1347
1348
|
"""
|
|
1348
1349
|
|
|
1349
1350
|
elevation: Optional[Number] = None
|
|
1350
1351
|
"""
|
|
1351
1352
|
Overrides the default value of
|
|
1352
|
-
[`BottomAppBar.elevation`][flet.
|
|
1353
|
+
[`BottomAppBar.elevation`][flet.] in all descendant
|
|
1353
1354
|
`BottomAppBar`][flet.BottomAppBar] controls.
|
|
1354
1355
|
"""
|
|
1355
1356
|
|
|
1356
1357
|
height: Optional[Number] = None
|
|
1357
1358
|
"""
|
|
1358
|
-
Overrides the default value of [`BottomAppBar.height`][flet.
|
|
1359
|
-
all descendant [`BottomAppBar`][flet.
|
|
1359
|
+
Overrides the default value of [`BottomAppBar.height`][flet.] in
|
|
1360
|
+
all descendant [`BottomAppBar`][flet.] controls.
|
|
1360
1361
|
"""
|
|
1361
1362
|
|
|
1362
1363
|
padding: Optional[PaddingValue] = None
|
|
1363
1364
|
"""
|
|
1364
|
-
Overrides the default value of [`BottomAppBar.padding`][flet.
|
|
1365
|
-
in all descendant [`BottomAppBar`][flet.
|
|
1365
|
+
Overrides the default value of [`BottomAppBar.padding`][flet.]
|
|
1366
|
+
in all descendant [`BottomAppBar`][flet.] controls.
|
|
1366
1367
|
"""
|
|
1367
1368
|
|
|
1368
1369
|
shape: Optional[NotchShape] = None
|
|
1369
1370
|
"""
|
|
1370
|
-
Overrides the default value of [`BottomAppBar.shape`][flet.
|
|
1371
|
-
all descendant [`BottomAppBar`][flet.
|
|
1371
|
+
Overrides the default value of [`BottomAppBar.shape`][flet.] in
|
|
1372
|
+
all descendant [`BottomAppBar`][flet.] controls.
|
|
1372
1373
|
"""
|
|
1373
1374
|
|
|
1374
1375
|
|
|
1375
1376
|
@dataclass
|
|
1376
1377
|
class RadioTheme:
|
|
1377
1378
|
"""
|
|
1378
|
-
Defines default property values for descendant [`Radio`][flet.
|
|
1379
|
+
Defines default property values for descendant [`Radio`][flet.] controls.
|
|
1379
1380
|
"""
|
|
1380
1381
|
|
|
1381
1382
|
fill_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1382
1383
|
"""
|
|
1383
|
-
Overrides the default value of [`Radio.fill_color`][flet.
|
|
1384
|
-
all descendant [`Radio`][flet.
|
|
1384
|
+
Overrides the default value of [`Radio.fill_color`][flet.] in
|
|
1385
|
+
all descendant [`Radio`][flet.] controls.
|
|
1385
1386
|
"""
|
|
1386
1387
|
|
|
1387
1388
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1388
1389
|
"""
|
|
1389
|
-
Overrides the default value of [`Radio.overlay_color`][flet.
|
|
1390
|
-
all descendant [`Radio`][flet.
|
|
1390
|
+
Overrides the default value of [`Radio.overlay_color`][flet.] in
|
|
1391
|
+
all descendant [`Radio`][flet.] controls.
|
|
1391
1392
|
"""
|
|
1392
1393
|
|
|
1393
1394
|
splash_radius: Optional[Number] = None
|
|
1394
1395
|
"""
|
|
1395
|
-
Overrides the default value of [`Radio.splash_radius`][flet.
|
|
1396
|
-
all descendant [`Radio`][flet.
|
|
1396
|
+
Overrides the default value of [`Radio.splash_radius`][flet.] in
|
|
1397
|
+
all descendant [`Radio`][flet.] controls.
|
|
1397
1398
|
"""
|
|
1398
1399
|
|
|
1399
1400
|
visual_density: Optional[VisualDensity] = None
|
|
1400
1401
|
"""
|
|
1401
|
-
Overrides the default value of [`Radio.visual_density`][flet.
|
|
1402
|
-
in all descendant [`Radio`][flet.
|
|
1402
|
+
Overrides the default value of [`Radio.visual_density`][flet.]
|
|
1403
|
+
in all descendant [`Radio`][flet.] controls.
|
|
1403
1404
|
"""
|
|
1404
1405
|
|
|
1405
1406
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
1406
1407
|
"""
|
|
1407
|
-
Overrides the default value of [`Radio.mouse_cursor`][flet.
|
|
1408
|
-
in all descendant [`Radio`][flet.
|
|
1408
|
+
Overrides the default value of [`Radio.mouse_cursor`][flet.]
|
|
1409
|
+
in all descendant [`Radio`][flet.] controls.
|
|
1409
1410
|
"""
|
|
1410
1411
|
|
|
1411
1412
|
|
|
1412
1413
|
@dataclass
|
|
1413
1414
|
class CheckboxTheme:
|
|
1414
1415
|
"""
|
|
1415
|
-
Defines default property values for descendant [`Checkbox`][flet.
|
|
1416
|
+
Defines default property values for descendant [`Checkbox`][flet.] controls.
|
|
1416
1417
|
"""
|
|
1417
1418
|
|
|
1418
1419
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1419
1420
|
"""
|
|
1420
1421
|
Overrides the default value of
|
|
1421
|
-
[`Checkbox.overlay_color`][flet.
|
|
1422
|
-
[`Checkbox`][flet.
|
|
1422
|
+
[`Checkbox.overlay_color`][flet.] in all descendant
|
|
1423
|
+
[`Checkbox`][flet.] controls.
|
|
1423
1424
|
"""
|
|
1424
1425
|
|
|
1425
1426
|
check_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1426
1427
|
"""
|
|
1427
1428
|
Overrides the default value of
|
|
1428
|
-
[`Checkbox.check_color`][flet.
|
|
1429
|
-
[`Checkbox`][flet.
|
|
1429
|
+
[`Checkbox.check_color`][flet.] in all descendant
|
|
1430
|
+
[`Checkbox`][flet.] controls.
|
|
1430
1431
|
"""
|
|
1431
1432
|
|
|
1432
1433
|
fill_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1433
1434
|
"""
|
|
1434
1435
|
Overrides the default value of
|
|
1435
|
-
[`Checkbox.fill_color`][flet.
|
|
1436
|
-
[`Checkbox`][flet.
|
|
1436
|
+
[`Checkbox.fill_color`][flet.] in all descendant
|
|
1437
|
+
[`Checkbox`][flet.] controls.
|
|
1437
1438
|
"""
|
|
1438
1439
|
|
|
1439
1440
|
splash_radius: Optional[Number] = None
|
|
1440
1441
|
"""
|
|
1441
1442
|
Overrides the default value of
|
|
1442
|
-
[`Checkbox.splash_radius`][flet.
|
|
1443
|
-
[`Checkbox`][flet.
|
|
1443
|
+
[`Checkbox.splash_radius`][flet.] in all descendant
|
|
1444
|
+
[`Checkbox`][flet.] controls.
|
|
1444
1445
|
"""
|
|
1445
1446
|
|
|
1446
1447
|
border_side: Optional[BorderSide] = None
|
|
1447
1448
|
"""
|
|
1448
1449
|
Overrides the default value of
|
|
1449
|
-
[`Checkbox.border_side`][flet.
|
|
1450
|
-
[`Checkbox`][flet.
|
|
1450
|
+
[`Checkbox.border_side`][flet.] in all descendant
|
|
1451
|
+
[`Checkbox`][flet.] controls.
|
|
1451
1452
|
"""
|
|
1452
1453
|
|
|
1453
1454
|
visual_density: Optional[VisualDensity] = None
|
|
1454
1455
|
"""
|
|
1455
1456
|
Overrides the default value of
|
|
1456
|
-
[`Checkbox.visual_density`][flet.
|
|
1457
|
-
[`Checkbox`][flet.
|
|
1457
|
+
[`Checkbox.visual_density`][flet.] in all descendant
|
|
1458
|
+
[`Checkbox`][flet.] controls.
|
|
1458
1459
|
"""
|
|
1459
1460
|
|
|
1460
1461
|
shape: Optional[OutlinedBorder] = None
|
|
1461
1462
|
"""
|
|
1462
1463
|
Overrides the default value of
|
|
1463
|
-
[`Checkbox.shape`][flet.
|
|
1464
|
-
[`Checkbox`][flet.
|
|
1464
|
+
[`Checkbox.shape`][flet.] in all descendant
|
|
1465
|
+
[`Checkbox`][flet.] controls.
|
|
1465
1466
|
"""
|
|
1466
1467
|
|
|
1467
1468
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
1468
1469
|
"""
|
|
1469
1470
|
Overrides the default value of
|
|
1470
|
-
[`Checkbox.mouse_cursor`][flet.
|
|
1471
|
-
[`Checkbox`][flet.
|
|
1471
|
+
[`Checkbox.mouse_cursor`][flet.] in all descendant
|
|
1472
|
+
[`Checkbox`][flet.] controls.
|
|
1472
1473
|
"""
|
|
1473
1474
|
|
|
1474
1475
|
|
|
1475
1476
|
@dataclass
|
|
1476
1477
|
class BadgeTheme:
|
|
1477
1478
|
"""
|
|
1478
|
-
Defines default property values for descendant [`Badge`][flet.
|
|
1479
|
+
Defines default property values for descendant [`Badge`][flet.] controls.
|
|
1479
1480
|
"""
|
|
1480
1481
|
|
|
1481
1482
|
bgcolor: Optional[ColorValue] = None
|
|
1482
1483
|
"""
|
|
1483
|
-
Overrides the default value of [`Badge.bgcolor`][flet.
|
|
1484
|
-
descendant [`Badge`][flet.
|
|
1484
|
+
Overrides the default value of [`Badge.bgcolor`][flet.] in all
|
|
1485
|
+
descendant [`Badge`][flet.] controls.
|
|
1485
1486
|
"""
|
|
1486
1487
|
|
|
1487
1488
|
text_color: Optional[ColorValue] = None
|
|
1488
1489
|
"""
|
|
1489
|
-
Overrides the default value of [`Badge.text_color`][flet.
|
|
1490
|
-
descendant [`Badge`][flet.
|
|
1490
|
+
Overrides the default value of [`Badge.text_color`][flet.] in all
|
|
1491
|
+
descendant [`Badge`][flet.] controls.
|
|
1491
1492
|
"""
|
|
1492
1493
|
|
|
1493
1494
|
small_size: Optional[Number] = None
|
|
1494
1495
|
"""
|
|
1495
|
-
Overrides the default value of [`Badge.small_size`][flet.
|
|
1496
|
-
descendant [`Badge`][flet.
|
|
1496
|
+
Overrides the default value of [`Badge.small_size`][flet.] in all
|
|
1497
|
+
descendant [`Badge`][flet.] controls.
|
|
1497
1498
|
"""
|
|
1498
1499
|
|
|
1499
1500
|
large_size: Optional[Number] = None
|
|
1500
1501
|
"""
|
|
1501
|
-
Overrides the default value of [`Badge.large_size`][flet.
|
|
1502
|
-
descendant [`Badge`][flet.
|
|
1502
|
+
Overrides the default value of [`Badge.large_size`][flet.] in all
|
|
1503
|
+
descendant [`Badge`][flet.] controls.
|
|
1503
1504
|
"""
|
|
1504
1505
|
|
|
1505
1506
|
alignment: Optional[Alignment] = None
|
|
1506
1507
|
"""
|
|
1507
|
-
Overrides the default value of [`Badge.alignment`][flet.
|
|
1508
|
-
descendant [`Badge`][flet.
|
|
1508
|
+
Overrides the default value of [`Badge.alignment`][flet.] in all
|
|
1509
|
+
descendant [`Badge`][flet.] controls.
|
|
1509
1510
|
"""
|
|
1510
1511
|
|
|
1511
1512
|
padding: Optional[PaddingValue] = None
|
|
1512
1513
|
"""
|
|
1513
|
-
Overrides the default value of [`Badge.padding`][flet.
|
|
1514
|
-
descendant [`Badge`][flet.
|
|
1514
|
+
Overrides the default value of [`Badge.padding`][flet.] in all
|
|
1515
|
+
descendant [`Badge`][flet.] controls.
|
|
1515
1516
|
"""
|
|
1516
1517
|
|
|
1517
1518
|
offset: Optional[OffsetValue] = None
|
|
1518
1519
|
"""
|
|
1519
|
-
Overrides the default value of [`Badge.offset`][flet.
|
|
1520
|
-
descendant [`Badge`][flet.
|
|
1520
|
+
Overrides the default value of [`Badge.offset`][flet.] in all
|
|
1521
|
+
descendant [`Badge`][flet.] controls.
|
|
1521
1522
|
"""
|
|
1522
1523
|
|
|
1523
1524
|
text_style: Optional[TextStyle] = None
|
|
1524
1525
|
"""
|
|
1525
|
-
Overrides the default value of [`Badge.text_style`][flet.
|
|
1526
|
-
descendant [`Badge`][flet.
|
|
1526
|
+
Overrides the default value of [`Badge.text_style`][flet.] in all
|
|
1527
|
+
descendant [`Badge`][flet.] controls.
|
|
1527
1528
|
"""
|
|
1528
1529
|
|
|
1529
1530
|
|
|
1530
1531
|
@dataclass
|
|
1531
1532
|
class SwitchTheme:
|
|
1532
1533
|
"""
|
|
1533
|
-
Defines default property values for descendant [`Switch`][flet.
|
|
1534
|
+
Defines default property values for descendant [`Switch`][flet.] controls.
|
|
1534
1535
|
"""
|
|
1535
1536
|
|
|
1536
1537
|
thumb_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1537
1538
|
"""
|
|
1538
|
-
Overrides the default value of [`Switch.thumb_color`][flet.
|
|
1539
|
-
all descendant [`Switch`][flet.
|
|
1539
|
+
Overrides the default value of [`Switch.thumb_color`][flet.] in
|
|
1540
|
+
all descendant [`Switch`][flet.] controls.
|
|
1540
1541
|
"""
|
|
1541
1542
|
|
|
1542
1543
|
track_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1543
1544
|
"""
|
|
1544
|
-
Overrides the default value of [`Switch.track_color`][flet.
|
|
1545
|
-
all descendant [`Switch`][flet.
|
|
1545
|
+
Overrides the default value of [`Switch.track_color`][flet.] in
|
|
1546
|
+
all descendant [`Switch`][flet.] controls.
|
|
1546
1547
|
"""
|
|
1547
1548
|
|
|
1548
1549
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1549
1550
|
"""
|
|
1550
|
-
Overrides the default value of [`Switch.overlay_color`][flet.
|
|
1551
|
-
in all descendant [`Switch`][flet.
|
|
1551
|
+
Overrides the default value of [`Switch.overlay_color`][flet.]
|
|
1552
|
+
in all descendant [`Switch`][flet.] controls.
|
|
1552
1553
|
"""
|
|
1553
1554
|
|
|
1554
1555
|
track_outline_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1555
1556
|
"""
|
|
1556
1557
|
Overrides the default value of
|
|
1557
|
-
[`Switch.track_outline_color`][flet.
|
|
1558
|
-
[`Switch`][flet.
|
|
1558
|
+
[`Switch.track_outline_color`][flet.] in all descendant
|
|
1559
|
+
[`Switch`][flet.] controls.
|
|
1559
1560
|
"""
|
|
1560
1561
|
|
|
1561
1562
|
thumb_icon: Optional[ControlStateValue[IconData]] = None
|
|
1562
1563
|
"""
|
|
1563
|
-
Overrides the default value of [`Switch.thumb_icon`][flet.
|
|
1564
|
-
descendant [`Switch`][flet.
|
|
1564
|
+
Overrides the default value of [`Switch.thumb_icon`][flet.] in all
|
|
1565
|
+
descendant [`Switch`][flet.] controls.
|
|
1565
1566
|
"""
|
|
1566
1567
|
|
|
1567
1568
|
track_outline_width: Optional[ControlStateValue[Optional[Number]]] = None
|
|
1568
1569
|
"""
|
|
1569
1570
|
Overrides the default value of
|
|
1570
|
-
[`Switch.track_outline_width`][flet.
|
|
1571
|
-
[`Switch`][flet.
|
|
1571
|
+
[`Switch.track_outline_width`][flet.] in all descendant
|
|
1572
|
+
[`Switch`][flet.] controls.
|
|
1572
1573
|
"""
|
|
1573
1574
|
|
|
1574
1575
|
splash_radius: Optional[Number] = None
|
|
1575
1576
|
"""
|
|
1576
|
-
Overrides the default value of [`Switch.splash_radius`][flet.
|
|
1577
|
-
in all descendant [`Switch`][flet.
|
|
1577
|
+
Overrides the default value of [`Switch.splash_radius`][flet.]
|
|
1578
|
+
in all descendant [`Switch`][flet.] controls.
|
|
1578
1579
|
"""
|
|
1579
1580
|
|
|
1580
1581
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
1581
1582
|
"""
|
|
1582
|
-
Overrides the default value of [`Switch.mouse_cursor`][flet.
|
|
1583
|
-
all descendant [`Switch`][flet.
|
|
1583
|
+
Overrides the default value of [`Switch.mouse_cursor`][flet.] in
|
|
1584
|
+
all descendant [`Switch`][flet.] controls.
|
|
1584
1585
|
"""
|
|
1585
1586
|
|
|
1586
1587
|
padding: Optional[PaddingValue] = None
|
|
1587
1588
|
"""
|
|
1588
|
-
Overrides the default value of [`Switch.padding`][flet.
|
|
1589
|
-
all descendant [`Switch`][flet.
|
|
1589
|
+
Overrides the default value of [`Switch.padding`][flet.] in
|
|
1590
|
+
all descendant [`Switch`][flet.] controls.
|
|
1590
1591
|
"""
|
|
1591
1592
|
|
|
1592
1593
|
|
|
1593
1594
|
@dataclass
|
|
1594
1595
|
class DividerTheme:
|
|
1595
1596
|
"""
|
|
1596
|
-
Defines the visual properties of [`Divider`][flet.
|
|
1597
|
-
[`VerticalDivider`][flet.
|
|
1598
|
-
[`ListTile`][flet.
|
|
1599
|
-
[`DataTable`][flet.
|
|
1597
|
+
Defines the visual properties of [`Divider`][flet.],
|
|
1598
|
+
[`VerticalDivider`][flet.], dividers between
|
|
1599
|
+
[`ListTile`][flet.]s, and dividers between rows in
|
|
1600
|
+
[`DataTable`][flet.].
|
|
1600
1601
|
"""
|
|
1601
1602
|
|
|
1602
1603
|
color: Optional[ColorValue] = None
|
|
1603
1604
|
"""
|
|
1604
|
-
The color of [`Divider`][flet.
|
|
1605
|
-
[`VerticalDivider`][flet.
|
|
1606
|
-
[`ListTile`][flet.
|
|
1605
|
+
The color of [`Divider`][flet.]s and
|
|
1606
|
+
[`VerticalDivider`][flet.]s, also used between
|
|
1607
|
+
[`ListTile`][flet.]s, between rows in [`DataTable`][flet.]s, and
|
|
1607
1608
|
so forth.
|
|
1608
1609
|
"""
|
|
1609
1610
|
|
|
@@ -1614,76 +1615,76 @@ class DividerTheme:
|
|
|
1614
1615
|
|
|
1615
1616
|
space: Optional[Number] = None
|
|
1616
1617
|
"""
|
|
1617
|
-
The [`Divider`][flet.
|
|
1618
|
-
[`VerticalDivider`][flet.
|
|
1618
|
+
The [`Divider`][flet.]'s height or the
|
|
1619
|
+
[`VerticalDivider`][flet.]'s width.
|
|
1619
1620
|
|
|
1620
1621
|
This represents the amount of horizontal or vertical space the divider takes up.
|
|
1621
1622
|
"""
|
|
1622
1623
|
|
|
1623
1624
|
leading_indent: Optional[Number] = None
|
|
1624
1625
|
"""
|
|
1625
|
-
The amount of empty space at the leading edge of [`Divider`][flet.
|
|
1626
|
-
edge of [`VerticalDivider`][flet.
|
|
1626
|
+
The amount of empty space at the leading edge of [`Divider`][flet.] or top
|
|
1627
|
+
edge of [`VerticalDivider`][flet.].
|
|
1627
1628
|
"""
|
|
1628
1629
|
|
|
1629
1630
|
trailing_indent: Optional[Number] = None
|
|
1630
1631
|
"""
|
|
1631
|
-
The amount of empty space at the trailing edge of [`Divider`][flet.
|
|
1632
|
-
bottom edge of [`VerticalDivider`][flet.
|
|
1632
|
+
The amount of empty space at the trailing edge of [`Divider`][flet.] or
|
|
1633
|
+
bottom edge of [`VerticalDivider`][flet.].
|
|
1633
1634
|
"""
|
|
1634
1635
|
|
|
1635
1636
|
|
|
1636
1637
|
@dataclass
|
|
1637
1638
|
class SnackBarTheme:
|
|
1638
1639
|
"""
|
|
1639
|
-
Defines default property values for descendant [`SnackBar`][flet.
|
|
1640
|
+
Defines default property values for descendant [`SnackBar`][flet.] controls.
|
|
1640
1641
|
"""
|
|
1641
1642
|
|
|
1642
1643
|
bgcolor: Optional[ColorValue] = None
|
|
1643
1644
|
"""
|
|
1644
|
-
Overrides the default value of [`SnackBar.bgcolor`][flet.
|
|
1645
|
-
descendant [`SnackBar`][flet.
|
|
1645
|
+
Overrides the default value of [`SnackBar.bgcolor`][flet.] in all
|
|
1646
|
+
descendant [`SnackBar`][flet.] controls.
|
|
1646
1647
|
"""
|
|
1647
1648
|
|
|
1648
1649
|
action_text_color: Optional[ColorValue] = None
|
|
1649
1650
|
"""
|
|
1650
1651
|
Overrides the default value of `text_color` of
|
|
1651
|
-
[`SnackBar.action`][flet.
|
|
1652
|
-
[`SnackBar`][flet.
|
|
1652
|
+
[`SnackBar.action`][flet.] in all descendant
|
|
1653
|
+
[`SnackBar`][flet.] controls.
|
|
1653
1654
|
"""
|
|
1654
1655
|
|
|
1655
1656
|
action_bgcolor: Optional[ColorValue] = None
|
|
1656
1657
|
"""
|
|
1657
1658
|
Overrides the default value of `bgcolor` of
|
|
1658
|
-
[`SnackBar.action`][flet.
|
|
1659
|
-
[`SnackBar`][flet.
|
|
1659
|
+
[`SnackBar.action`][flet.] in all descendant
|
|
1660
|
+
[`SnackBar`][flet.] controls.
|
|
1660
1661
|
"""
|
|
1661
1662
|
|
|
1662
1663
|
close_icon_color: Optional[ColorValue] = None
|
|
1663
1664
|
"""
|
|
1664
1665
|
Overrides the default value of
|
|
1665
|
-
[`SnackBar.close_icon_color`][flet.
|
|
1666
|
-
[`SnackBar`][flet.
|
|
1666
|
+
[`SnackBar.close_icon_color`][flet.] in all descendant
|
|
1667
|
+
[`SnackBar`][flet.] controls.
|
|
1667
1668
|
"""
|
|
1668
1669
|
|
|
1669
1670
|
disabled_action_text_color: Optional[ColorValue] = None
|
|
1670
1671
|
"""
|
|
1671
1672
|
Overrides the default value of `disabled_text_color` of
|
|
1672
|
-
[`SnackBar.action`][flet.
|
|
1673
|
-
[`SnackBar`][flet.
|
|
1673
|
+
[`SnackBar.action`][flet.] in all descendant
|
|
1674
|
+
[`SnackBar`][flet.] controls.
|
|
1674
1675
|
"""
|
|
1675
1676
|
|
|
1676
1677
|
disabled_action_bgcolor: Optional[ColorValue] = None
|
|
1677
1678
|
"""
|
|
1678
1679
|
Overrides the default value of `disabled_color` of
|
|
1679
|
-
[`SnackBar.action`][flet.
|
|
1680
|
-
[`SnackBar`][flet.
|
|
1680
|
+
[`SnackBar.action`][flet.] in all descendant
|
|
1681
|
+
[`SnackBar`][flet.] controls.
|
|
1681
1682
|
"""
|
|
1682
1683
|
|
|
1683
1684
|
elevation: Optional[Number] = None
|
|
1684
1685
|
"""
|
|
1685
|
-
Overrides the default value of [`SnackBar.elevation`][flet.
|
|
1686
|
-
all descendant [`SnackBar`][flet.
|
|
1686
|
+
Overrides the default value of [`SnackBar.elevation`][flet.] in
|
|
1687
|
+
all descendant [`SnackBar`][flet.] controls.
|
|
1687
1688
|
"""
|
|
1688
1689
|
|
|
1689
1690
|
content_text_style: Optional[TextStyle] = None
|
|
@@ -1693,39 +1694,39 @@ class SnackBarTheme:
|
|
|
1693
1694
|
|
|
1694
1695
|
width: Optional[Number] = None
|
|
1695
1696
|
"""
|
|
1696
|
-
Overrides the default value of [`SnackBar.width`][flet.
|
|
1697
|
-
descendant [`SnackBar`][flet.
|
|
1697
|
+
Overrides the default value of [`SnackBar.width`][flet.] in all
|
|
1698
|
+
descendant [`SnackBar`][flet.] controls.
|
|
1698
1699
|
"""
|
|
1699
1700
|
|
|
1700
1701
|
show_close_icon: Optional[bool] = None
|
|
1701
1702
|
"""
|
|
1702
1703
|
Overrides the default value of
|
|
1703
|
-
[`SnackBar.show_close_icon`][flet.
|
|
1704
|
-
[`SnackBar`][flet.
|
|
1704
|
+
[`SnackBar.show_close_icon`][flet.] in all descendant
|
|
1705
|
+
[`SnackBar`][flet.] controls.
|
|
1705
1706
|
"""
|
|
1706
1707
|
|
|
1707
1708
|
dismiss_direction: Optional[DismissDirection] = None
|
|
1708
1709
|
"""
|
|
1709
1710
|
Overrides the default value of
|
|
1710
|
-
[`SnackBar.dismiss_direction`][flet.
|
|
1711
|
-
[`SnackBar`][flet.
|
|
1711
|
+
[`SnackBar.dismiss_direction`][flet.] in all descendant
|
|
1712
|
+
[`SnackBar`][flet.] controls.
|
|
1712
1713
|
"""
|
|
1713
1714
|
|
|
1714
1715
|
behavior: Optional[SnackBarBehavior] = None
|
|
1715
1716
|
"""
|
|
1716
|
-
Overrides the default value of [`SnackBar.behavior`][flet.
|
|
1717
|
-
descendant [`SnackBar`][flet.
|
|
1717
|
+
Overrides the default value of [`SnackBar.behavior`][flet.] in all
|
|
1718
|
+
descendant [`SnackBar`][flet.] controls.
|
|
1718
1719
|
"""
|
|
1719
1720
|
|
|
1720
1721
|
shape: Optional[OutlinedBorder] = None
|
|
1721
1722
|
"""
|
|
1722
|
-
Overrides the default value of [`SnackBar.shape`][flet.
|
|
1723
|
-
descendant [`SnackBar`][flet.
|
|
1723
|
+
Overrides the default value of [`SnackBar.shape`][flet.] in all
|
|
1724
|
+
descendant [`SnackBar`][flet.] controls.
|
|
1724
1725
|
"""
|
|
1725
1726
|
|
|
1726
1727
|
inset_padding: Optional[PaddingValue] = None
|
|
1727
1728
|
"""
|
|
1728
|
-
Overrides the default value for [`SnackBar.margin`][flet.
|
|
1729
|
+
Overrides the default value for [`SnackBar.margin`][flet.].
|
|
1729
1730
|
|
|
1730
1731
|
This value is only used when behavior is SnackBarBehavior.floating.
|
|
1731
1732
|
"""
|
|
@@ -1733,106 +1734,106 @@ class SnackBarTheme:
|
|
|
1733
1734
|
action_overflow_threshold: Optional[Number] = None
|
|
1734
1735
|
"""
|
|
1735
1736
|
Overrides the default value of
|
|
1736
|
-
[`SnackBar.action_overflow_threshold`][flet.
|
|
1737
|
-
all descendant [`SnackBar`][flet.
|
|
1737
|
+
[`SnackBar.action_overflow_threshold`][flet.] in
|
|
1738
|
+
all descendant [`SnackBar`][flet.] controls.
|
|
1738
1739
|
"""
|
|
1739
1740
|
|
|
1740
1741
|
|
|
1741
1742
|
@dataclass
|
|
1742
1743
|
class BannerTheme:
|
|
1743
1744
|
"""
|
|
1744
|
-
Defines default property values for descendant [`Banner`][flet.
|
|
1745
|
+
Defines default property values for descendant [`Banner`][flet.] controls.
|
|
1745
1746
|
"""
|
|
1746
1747
|
|
|
1747
1748
|
bgcolor: Optional[ColorValue] = None
|
|
1748
1749
|
"""
|
|
1749
|
-
Overrides the default value of [`Banner.bgcolor`][flet.
|
|
1750
|
-
descendant [`Banner`][flet.
|
|
1750
|
+
Overrides the default value of [`Banner.bgcolor`][flet.] in all
|
|
1751
|
+
descendant [`Banner`][flet.] controls.
|
|
1751
1752
|
"""
|
|
1752
1753
|
|
|
1753
1754
|
shadow_color: Optional[ColorValue] = None
|
|
1754
1755
|
"""
|
|
1755
|
-
Overrides the default value of [`Banner.shadow_color`][flet.
|
|
1756
|
-
all descendant [`Banner`][flet.
|
|
1756
|
+
Overrides the default value of [`Banner.shadow_color`][flet.] in
|
|
1757
|
+
all descendant [`Banner`][flet.] controls.
|
|
1757
1758
|
"""
|
|
1758
1759
|
|
|
1759
1760
|
divider_color: Optional[ColorValue] = None
|
|
1760
1761
|
"""
|
|
1761
|
-
Overrides the default value of [`Banner.divider_color`][flet.
|
|
1762
|
-
in all descendant [`Banner`][flet.
|
|
1762
|
+
Overrides the default value of [`Banner.divider_color`][flet.]
|
|
1763
|
+
in all descendant [`Banner`][flet.] controls.
|
|
1763
1764
|
"""
|
|
1764
1765
|
|
|
1765
1766
|
padding: Optional[PaddingValue] = None
|
|
1766
1767
|
"""
|
|
1767
1768
|
Overrides the default value of
|
|
1768
|
-
[`Banner.content_padding`][flet.
|
|
1769
|
-
[`Banner`][flet.
|
|
1769
|
+
[`Banner.content_padding`][flet.] in all descendant
|
|
1770
|
+
[`Banner`][flet.] controls.
|
|
1770
1771
|
"""
|
|
1771
1772
|
|
|
1772
1773
|
leading_padding: Optional[PaddingValue] = None
|
|
1773
1774
|
"""
|
|
1774
1775
|
Overrides the default value of
|
|
1775
|
-
[`Banner.leading_padding`][flet.
|
|
1776
|
-
[`Banner`][flet.
|
|
1776
|
+
[`Banner.leading_padding`][flet.] in all descendant
|
|
1777
|
+
[`Banner`][flet.] controls.
|
|
1777
1778
|
"""
|
|
1778
1779
|
|
|
1779
1780
|
elevation: Optional[Number] = None
|
|
1780
1781
|
"""
|
|
1781
|
-
Overrides the default value of [`Banner.elevation`][flet.
|
|
1782
|
-
descendant [`Banner`][flet.
|
|
1782
|
+
Overrides the default value of [`Banner.elevation`][flet.] in all
|
|
1783
|
+
descendant [`Banner`][flet.] controls.
|
|
1783
1784
|
"""
|
|
1784
1785
|
|
|
1785
1786
|
content_text_style: Optional[TextStyle] = None
|
|
1786
1787
|
"""
|
|
1787
1788
|
Overrides the default value of
|
|
1788
|
-
[`Banner.content_text_style`][flet.
|
|
1789
|
-
[`Banner`][flet.
|
|
1789
|
+
[`Banner.content_text_style`][flet.] in all descendant
|
|
1790
|
+
[`Banner`][flet.] controls.
|
|
1790
1791
|
"""
|
|
1791
1792
|
|
|
1792
1793
|
|
|
1793
1794
|
@dataclass
|
|
1794
1795
|
class DatePickerTheme:
|
|
1795
1796
|
"""
|
|
1796
|
-
Customizes the appearance of [`DatePicker`][flet.
|
|
1797
|
+
Customizes the appearance of [`DatePicker`][flet.] controls across the
|
|
1797
1798
|
app.
|
|
1798
1799
|
"""
|
|
1799
1800
|
|
|
1800
1801
|
bgcolor: Optional[ColorValue] = None
|
|
1801
1802
|
"""
|
|
1802
1803
|
Overrides the default background color of the surface in all descendant
|
|
1803
|
-
[`DatePicker`][flet.
|
|
1804
|
+
[`DatePicker`][flet.] controls.
|
|
1804
1805
|
"""
|
|
1805
1806
|
|
|
1806
1807
|
shadow_color: Optional[ColorValue] = None
|
|
1807
1808
|
"""
|
|
1808
1809
|
Overrides the default shadow color in all descendant
|
|
1809
|
-
[`DatePicker`][flet.
|
|
1810
|
+
[`DatePicker`][flet.] controls.
|
|
1810
1811
|
"""
|
|
1811
1812
|
|
|
1812
1813
|
divider_color: Optional[ColorValue] = None
|
|
1813
1814
|
"""
|
|
1814
1815
|
Overrides the default color used to paint the divider in all descendant
|
|
1815
|
-
[`DatePicker`][flet.
|
|
1816
|
+
[`DatePicker`][flet.] controls.
|
|
1816
1817
|
"""
|
|
1817
1818
|
|
|
1818
1819
|
header_bgcolor: Optional[ColorValue] = None
|
|
1819
1820
|
"""
|
|
1820
1821
|
Overrides the header's default background fill color.
|
|
1821
1822
|
|
|
1822
|
-
The [`DatePicker`][flet.
|
|
1823
|
+
The [`DatePicker`][flet.]'s header displays the currently selected date.
|
|
1823
1824
|
"""
|
|
1824
1825
|
|
|
1825
1826
|
today_bgcolor: Optional[ControlStateValue[ColorValue]] = None
|
|
1826
1827
|
"""
|
|
1827
1828
|
Overrides the default color used to paint the background of the
|
|
1828
1829
|
[`DatePicker.current_date`].[flet.DatePicker.current_date] label in the grid of the
|
|
1829
|
-
[`DatePicker`][flet.
|
|
1830
|
+
[`DatePicker`][flet.].
|
|
1830
1831
|
"""
|
|
1831
1832
|
|
|
1832
1833
|
day_bgcolor: Optional[ControlStateValue[ColorValue]] = None
|
|
1833
1834
|
"""
|
|
1834
1835
|
Overrides the default color used to paint the background of the day labels in the
|
|
1835
|
-
grid of the [`DatePicker`][flet.
|
|
1836
|
+
grid of the [`DatePicker`][flet.].
|
|
1836
1837
|
"""
|
|
1837
1838
|
|
|
1838
1839
|
day_overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
@@ -1844,15 +1845,15 @@ class DatePickerTheme:
|
|
|
1844
1845
|
day_foreground_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1845
1846
|
"""
|
|
1846
1847
|
Overrides the default color used to paint the day labels in the grid of the
|
|
1847
|
-
[`DatePicker`][flet.
|
|
1848
|
+
[`DatePicker`][flet.].
|
|
1848
1849
|
|
|
1849
1850
|
This will be used instead of the color provided in
|
|
1850
|
-
[`DatePickerTheme.day_text_style`][flet.
|
|
1851
|
+
[`DatePickerTheme.day_text_style`][flet.].
|
|
1851
1852
|
"""
|
|
1852
1853
|
|
|
1853
1854
|
elevation: Optional[Number] = None
|
|
1854
1855
|
"""
|
|
1855
|
-
Overrides the default value of [`DatePicker`][flet.
|
|
1856
|
+
Overrides the default value of [`DatePicker`][flet.] elevation.
|
|
1856
1857
|
"""
|
|
1857
1858
|
|
|
1858
1859
|
range_picker_elevation: Optional[Number] = None
|
|
@@ -1863,36 +1864,36 @@ class DatePickerTheme:
|
|
|
1863
1864
|
day_text_style: Optional[TextStyle] = None
|
|
1864
1865
|
"""
|
|
1865
1866
|
Overrides the default text style used for each individual day label in the grid of
|
|
1866
|
-
the [`DatePicker`][flet.
|
|
1867
|
+
the [`DatePicker`][flet.].
|
|
1867
1868
|
|
|
1868
1869
|
The color in
|
|
1869
|
-
[`DatePickerTheme.day_text_style`][flet.
|
|
1870
|
+
[`DatePickerTheme.day_text_style`][flet.] is not
|
|
1870
1871
|
used,
|
|
1871
|
-
[`DatePickerTheme.day_foreground_color`][flet.
|
|
1872
|
+
[`DatePickerTheme.day_foreground_color`][flet.]
|
|
1872
1873
|
is used instead.
|
|
1873
1874
|
"""
|
|
1874
1875
|
|
|
1875
1876
|
weekday_text_style: Optional[TextStyle] = None
|
|
1876
1877
|
"""
|
|
1877
1878
|
Overrides the default text style used for the row of weekday labels at the top of
|
|
1878
|
-
the [`DatePicker`][flet.
|
|
1879
|
+
the [`DatePicker`][flet.] grid.
|
|
1879
1880
|
"""
|
|
1880
1881
|
|
|
1881
1882
|
year_text_style: Optional[TextStyle] = None
|
|
1882
1883
|
"""
|
|
1883
1884
|
Overrides the default text style used to paint each of the year entries in the year
|
|
1884
|
-
selector of the [`DatePicker`][flet.
|
|
1885
|
+
selector of the [`DatePicker`][flet.].
|
|
1885
1886
|
|
|
1886
1887
|
The color of the
|
|
1887
|
-
[`DatePickerTheme.year_text_style`][flet.
|
|
1888
|
+
[`DatePickerTheme.year_text_style`][flet.] is not
|
|
1888
1889
|
used,
|
|
1889
|
-
[`DatePickerTheme.year_foreground_color`][flet.
|
|
1890
|
+
[`DatePickerTheme.year_foreground_color`][flet.]
|
|
1890
1891
|
is used instead.
|
|
1891
1892
|
"""
|
|
1892
1893
|
|
|
1893
1894
|
shape: Optional[OutlinedBorder] = None
|
|
1894
1895
|
"""
|
|
1895
|
-
Overrides the default value of [`DatePicker`][flet.
|
|
1896
|
+
Overrides the default value of [`DatePicker`][flet.] shape.
|
|
1896
1897
|
|
|
1897
1898
|
If elevation is greater than zero then a shadow is shown and the shadow's shape
|
|
1898
1899
|
mirrors the shape of the dialog.
|
|
@@ -1901,13 +1902,13 @@ class DatePickerTheme:
|
|
|
1901
1902
|
cancel_button_style: Optional[ButtonStyle] = None
|
|
1902
1903
|
"""
|
|
1903
1904
|
Overrides the default style of the cancel button of a
|
|
1904
|
-
[`DatePicker`][flet.
|
|
1905
|
+
[`DatePicker`][flet.].
|
|
1905
1906
|
"""
|
|
1906
1907
|
|
|
1907
1908
|
confirm_button_style: Optional[ButtonStyle] = None
|
|
1908
1909
|
"""
|
|
1909
1910
|
Overrides the default style of the confirm (OK) button of a
|
|
1910
|
-
[`DatePicker`][flet.
|
|
1911
|
+
[`DatePicker`][flet.].
|
|
1911
1912
|
"""
|
|
1912
1913
|
|
|
1913
1914
|
header_foreground_color: Optional[ColorValue] = None
|
|
@@ -1917,9 +1918,9 @@ class DatePickerTheme:
|
|
|
1917
1918
|
The dialog's header displays the currently selected date.
|
|
1918
1919
|
|
|
1919
1920
|
This is used instead of the color property of
|
|
1920
|
-
[`DatePickerTheme.header_headline_text_style`][flet.
|
|
1921
|
+
[`DatePickerTheme.header_headline_text_style`][flet.]
|
|
1921
1922
|
and
|
|
1922
|
-
[`DatePickerTheme.header_help_text_style`][flet.
|
|
1923
|
+
[`DatePickerTheme.header_help_text_style`][flet.].
|
|
1923
1924
|
"""
|
|
1924
1925
|
|
|
1925
1926
|
header_headline_text_style: Optional[TextStyle] = None
|
|
@@ -1929,9 +1930,9 @@ class DatePickerTheme:
|
|
|
1929
1930
|
The dialog's header displays the currently selected date.
|
|
1930
1931
|
|
|
1931
1932
|
The color of the
|
|
1932
|
-
[`DatePickerTheme.header_headline_text_style`][flet.
|
|
1933
|
+
[`DatePickerTheme.header_headline_text_style`][flet.]
|
|
1933
1934
|
is not used,
|
|
1934
|
-
[`DatePickerTheme.header_foreground_color`][flet.
|
|
1935
|
+
[`DatePickerTheme.header_foreground_color`][flet.]
|
|
1935
1936
|
is used instead.
|
|
1936
1937
|
"""
|
|
1937
1938
|
|
|
@@ -1943,7 +1944,7 @@ class DatePickerTheme:
|
|
|
1943
1944
|
usually a prompt to the user at the top of the header (i.e. 'Select date').
|
|
1944
1945
|
|
|
1945
1946
|
The color of the `header_help_style` is not used,
|
|
1946
|
-
[`DatePickerTheme.header_foreground_color`][flet.
|
|
1947
|
+
[`DatePickerTheme.header_foreground_color`][flet.]
|
|
1947
1948
|
is used instead.
|
|
1948
1949
|
"""
|
|
1949
1950
|
|
|
@@ -1967,17 +1968,18 @@ class DatePickerTheme:
|
|
|
1967
1968
|
The dialog's header displays the currently selected date range.
|
|
1968
1969
|
|
|
1969
1970
|
This is used instead of any colors provided by
|
|
1970
|
-
`range_picker_header_headline_text_style` or
|
|
1971
|
+
`range_picker_header_headline_text_style` or
|
|
1972
|
+
`range_picker_header_help_text_style`.
|
|
1971
1973
|
"""
|
|
1972
1974
|
|
|
1973
1975
|
today_foreground_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1974
1976
|
"""
|
|
1975
1977
|
Overrides the default color used to paint the
|
|
1976
|
-
[`DatePicker.current_date`][flet.
|
|
1978
|
+
[`DatePicker.current_date`][flet.] label in the grid of the
|
|
1977
1979
|
dialog's CalendarDatePicker and the corresponding year in the dialog's YearPicker.
|
|
1978
1980
|
|
|
1979
1981
|
This will be used instead of the color provided in
|
|
1980
|
-
[`DatePickerTheme.day_text_style`][flet.
|
|
1982
|
+
[`DatePickerTheme.day_text_style`][flet.].
|
|
1981
1983
|
"""
|
|
1982
1984
|
|
|
1983
1985
|
range_picker_shape: Optional[OutlinedBorder] = None
|
|
@@ -2002,8 +2004,8 @@ class DatePickerTheme:
|
|
|
2002
2004
|
|
|
2003
2005
|
range_picker_header_headline_text_style: Optional[TextStyle] = None
|
|
2004
2006
|
"""
|
|
2005
|
-
Overrides the default text style used for the headline text in the header of a
|
|
2006
|
-
screen DateRangePicker (TBD).
|
|
2007
|
+
Overrides the default text style used for the headline text in the header of a
|
|
2008
|
+
full screen DateRangePicker (TBD).
|
|
2007
2009
|
|
|
2008
2010
|
The dialog's header displays the currently selected date range.
|
|
2009
2011
|
|
|
@@ -2019,25 +2021,26 @@ class DatePickerTheme:
|
|
|
2019
2021
|
|
|
2020
2022
|
range_selection_overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
2021
2023
|
"""
|
|
2022
|
-
Overrides the default highlight color that's typically used to indicate that a
|
|
2023
|
-
in the selected range of a DateRangePicker (TBD) is focused, hovered, or
|
|
2024
|
+
Overrides the default highlight color that's typically used to indicate that a
|
|
2025
|
+
date in the selected range of a DateRangePicker (TBD) is focused, hovered, or
|
|
2026
|
+
pressed.
|
|
2024
2027
|
"""
|
|
2025
2028
|
|
|
2026
2029
|
today_border_side: Optional[BorderSide] = None
|
|
2027
2030
|
"""
|
|
2028
2031
|
Overrides the border used to paint the
|
|
2029
|
-
[`DatePicker.current_date`][flet.
|
|
2030
|
-
grid of the [`DatePicker`][flet.
|
|
2032
|
+
[`DatePicker.current_date`][flet.] label in the
|
|
2033
|
+
grid of the [`DatePicker`][flet.].
|
|
2031
2034
|
|
|
2032
2035
|
The border side's [`BorderSide.color`] is not used,
|
|
2033
|
-
[`DatePickerTheme.today_foreground_color`][flet.
|
|
2036
|
+
[`DatePickerTheme.today_foreground_color`][flet.]
|
|
2034
2037
|
is used instead.
|
|
2035
2038
|
"""
|
|
2036
2039
|
|
|
2037
2040
|
year_bgcolor: Optional[ControlStateValue[ColorValue]] = None
|
|
2038
2041
|
"""
|
|
2039
2042
|
Overrides the default color used to paint the background of the year labels in the
|
|
2040
|
-
year selector of the of the [`DatePicker`][flet.
|
|
2043
|
+
year selector of the of the [`DatePicker`][flet.].
|
|
2041
2044
|
"""
|
|
2042
2045
|
|
|
2043
2046
|
year_foreground_color: Optional[ControlStateValue[ColorValue]] = None
|
|
@@ -2046,7 +2049,7 @@ class DatePickerTheme:
|
|
|
2046
2049
|
the date picker.
|
|
2047
2050
|
|
|
2048
2051
|
This will be used instead of the color provided in
|
|
2049
|
-
[`DatePickerTheme.year_text_style`][flet.
|
|
2052
|
+
[`DatePickerTheme.year_text_style`][flet.].
|
|
2050
2053
|
"""
|
|
2051
2054
|
|
|
2052
2055
|
year_overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
@@ -2058,40 +2061,34 @@ class DatePickerTheme:
|
|
|
2058
2061
|
day_shape: Optional[ControlStateValue[OutlinedBorder]] = None
|
|
2059
2062
|
"""
|
|
2060
2063
|
Overrides the default shape used to paint the shape decoration of the day labels in
|
|
2061
|
-
the grid of the [`DatePicker`][flet.
|
|
2064
|
+
the grid of the [`DatePicker`][flet.].
|
|
2062
2065
|
|
|
2063
2066
|
If the selected day is the current day, the provided shape with the value of
|
|
2064
|
-
[`DatePickerTheme.today_bgcolor`][flet.
|
|
2067
|
+
[`DatePickerTheme.today_bgcolor`][flet.] is used to
|
|
2065
2068
|
paint the shape decoration of the day label and the value of
|
|
2066
|
-
[`DatePickerTheme.today_border_side`][flet.
|
|
2067
|
-
[`DatePickerTheme.today_foreground_color`][flet.
|
|
2069
|
+
[`DatePickerTheme.today_border_side`][flet.] and
|
|
2070
|
+
[`DatePickerTheme.today_foreground_color`][flet.]
|
|
2068
2071
|
is used to paint the border.
|
|
2069
2072
|
|
|
2070
2073
|
If the selected day is not the current day, the provided shape with the value of
|
|
2071
|
-
[`DatePickerTheme.day_bgcolor`][flet.
|
|
2074
|
+
[`DatePickerTheme.day_bgcolor`][flet.] is used to paint
|
|
2072
2075
|
the shape decoration of the day label.
|
|
2073
2076
|
"""
|
|
2074
2077
|
|
|
2075
|
-
locale: Optional[Locale] = None
|
|
2076
|
-
"""
|
|
2077
|
-
An optional locale argument can be used to set the locale for the date picker. It
|
|
2078
|
-
defaults to the ambient locale provided by Localizations.
|
|
2079
|
-
"""
|
|
2080
|
-
|
|
2081
2078
|
|
|
2082
2079
|
@dataclass
|
|
2083
2080
|
class TimePickerTheme:
|
|
2084
2081
|
"""
|
|
2085
|
-
Customizes the appearance of [`TimePicker`][flet.
|
|
2082
|
+
Customizes the appearance of [`TimePicker`][flet.] controls across the
|
|
2086
2083
|
app.
|
|
2087
2084
|
"""
|
|
2088
2085
|
|
|
2089
2086
|
bgcolor: Optional[ColorValue] = None
|
|
2090
2087
|
"""
|
|
2091
|
-
The background color of a [`TimePicker`][flet.
|
|
2088
|
+
The background color of a [`TimePicker`][flet.].
|
|
2092
2089
|
|
|
2093
2090
|
If this is null, the time picker defaults to the overall theme's
|
|
2094
|
-
[`ColorScheme.surface_container_high`][flet.
|
|
2091
|
+
[`ColorScheme.surface_container_high`][flet.].
|
|
2095
2092
|
"""
|
|
2096
2093
|
|
|
2097
2094
|
day_period_color: Optional[ColorValue] = None
|
|
@@ -2107,15 +2104,15 @@ class TimePickerTheme:
|
|
|
2107
2104
|
dial_bgcolor: Optional[ColorValue] = None
|
|
2108
2105
|
"""
|
|
2109
2106
|
The background color of the time picker dial when the entry mode is
|
|
2110
|
-
[`TimePickerEntryMode.DIAL`][flet.
|
|
2111
|
-
[`TimePickerEntryMode.DIAL_ONLY`][flet.
|
|
2107
|
+
[`TimePickerEntryMode.DIAL`][flet.] or
|
|
2108
|
+
[`TimePickerEntryMode.DIAL_ONLY`][flet.].
|
|
2112
2109
|
"""
|
|
2113
2110
|
|
|
2114
2111
|
dial_hand_color: Optional[ColorValue] = None
|
|
2115
2112
|
"""
|
|
2116
2113
|
The color of the time picker dial's hand when the entry mode is
|
|
2117
|
-
[`TimePickerEntryMode.DIAL`][flet.
|
|
2118
|
-
[`TimePickerEntryMode.DIAL_ONLY`][flet.
|
|
2114
|
+
[`TimePickerEntryMode.DIAL`][flet.] or
|
|
2115
|
+
[`TimePickerEntryMode.DIAL_ONLY`][flet.].
|
|
2119
2116
|
"""
|
|
2120
2117
|
|
|
2121
2118
|
dial_text_color: Optional[ColorValue] = None
|
|
@@ -2125,7 +2122,7 @@ class TimePickerTheme:
|
|
|
2125
2122
|
|
|
2126
2123
|
entry_mode_icon_color: Optional[ColorValue] = None
|
|
2127
2124
|
"""
|
|
2128
|
-
The color of the entry mode [`IconButton`][flet.
|
|
2125
|
+
The color of the entry mode [`IconButton`][flet.].
|
|
2129
2126
|
"""
|
|
2130
2127
|
|
|
2131
2128
|
hour_minute_color: Optional[ColorValue] = None
|
|
@@ -2140,17 +2137,17 @@ class TimePickerTheme:
|
|
|
2140
2137
|
|
|
2141
2138
|
day_period_button_style: Optional[ButtonStyle] = None
|
|
2142
2139
|
"""
|
|
2143
|
-
The style of the AM/PM toggle control of a [`TimePicker`][flet.
|
|
2140
|
+
The style of the AM/PM toggle control of a [`TimePicker`][flet.].
|
|
2144
2141
|
"""
|
|
2145
2142
|
|
|
2146
2143
|
cancel_button_style: Optional[ButtonStyle] = None
|
|
2147
2144
|
"""
|
|
2148
|
-
The style of the cancel button of a [`TimePicker`][flet.
|
|
2145
|
+
The style of the cancel button of a [`TimePicker`][flet.].
|
|
2149
2146
|
"""
|
|
2150
2147
|
|
|
2151
2148
|
confirm_button_style: Optional[ButtonStyle] = None
|
|
2152
2149
|
"""
|
|
2153
|
-
The style of the confirm (OK) button of a [`TimePicker`][flet.
|
|
2150
|
+
The style of the confirm (OK) button of a [`TimePicker`][flet.].
|
|
2154
2151
|
"""
|
|
2155
2152
|
|
|
2156
2153
|
day_period_text_style: Optional[TextStyle] = None
|
|
@@ -2158,7 +2155,7 @@ class TimePickerTheme:
|
|
|
2158
2155
|
Used to configure the [TextStyle][flet.TextStyle] for the AM/PM toggle control.
|
|
2159
2156
|
|
|
2160
2157
|
If this is null, the time picker defaults to the overall theme's
|
|
2161
|
-
[`TextTheme.title_medium`][flet.
|
|
2158
|
+
[`TextTheme.title_medium`][flet.].
|
|
2162
2159
|
"""
|
|
2163
2160
|
|
|
2164
2161
|
dial_text_style: Optional[TextStyle] = None
|
|
@@ -2189,12 +2186,12 @@ class TimePickerTheme:
|
|
|
2189
2186
|
|
|
2190
2187
|
day_period_shape: Optional[OutlinedBorder] = None
|
|
2191
2188
|
"""
|
|
2192
|
-
The shape of the day period that the [`TimePicker`][flet.
|
|
2189
|
+
The shape of the day period that the [`TimePicker`][flet.] uses.
|
|
2193
2190
|
"""
|
|
2194
2191
|
|
|
2195
2192
|
hour_minute_shape: Optional[OutlinedBorder] = None
|
|
2196
2193
|
"""
|
|
2197
|
-
The shape of the hour and minute controls that the [`TimePicker`][flet.
|
|
2194
|
+
The shape of the hour and minute controls that the [`TimePicker`][flet.]
|
|
2198
2195
|
uses.
|
|
2199
2196
|
"""
|
|
2200
2197
|
|
|
@@ -2206,8 +2203,8 @@ class TimePickerTheme:
|
|
|
2206
2203
|
padding: Optional[PaddingValue] = None
|
|
2207
2204
|
"""
|
|
2208
2205
|
The padding around the time picker dialog when the entry mode is
|
|
2209
|
-
[`TimePickerEntryMode.DIAL`][flet.
|
|
2210
|
-
[`TimePickerEntryMode.DIAL_ONLY`][flet.
|
|
2206
|
+
[`TimePickerEntryMode.DIAL`][flet.] or
|
|
2207
|
+
[`TimePickerEntryMode.DIAL_ONLY`][flet.].
|
|
2211
2208
|
"""
|
|
2212
2209
|
|
|
2213
2210
|
time_selector_separator_color: Optional[ControlStateValue[ColorValue]] = None
|
|
@@ -2225,332 +2222,325 @@ class TimePickerTheme:
|
|
|
2225
2222
|
@dataclass
|
|
2226
2223
|
class DropdownTheme:
|
|
2227
2224
|
"""
|
|
2228
|
-
|
|
2229
|
-
[`Dropdown`][flet.Dropdown] controls.
|
|
2225
|
+
Customizes the appearance of [`Dropdown`][flet.] across the app.
|
|
2230
2226
|
"""
|
|
2231
2227
|
|
|
2232
2228
|
menu_style: Optional[MenuStyle] = None
|
|
2233
2229
|
"""
|
|
2234
|
-
|
|
2235
|
-
`bgcolor` and/or `menu_width` are provided for the [`MenuStyle`][flet.MenuStyle]
|
|
2236
|
-
then they will override the default values for
|
|
2237
|
-
[`DropdownMenu.elevation`][flet.Dropdown.elevation],
|
|
2238
|
-
[`DropdownMenu.bgcolor`][flet.Dropdown.bgcolor] and
|
|
2239
|
-
[`DropdownMenu.menu_width`][flet.Dropdown.menu_width].
|
|
2230
|
+
Overrides the default value for [`Dropdown.menu_style`][flet.].
|
|
2240
2231
|
"""
|
|
2241
2232
|
|
|
2242
2233
|
text_style: Optional[TextStyle] = None
|
|
2243
2234
|
"""
|
|
2244
|
-
Overrides the default value for
|
|
2245
|
-
[`DropdownMenu.text_style`][flet.Dropdown.text_style].
|
|
2235
|
+
Overrides the default value for [`Dropdown.text_style`][flet.].
|
|
2246
2236
|
"""
|
|
2247
2237
|
|
|
2248
2238
|
|
|
2249
2239
|
@dataclass
|
|
2250
2240
|
class ListTileTheme:
|
|
2251
2241
|
"""
|
|
2252
|
-
Customizes the appearance of descendant [`ListTile`][flet.
|
|
2242
|
+
Customizes the appearance of descendant [`ListTile`][flet.] controls.
|
|
2253
2243
|
"""
|
|
2254
2244
|
|
|
2255
2245
|
icon_color: Optional[ColorValue] = None
|
|
2256
2246
|
"""
|
|
2257
|
-
Overrides the default value for [`ListTile.icon_color`][flet.
|
|
2247
|
+
Overrides the default value for [`ListTile.icon_color`][flet.].
|
|
2258
2248
|
"""
|
|
2259
2249
|
|
|
2260
2250
|
text_color: Optional[ColorValue] = None
|
|
2261
2251
|
"""
|
|
2262
|
-
Overrides the default value for [`ListTile.text_color`][flet.
|
|
2252
|
+
Overrides the default value for [`ListTile.text_color`][flet.].
|
|
2263
2253
|
"""
|
|
2264
2254
|
|
|
2265
2255
|
bgcolor: Optional[ColorValue] = None
|
|
2266
2256
|
"""
|
|
2267
|
-
Overrides the default value for [`ListTile.bgcolor`][flet.
|
|
2257
|
+
Overrides the default value for [`ListTile.bgcolor`][flet.].
|
|
2268
2258
|
"""
|
|
2269
2259
|
|
|
2270
2260
|
selected_tile_color: Optional[ColorValue] = None
|
|
2271
2261
|
"""
|
|
2272
2262
|
Overrides the default value for
|
|
2273
|
-
[`ListTile.selected_tile_color`][flet.
|
|
2263
|
+
[`ListTile.selected_tile_color`][flet.].
|
|
2274
2264
|
"""
|
|
2275
2265
|
|
|
2276
2266
|
selected_color: Optional[ColorValue] = None
|
|
2277
2267
|
"""
|
|
2278
2268
|
Overrides the default value for
|
|
2279
|
-
[`ListTile.selected_color`][flet.
|
|
2269
|
+
[`ListTile.selected_color`][flet.].
|
|
2280
2270
|
"""
|
|
2281
2271
|
|
|
2282
2272
|
is_three_line: Optional[bool] = None
|
|
2283
2273
|
"""
|
|
2284
2274
|
Overrides the default value for
|
|
2285
|
-
[`ListTile.is_three_line`][flet.
|
|
2275
|
+
[`ListTile.is_three_line`][flet.].
|
|
2286
2276
|
"""
|
|
2287
2277
|
|
|
2288
2278
|
enable_feedback: Optional[bool] = None
|
|
2289
2279
|
"""
|
|
2290
2280
|
Overrides the default value for
|
|
2291
|
-
[`ListTile.enable_feedback`][flet.
|
|
2281
|
+
[`ListTile.enable_feedback`][flet.].
|
|
2292
2282
|
"""
|
|
2293
2283
|
|
|
2294
2284
|
dense: Optional[bool] = None
|
|
2295
2285
|
"""
|
|
2296
|
-
Overrides the default value for [`ListTile.dense`][flet.
|
|
2286
|
+
Overrides the default value for [`ListTile.dense`][flet.].
|
|
2297
2287
|
"""
|
|
2298
2288
|
|
|
2299
2289
|
shape: Optional[OutlinedBorder] = None
|
|
2300
2290
|
"""
|
|
2301
|
-
Overrides the default value for [`ListTile.shape`][flet.
|
|
2291
|
+
Overrides the default value for [`ListTile.shape`][flet.].
|
|
2302
2292
|
"""
|
|
2303
2293
|
|
|
2304
2294
|
visual_density: Optional[VisualDensity] = None
|
|
2305
2295
|
"""
|
|
2306
2296
|
Overrides the default value for
|
|
2307
|
-
[`ListTile.visual_density`][flet.
|
|
2297
|
+
[`ListTile.visual_density`][flet.].
|
|
2308
2298
|
"""
|
|
2309
2299
|
|
|
2310
2300
|
content_padding: Optional[PaddingValue] = None
|
|
2311
2301
|
"""
|
|
2312
2302
|
Overrides the default value for
|
|
2313
|
-
[`ListTile.content_padding`][flet.
|
|
2303
|
+
[`ListTile.content_padding`][flet.].
|
|
2314
2304
|
"""
|
|
2315
2305
|
|
|
2316
2306
|
min_vertical_padding: Optional[PaddingValue] = None
|
|
2317
2307
|
"""
|
|
2318
2308
|
Overrides the default value for
|
|
2319
|
-
[`ListTile.min_vertical_padding`][flet.
|
|
2309
|
+
[`ListTile.min_vertical_padding`][flet.].
|
|
2320
2310
|
"""
|
|
2321
2311
|
|
|
2322
2312
|
horizontal_spacing: Optional[Number] = None
|
|
2323
2313
|
"""
|
|
2324
2314
|
Overrides the default value for
|
|
2325
|
-
[`ListTile.horizontal_spacing`][flet.
|
|
2315
|
+
[`ListTile.horizontal_spacing`][flet.].
|
|
2326
2316
|
"""
|
|
2327
2317
|
|
|
2328
2318
|
min_leading_width: Optional[Number] = None
|
|
2329
2319
|
"""
|
|
2330
2320
|
Overrides the default value for
|
|
2331
|
-
[`ListTile.min_leading_width`][flet.
|
|
2321
|
+
[`ListTile.min_leading_width`][flet.].
|
|
2332
2322
|
"""
|
|
2333
2323
|
|
|
2334
2324
|
title_text_style: Optional[TextStyle] = None
|
|
2335
2325
|
"""
|
|
2336
2326
|
Overrides the default value for
|
|
2337
|
-
[`ListTile.title_text_style`][flet.
|
|
2327
|
+
[`ListTile.title_text_style`][flet.].
|
|
2338
2328
|
"""
|
|
2339
2329
|
|
|
2340
2330
|
subtitle_text_style: Optional[TextStyle] = None
|
|
2341
2331
|
"""
|
|
2342
2332
|
Overrides the default value for
|
|
2343
|
-
[`ListTile.subtitle_text_style`][flet.
|
|
2333
|
+
[`ListTile.subtitle_text_style`][flet.].
|
|
2344
2334
|
"""
|
|
2345
2335
|
|
|
2346
2336
|
leading_and_trailing_text_style: Optional[TextStyle] = None
|
|
2347
2337
|
"""
|
|
2348
2338
|
Overrides the default value for
|
|
2349
|
-
[`ListTile.leading_and_trailing_text_style`][flet.
|
|
2339
|
+
[`ListTile.leading_and_trailing_text_style`][flet.].
|
|
2350
2340
|
"""
|
|
2351
2341
|
|
|
2352
2342
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
2353
2343
|
"""
|
|
2354
2344
|
Overrides the default value for
|
|
2355
|
-
[`ListTile.mouse_cursor`][flet.
|
|
2345
|
+
[`ListTile.mouse_cursor`][flet.].
|
|
2356
2346
|
"""
|
|
2357
2347
|
|
|
2358
|
-
|
|
2348
|
+
min_height: Optional[Number] = None
|
|
2359
2349
|
"""
|
|
2360
2350
|
Overrides the default value for
|
|
2361
|
-
[`ListTile.min_height`][flet.
|
|
2351
|
+
[`ListTile.min_height`][flet.].
|
|
2362
2352
|
"""
|
|
2363
2353
|
|
|
2364
2354
|
|
|
2365
2355
|
@dataclass
|
|
2366
2356
|
class TooltipTheme:
|
|
2367
2357
|
"""
|
|
2368
|
-
Customizes the appearance of descendant [`Tooltip`][flet.
|
|
2358
|
+
Customizes the appearance of descendant [`Tooltip`][flet.] controls.
|
|
2369
2359
|
"""
|
|
2370
2360
|
|
|
2371
2361
|
text_style: Optional[TextStyle] = None
|
|
2372
2362
|
"""
|
|
2373
|
-
Overrides the default value for [`Tooltip.text_style`][flet.
|
|
2363
|
+
Overrides the default value for [`Tooltip.text_style`][flet.].
|
|
2374
2364
|
"""
|
|
2375
2365
|
|
|
2376
2366
|
enable_feedback: Optional[bool] = None
|
|
2377
2367
|
"""
|
|
2378
2368
|
Overrides the default value for
|
|
2379
|
-
[`Tooltip.enable_feedback`][flet.
|
|
2369
|
+
[`Tooltip.enable_feedback`][flet.].
|
|
2380
2370
|
"""
|
|
2381
2371
|
|
|
2382
2372
|
exclude_from_semantics: Optional[bool] = None
|
|
2383
2373
|
"""
|
|
2384
2374
|
Overrides the default value for
|
|
2385
|
-
[`Tooltip.exclude_from_semantics`][flet.
|
|
2375
|
+
[`Tooltip.exclude_from_semantics`][flet.].
|
|
2386
2376
|
"""
|
|
2387
2377
|
|
|
2388
2378
|
prefer_below: Optional[bool] = None
|
|
2389
2379
|
"""
|
|
2390
|
-
Overrides the default value for [`Tooltip.prefer_below`][flet.
|
|
2380
|
+
Overrides the default value for [`Tooltip.prefer_below`][flet.].
|
|
2391
2381
|
"""
|
|
2392
2382
|
|
|
2393
2383
|
vertical_offset: Optional[Number] = None
|
|
2394
2384
|
"""
|
|
2395
2385
|
Overrides the default value for
|
|
2396
|
-
[`Tooltip.vertical_offset`][flet.
|
|
2386
|
+
[`Tooltip.vertical_offset`][flet.].
|
|
2397
2387
|
"""
|
|
2398
2388
|
|
|
2399
2389
|
padding: Optional[PaddingValue] = None
|
|
2400
2390
|
"""
|
|
2401
|
-
Overrides the default value for [`Tooltip.padding`][flet.
|
|
2391
|
+
Overrides the default value for [`Tooltip.padding`][flet.].
|
|
2402
2392
|
"""
|
|
2403
2393
|
|
|
2404
2394
|
wait_duration: Optional[DurationValue] = None
|
|
2405
2395
|
"""
|
|
2406
2396
|
Overrides the default value for
|
|
2407
|
-
[`Tooltip.wait_duration`][flet.
|
|
2397
|
+
[`Tooltip.wait_duration`][flet.].
|
|
2408
2398
|
"""
|
|
2409
2399
|
|
|
2410
2400
|
exit_duration: Optional[DurationValue] = None
|
|
2411
2401
|
"""
|
|
2412
2402
|
Overrides the default value for
|
|
2413
|
-
[`Tooltip.exit_duration`][flet.
|
|
2403
|
+
[`Tooltip.exit_duration`][flet.].
|
|
2414
2404
|
"""
|
|
2415
2405
|
|
|
2416
2406
|
show_duration: Optional[DurationValue] = None
|
|
2417
2407
|
"""
|
|
2418
2408
|
Overrides the default value for
|
|
2419
|
-
[`Tooltip.show_duration`][flet.
|
|
2409
|
+
[`Tooltip.show_duration`][flet.].
|
|
2420
2410
|
"""
|
|
2421
2411
|
|
|
2422
2412
|
margin: Optional[MarginValue] = None
|
|
2423
2413
|
"""
|
|
2424
|
-
Overrides the default value for [`Tooltip.margin`][flet.
|
|
2414
|
+
Overrides the default value for [`Tooltip.margin`][flet.].
|
|
2425
2415
|
"""
|
|
2426
2416
|
|
|
2427
2417
|
trigger_mode: Optional[TooltipTriggerMode] = None
|
|
2428
2418
|
"""
|
|
2429
2419
|
Overrides the default value for
|
|
2430
|
-
[`Tooltip.trigger_mode`][flet.
|
|
2420
|
+
[`Tooltip.trigger_mode`][flet.].
|
|
2431
2421
|
"""
|
|
2432
2422
|
|
|
2433
2423
|
decoration: Optional[BoxDecoration] = None
|
|
2434
2424
|
"""
|
|
2435
|
-
Overrides the default value for [`Tooltip.decoration`][flet.
|
|
2425
|
+
Overrides the default value for [`Tooltip.decoration`][flet.].
|
|
2436
2426
|
"""
|
|
2437
2427
|
|
|
2438
2428
|
text_align: Optional[TextAlign] = None
|
|
2439
2429
|
"""
|
|
2440
|
-
Overrides the default value for [`Tooltip.text_align`][flet.
|
|
2430
|
+
Overrides the default value for [`Tooltip.text_align`][flet.].
|
|
2441
2431
|
"""
|
|
2442
2432
|
|
|
2443
2433
|
size_constraints: Optional[BoxConstraints] = None
|
|
2444
2434
|
"""
|
|
2445
2435
|
Overrides the default value for
|
|
2446
|
-
[`Tooltip.size_constraints`][flet.
|
|
2436
|
+
[`Tooltip.size_constraints`][flet.].
|
|
2447
2437
|
"""
|
|
2448
2438
|
|
|
2449
2439
|
|
|
2450
2440
|
@dataclass
|
|
2451
2441
|
class ExpansionTileTheme:
|
|
2452
2442
|
"""
|
|
2453
|
-
Customizes the appearance of descendant [`ExpansionTile`][flet.
|
|
2443
|
+
Customizes the appearance of descendant [`ExpansionTile`][flet.]
|
|
2454
2444
|
controls.
|
|
2455
2445
|
"""
|
|
2456
2446
|
|
|
2457
2447
|
bgcolor: Optional[ColorValue] = None
|
|
2458
2448
|
"""
|
|
2459
2449
|
Overrides the default value for
|
|
2460
|
-
[`ExpansionTile.bgcolor`][flet.
|
|
2450
|
+
[`ExpansionTile.bgcolor`][flet.].
|
|
2461
2451
|
"""
|
|
2462
2452
|
|
|
2463
2453
|
icon_color: Optional[ColorValue] = None
|
|
2464
2454
|
"""
|
|
2465
2455
|
Overrides the default value for
|
|
2466
|
-
[`ExpansionTile.icon_color`][flet.
|
|
2456
|
+
[`ExpansionTile.icon_color`][flet.].
|
|
2467
2457
|
"""
|
|
2468
2458
|
|
|
2469
2459
|
text_color: Optional[ColorValue] = None
|
|
2470
2460
|
"""
|
|
2471
2461
|
Overrides the default value for
|
|
2472
|
-
[`ExpansionTile.text_color`][flet.
|
|
2462
|
+
[`ExpansionTile.text_color`][flet.].
|
|
2473
2463
|
"""
|
|
2474
2464
|
|
|
2475
2465
|
collapsed_bgcolor: Optional[ColorValue] = None
|
|
2476
2466
|
"""
|
|
2477
2467
|
Overrides the default value for
|
|
2478
|
-
[`ExpansionTile.collapsed_bgcolor`][flet.
|
|
2468
|
+
[`ExpansionTile.collapsed_bgcolor`][flet.].
|
|
2479
2469
|
"""
|
|
2480
2470
|
|
|
2481
2471
|
collapsed_icon_color: Optional[ColorValue] = None
|
|
2482
2472
|
"""
|
|
2483
2473
|
Overrides the default value for
|
|
2484
|
-
[`ExpansionTile.collapsed_icon_color`][flet.
|
|
2474
|
+
[`ExpansionTile.collapsed_icon_color`][flet.].
|
|
2485
2475
|
"""
|
|
2486
2476
|
|
|
2487
2477
|
clip_behavior: Optional[ClipBehavior] = None
|
|
2488
2478
|
"""
|
|
2489
2479
|
Overrides the default value for
|
|
2490
|
-
[`ExpansionTile.clip_behavior`][flet.
|
|
2480
|
+
[`ExpansionTile.clip_behavior`][flet.].
|
|
2491
2481
|
"""
|
|
2492
2482
|
|
|
2493
2483
|
collapsed_text_color: Optional[ColorValue] = None
|
|
2494
2484
|
"""
|
|
2495
2485
|
Overrides the default value for
|
|
2496
|
-
[`ExpansionTile.collapsed_text_color`][flet.
|
|
2486
|
+
[`ExpansionTile.collapsed_text_color`][flet.].
|
|
2497
2487
|
"""
|
|
2498
2488
|
|
|
2499
2489
|
tile_padding: Optional[PaddingValue] = None
|
|
2500
2490
|
"""
|
|
2501
2491
|
Overrides the default value for
|
|
2502
|
-
[`ExpansionTile.tile_padding`][flet.
|
|
2492
|
+
[`ExpansionTile.tile_padding`][flet.].
|
|
2503
2493
|
"""
|
|
2504
2494
|
|
|
2505
2495
|
expanded_alignment: Optional[Alignment] = None
|
|
2506
2496
|
"""
|
|
2507
2497
|
Overrides the default value for
|
|
2508
|
-
[`ExpansionTile.expanded_alignment`][flet.
|
|
2498
|
+
[`ExpansionTile.expanded_alignment`][flet.].
|
|
2509
2499
|
"""
|
|
2510
2500
|
|
|
2511
2501
|
controls_padding: Optional[PaddingValue] = None
|
|
2512
2502
|
"""
|
|
2513
2503
|
Overrides the default value for
|
|
2514
|
-
[`ExpansionTile.controls_padding`][flet.
|
|
2504
|
+
[`ExpansionTile.controls_padding`][flet.].
|
|
2515
2505
|
"""
|
|
2516
2506
|
|
|
2517
2507
|
|
|
2518
2508
|
@dataclass
|
|
2519
2509
|
class SliderTheme:
|
|
2520
2510
|
"""
|
|
2521
|
-
Customizes the appearance of descendant [`Slider`][flet.
|
|
2511
|
+
Customizes the appearance of descendant [`Slider`][flet.] controls.
|
|
2522
2512
|
"""
|
|
2523
2513
|
|
|
2524
2514
|
active_track_color: Optional[ColorValue] = None
|
|
2525
2515
|
"""
|
|
2526
|
-
Overrides the default value for [`Slider.active_color`][flet.
|
|
2516
|
+
Overrides the default value for [`Slider.active_color`][flet.].
|
|
2527
2517
|
"""
|
|
2528
2518
|
|
|
2529
2519
|
inactive_track_color: Optional[ColorValue] = None
|
|
2530
2520
|
"""
|
|
2531
2521
|
Overrides the default value for
|
|
2532
|
-
[`Slider.inactive_color`][flet.
|
|
2522
|
+
[`Slider.inactive_color`][flet.].
|
|
2533
2523
|
"""
|
|
2534
2524
|
|
|
2535
2525
|
thumb_color: Optional[ColorValue] = None
|
|
2536
2526
|
"""
|
|
2537
|
-
Overrides the default value for [`Slider.thumb_color`][flet.
|
|
2527
|
+
Overrides the default value for [`Slider.thumb_color`][flet.].
|
|
2538
2528
|
"""
|
|
2539
2529
|
|
|
2540
2530
|
overlay_color: Optional[ColorValue] = None
|
|
2541
2531
|
"""
|
|
2542
|
-
Overrides the default value for [`Slider.overlay_color`][flet.
|
|
2532
|
+
Overrides the default value for [`Slider.overlay_color`][flet.].
|
|
2543
2533
|
"""
|
|
2544
2534
|
|
|
2545
2535
|
value_indicator_color: Optional[ColorValue] = None
|
|
2546
2536
|
"""
|
|
2547
|
-
The color given to the [`Slider`][flet.
|
|
2537
|
+
The color given to the [`Slider`][flet.]'s value indicator to draw
|
|
2548
2538
|
itself with.
|
|
2549
2539
|
"""
|
|
2550
2540
|
|
|
2551
2541
|
disabled_thumb_color: Optional[ColorValue] = None
|
|
2552
2542
|
"""
|
|
2553
|
-
The color given to the thumb to draw itself with when the [`Slider`][flet.
|
|
2543
|
+
The color given to the thumb to draw itself with when the [`Slider`][flet.]
|
|
2554
2544
|
is disabled.
|
|
2555
2545
|
"""
|
|
2556
2546
|
|
|
@@ -2561,7 +2551,7 @@ class SliderTheme:
|
|
|
2561
2551
|
|
|
2562
2552
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
2563
2553
|
"""
|
|
2564
|
-
Overrides the default value for [`Slider.mouse_cursor`][flet.
|
|
2554
|
+
Overrides the default value for [`Slider.mouse_cursor`][flet.].
|
|
2565
2555
|
"""
|
|
2566
2556
|
|
|
2567
2557
|
active_tick_mark_color: Optional[ColorValue] = None
|
|
@@ -2574,35 +2564,35 @@ class SliderTheme:
|
|
|
2574
2564
|
"""
|
|
2575
2565
|
The color of the track's tick marks that are drawn between the current thumb
|
|
2576
2566
|
osition and the [Slider.max][flet.Slider.max] position when the
|
|
2577
|
-
[`Slider`][flet.
|
|
2567
|
+
[`Slider`][flet.] is disabled.
|
|
2578
2568
|
"""
|
|
2579
2569
|
|
|
2580
2570
|
disabled_active_track_color: Optional[ColorValue] = None
|
|
2581
2571
|
"""
|
|
2582
|
-
The color of the [`Slider`][flet.
|
|
2572
|
+
The color of the [`Slider`][flet.] track between the
|
|
2583
2573
|
[Slider.min][flet.Slider.min] position and the current thumb position when the
|
|
2584
|
-
[`Slider`][flet.
|
|
2574
|
+
[`Slider`][flet.] is disabled.
|
|
2585
2575
|
"""
|
|
2586
2576
|
|
|
2587
2577
|
disabled_inactive_tick_mark_color: Optional[ColorValue] = None
|
|
2588
2578
|
"""
|
|
2589
2579
|
The color of the track's tick marks that are drawn between the current thumb
|
|
2590
2580
|
position and the [Slider.max][flet.Slider.max] position when the
|
|
2591
|
-
[`Slider`][flet.
|
|
2581
|
+
[`Slider`][flet.] is disabled.
|
|
2592
2582
|
"""
|
|
2593
2583
|
|
|
2594
2584
|
disabled_inactive_track_color: Optional[ColorValue] = None
|
|
2595
2585
|
"""
|
|
2596
|
-
The color of the [`Slider`][flet.
|
|
2597
|
-
and the [Slider.max][flet.Slider.max] position when the [`Slider`][flet.
|
|
2586
|
+
The color of the [`Slider`][flet.] track between the current thumb position
|
|
2587
|
+
and the [Slider.max][flet.Slider.max] position when the [`Slider`][flet.] is
|
|
2598
2588
|
disabled.
|
|
2599
2589
|
"""
|
|
2600
2590
|
|
|
2601
2591
|
disabled_secondary_active_track_color: Optional[ColorValue] = None
|
|
2602
2592
|
"""
|
|
2603
|
-
The color of the [`Slider`][flet.
|
|
2593
|
+
The color of the [`Slider`][flet.] track between the current thumb position
|
|
2604
2594
|
and the [Slider.secondary_track_value][flet.Slider.secondary_track_value] position
|
|
2605
|
-
when the [`Slider`][flet.
|
|
2595
|
+
when the [`Slider`][flet.] is disabled.
|
|
2606
2596
|
"""
|
|
2607
2597
|
|
|
2608
2598
|
inactive_tick_mark_color: Optional[ColorValue] = None
|
|
@@ -2631,7 +2621,7 @@ class SliderTheme:
|
|
|
2631
2621
|
secondary_active_track_color: Optional[ColorValue] = None
|
|
2632
2622
|
"""
|
|
2633
2623
|
Overrides the default value for
|
|
2634
|
-
[`Slider.secondary_active_color`][flet.
|
|
2624
|
+
[`Slider.secondary_active_color`][flet.].
|
|
2635
2625
|
"""
|
|
2636
2626
|
|
|
2637
2627
|
track_height: Optional[Number] = None
|
|
@@ -2646,12 +2636,12 @@ class SliderTheme:
|
|
|
2646
2636
|
|
|
2647
2637
|
interaction: Optional[SliderInteraction] = None
|
|
2648
2638
|
"""
|
|
2649
|
-
Overrides the default value for [`Slider.interaction`][flet.
|
|
2639
|
+
Overrides the default value for [`Slider.interaction`][flet.].
|
|
2650
2640
|
"""
|
|
2651
2641
|
|
|
2652
2642
|
padding: Optional[PaddingValue] = None
|
|
2653
2643
|
"""
|
|
2654
|
-
Overrides the default value for [`Slider.padding`][flet.
|
|
2644
|
+
Overrides the default value for [`Slider.padding`][flet.].
|
|
2655
2645
|
"""
|
|
2656
2646
|
|
|
2657
2647
|
track_gap: Optional[Number] = None
|
|
@@ -2667,7 +2657,7 @@ class SliderTheme:
|
|
|
2667
2657
|
|
|
2668
2658
|
year_2023: bool = False
|
|
2669
2659
|
"""
|
|
2670
|
-
Overrides the default value for [`Slider.year_2023`][flet.
|
|
2660
|
+
Overrides the default value for [`Slider.year_2023`][flet.].
|
|
2671
2661
|
"""
|
|
2672
2662
|
|
|
2673
2663
|
|
|
@@ -2675,24 +2665,24 @@ class SliderTheme:
|
|
|
2675
2665
|
class ProgressIndicatorTheme:
|
|
2676
2666
|
"""
|
|
2677
2667
|
Customizes the appearance of progress indicators
|
|
2678
|
-
([`ProgressBar`][flet.
|
|
2668
|
+
([`ProgressBar`][flet.], [`ProgressRing`][flet.]) across the
|
|
2679
2669
|
app.
|
|
2680
2670
|
"""
|
|
2681
2671
|
|
|
2682
2672
|
color: Optional[ColorValue] = None
|
|
2683
2673
|
"""
|
|
2684
|
-
Overrides the default values for [`ProgressBar.color`][flet.
|
|
2685
|
-
[`ProgressRing.color`][flet.
|
|
2674
|
+
Overrides the default values for [`ProgressBar.color`][flet.] and
|
|
2675
|
+
[`ProgressRing.color`][flet.].
|
|
2686
2676
|
"""
|
|
2687
2677
|
|
|
2688
2678
|
circular_track_color: Optional[ColorValue] = None
|
|
2689
2679
|
"""
|
|
2690
|
-
Overrides the default value for [`ProgressRing.bgcolor`][flet.
|
|
2680
|
+
Overrides the default value for [`ProgressRing.bgcolor`][flet.].
|
|
2691
2681
|
"""
|
|
2692
2682
|
|
|
2693
2683
|
linear_track_color: Optional[ColorValue] = None
|
|
2694
2684
|
"""
|
|
2695
|
-
Overrides the default value for [`ProgressBar.bgcolor`][flet.
|
|
2685
|
+
Overrides the default value for [`ProgressBar.bgcolor`][flet.].
|
|
2696
2686
|
"""
|
|
2697
2687
|
|
|
2698
2688
|
refresh_bgcolor: Optional[ColorValue] = None
|
|
@@ -2703,384 +2693,384 @@ class ProgressIndicatorTheme:
|
|
|
2703
2693
|
linear_min_height: Optional[Number] = None
|
|
2704
2694
|
"""
|
|
2705
2695
|
Overrides the default value for
|
|
2706
|
-
[`ProgressBar.bar_height`][flet.
|
|
2696
|
+
[`ProgressBar.bar_height`][flet.].
|
|
2707
2697
|
"""
|
|
2708
2698
|
|
|
2709
2699
|
border_radius: Optional[BorderRadiusValue] = None
|
|
2710
2700
|
"""
|
|
2711
2701
|
Overrides the default value for
|
|
2712
|
-
[`ProgressBar.border_radius`][flet.
|
|
2702
|
+
[`ProgressBar.border_radius`][flet.].
|
|
2713
2703
|
"""
|
|
2714
2704
|
|
|
2715
2705
|
track_gap: Optional[Number] = None
|
|
2716
2706
|
"""
|
|
2717
2707
|
Overrides the default values for
|
|
2718
|
-
[`ProgressBar.track_gap`][flet.
|
|
2719
|
-
[`ProgressRing.track_gap`][flet.
|
|
2708
|
+
[`ProgressBar.track_gap`][flet.] and
|
|
2709
|
+
[`ProgressRing.track_gap`][flet.].
|
|
2720
2710
|
"""
|
|
2721
2711
|
|
|
2722
2712
|
circular_track_padding: Optional[PaddingValue] = None
|
|
2723
2713
|
"""
|
|
2724
2714
|
Overrides the default value for
|
|
2725
|
-
[`ProgressRing.padding`][flet.
|
|
2715
|
+
[`ProgressRing.padding`][flet.].
|
|
2726
2716
|
"""
|
|
2727
2717
|
|
|
2728
2718
|
size_constraints: Optional[BoxConstraints] = None
|
|
2729
2719
|
"""
|
|
2730
2720
|
Overrides the default value for
|
|
2731
|
-
[`ProgressRing.size_constraints`][flet.
|
|
2721
|
+
[`ProgressRing.size_constraints`][flet.].
|
|
2732
2722
|
"""
|
|
2733
2723
|
|
|
2734
2724
|
stop_indicator_color: Optional[ColorValue] = None
|
|
2735
2725
|
"""
|
|
2736
2726
|
Overrides the default value for
|
|
2737
|
-
[`ProgressBar.stop_indicator_color`][flet.
|
|
2727
|
+
[`ProgressBar.stop_indicator_color`][flet.].
|
|
2738
2728
|
"""
|
|
2739
2729
|
|
|
2740
2730
|
stop_indicator_radius: Optional[Number] = None
|
|
2741
2731
|
"""
|
|
2742
2732
|
Overrides the default value for
|
|
2743
|
-
[`ProgressBar.stop_indicator_radius`][flet.
|
|
2733
|
+
[`ProgressBar.stop_indicator_radius`][flet.].
|
|
2744
2734
|
"""
|
|
2745
2735
|
|
|
2746
2736
|
stroke_align: Optional[Number] = None
|
|
2747
2737
|
"""
|
|
2748
2738
|
Overrides the default value for
|
|
2749
|
-
[`ProgressRing.stroke_align`][flet.
|
|
2739
|
+
[`ProgressRing.stroke_align`][flet.].
|
|
2750
2740
|
"""
|
|
2751
2741
|
|
|
2752
2742
|
stroke_cap: Optional[StrokeCap] = None
|
|
2753
2743
|
"""
|
|
2754
2744
|
Overrides the default value for
|
|
2755
|
-
[`ProgressRing.stroke_cap`][flet.
|
|
2745
|
+
[`ProgressRing.stroke_cap`][flet.].
|
|
2756
2746
|
"""
|
|
2757
2747
|
|
|
2758
2748
|
stroke_width: Optional[Number] = None
|
|
2759
2749
|
"""
|
|
2760
2750
|
Overrides the default value for
|
|
2761
|
-
[`ProgressRing.stroke_width`][flet.
|
|
2751
|
+
[`ProgressRing.stroke_width`][flet.].
|
|
2762
2752
|
"""
|
|
2763
2753
|
|
|
2764
2754
|
year_2023: bool = False
|
|
2765
2755
|
"""
|
|
2766
2756
|
Overrides the default values for
|
|
2767
|
-
[`ProgressBar.year_2023`][flet.
|
|
2768
|
-
[`ProgressRing.year_2023`][flet.
|
|
2757
|
+
[`ProgressBar.year_2023`][flet.] and
|
|
2758
|
+
[`ProgressRing.year_2023`][flet.].
|
|
2769
2759
|
"""
|
|
2770
2760
|
|
|
2771
2761
|
|
|
2772
2762
|
@dataclass
|
|
2773
2763
|
class PopupMenuTheme:
|
|
2774
2764
|
"""
|
|
2775
|
-
Customizes the appearance of [`PopupMenuButton`][flet.
|
|
2765
|
+
Customizes the appearance of [`PopupMenuButton`][flet.] across the
|
|
2776
2766
|
app.
|
|
2777
2767
|
"""
|
|
2778
2768
|
|
|
2779
2769
|
color: Optional[ColorValue] = None
|
|
2780
2770
|
"""
|
|
2781
2771
|
Overrides the default value of
|
|
2782
|
-
[`PopupMenuButton.bgcolor`][flet.
|
|
2783
|
-
[`PopupMenuButton`][flet.
|
|
2772
|
+
[`PopupMenuButton.bgcolor`][flet.] in all descendant
|
|
2773
|
+
[`PopupMenuButton`][flet.] controls.
|
|
2784
2774
|
"""
|
|
2785
2775
|
|
|
2786
2776
|
shadow_color: Optional[ColorValue] = None
|
|
2787
2777
|
"""
|
|
2788
2778
|
Overrides the default value of
|
|
2789
|
-
[`PopupMenuButton.shadow_color`][flet.
|
|
2790
|
-
descendant [`PopupMenuButton`][flet.
|
|
2779
|
+
[`PopupMenuButton.shadow_color`][flet.] in all
|
|
2780
|
+
descendant [`PopupMenuButton`][flet.] controls.
|
|
2791
2781
|
"""
|
|
2792
2782
|
|
|
2793
2783
|
icon_color: Optional[ColorValue] = None
|
|
2794
2784
|
"""
|
|
2795
2785
|
Overrides the default value of
|
|
2796
|
-
[`PopupMenuButton.icon_color`][flet.
|
|
2797
|
-
descendant [`PopupMenuButton`][flet.
|
|
2786
|
+
[`PopupMenuButton.icon_color`][flet.] in all
|
|
2787
|
+
descendant [`PopupMenuButton`][flet.] controls.
|
|
2798
2788
|
"""
|
|
2799
2789
|
|
|
2800
2790
|
label_text_style: Optional[TextStyle] = None
|
|
2801
2791
|
"""
|
|
2802
2792
|
Overrides the default value of
|
|
2803
|
-
[`PopupMenuItem.label_text_style`][flet.
|
|
2804
|
-
in all descendant [`PopupMenuItem`][flet.
|
|
2793
|
+
[`PopupMenuItem.label_text_style`][flet.]
|
|
2794
|
+
in all descendant [`PopupMenuItem`][flet.] controls.
|
|
2805
2795
|
"""
|
|
2806
2796
|
|
|
2807
2797
|
enable_feedback: Optional[bool] = None
|
|
2808
2798
|
"""
|
|
2809
2799
|
Overrides the default value of
|
|
2810
|
-
[`PopupMenuButton.enable_feedback`][flet.
|
|
2811
|
-
descendant [`PopupMenuButton`][flet.
|
|
2800
|
+
[`PopupMenuButton.enable_feedback`][flet.] in all
|
|
2801
|
+
descendant [`PopupMenuButton`][flet.] controls
|
|
2812
2802
|
"""
|
|
2813
2803
|
|
|
2814
2804
|
elevation: Optional[Number] = None
|
|
2815
2805
|
"""
|
|
2816
2806
|
Overrides the default value of
|
|
2817
|
-
[`PopupMenuButton.elevation`][flet.
|
|
2818
|
-
[`PopupMenuButton`][flet.
|
|
2807
|
+
[`PopupMenuButton.elevation`][flet.] in all descendant
|
|
2808
|
+
[`PopupMenuButton`][flet.] controls.
|
|
2819
2809
|
"""
|
|
2820
2810
|
|
|
2821
2811
|
icon_size: Optional[Number] = None
|
|
2822
2812
|
"""
|
|
2823
2813
|
Overrides the default value of
|
|
2824
|
-
[`PopupMenuButton.icon_size`][flet.
|
|
2825
|
-
[`PopupMenuButton`][flet.
|
|
2814
|
+
[`PopupMenuButton.icon_size`][flet.] in all descendant
|
|
2815
|
+
[`PopupMenuButton`][flet.] controls.
|
|
2826
2816
|
"""
|
|
2827
2817
|
|
|
2828
2818
|
shape: Optional[OutlinedBorder] = None
|
|
2829
2819
|
"""
|
|
2830
2820
|
Overrides the default value of
|
|
2831
|
-
[`PopupMenuButton.shape`][flet.
|
|
2832
|
-
[`PopupMenuButton`][flet.
|
|
2821
|
+
[`PopupMenuButton.shape`][flet.] in all descendant
|
|
2822
|
+
[`PopupMenuButton`][flet.] controls.
|
|
2833
2823
|
"""
|
|
2834
2824
|
|
|
2835
2825
|
menu_position: Optional[PopupMenuPosition] = None
|
|
2836
2826
|
"""
|
|
2837
2827
|
Overrides the default value of
|
|
2838
|
-
[`PopupMenuButton.menu_position`][flet.
|
|
2839
|
-
descendant [`PopupMenuButton`][flet.
|
|
2828
|
+
[`PopupMenuButton.menu_position`][flet.] in all
|
|
2829
|
+
descendant [`PopupMenuButton`][flet.] controls.
|
|
2840
2830
|
"""
|
|
2841
2831
|
|
|
2842
2832
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
2843
2833
|
"""
|
|
2844
2834
|
Overrides the default value of
|
|
2845
|
-
[`PopupMenuItem.mouse_cursor`][flet.
|
|
2846
|
-
descendant [`PopupMenuItem`][flet.
|
|
2835
|
+
[`PopupMenuItem.mouse_cursor`][flet.] in all
|
|
2836
|
+
descendant [`PopupMenuItem`][flet.] controls.
|
|
2847
2837
|
"""
|
|
2848
2838
|
|
|
2849
2839
|
menu_padding: Optional[PaddingValue] = None
|
|
2850
2840
|
"""
|
|
2851
2841
|
Overrides the default value of
|
|
2852
|
-
[`PopupMenuButton.menu_padding`][flet.
|
|
2853
|
-
descendant [`PopupMenuButton`][flet.
|
|
2842
|
+
[`PopupMenuButton.menu_padding`][flet.] in all
|
|
2843
|
+
descendant [`PopupMenuButton`][flet.] controls.
|
|
2854
2844
|
"""
|
|
2855
2845
|
|
|
2856
2846
|
|
|
2857
2847
|
@dataclass
|
|
2858
2848
|
class SearchBarTheme:
|
|
2859
2849
|
"""
|
|
2860
|
-
Customizes the appearance of [`SearchBar`][flet.
|
|
2850
|
+
Customizes the appearance of [`SearchBar`][flet.] controls across the app.
|
|
2861
2851
|
"""
|
|
2862
2852
|
|
|
2863
2853
|
bgcolor: Optional[ColorValue] = None
|
|
2864
2854
|
"""
|
|
2865
2855
|
Overrides the default value of
|
|
2866
|
-
[`SearchBar.bar_bgcolor`][flet.
|
|
2867
|
-
[`SearchBar`][flet.
|
|
2856
|
+
[`SearchBar.bar_bgcolor`][flet.] in all descendant
|
|
2857
|
+
[`SearchBar`][flet.] controls.
|
|
2868
2858
|
"""
|
|
2869
2859
|
|
|
2870
2860
|
text_capitalization: Optional[TextCapitalization] = None
|
|
2871
2861
|
"""
|
|
2872
2862
|
Overrides the default value of
|
|
2873
|
-
[`SearchBar.capitalization`][flet.
|
|
2874
|
-
[`SearchBar`][flet.
|
|
2863
|
+
[`SearchBar.capitalization`][flet.] in all descendant
|
|
2864
|
+
[`SearchBar`][flet.] controls.
|
|
2875
2865
|
"""
|
|
2876
2866
|
|
|
2877
2867
|
shadow_color: Optional[ControlStateValue[ColorValue]] = None
|
|
2878
2868
|
"""
|
|
2879
2869
|
Overrides the default value of
|
|
2880
|
-
[`SearchBar.bar_shadow_color`][flet.
|
|
2881
|
-
[`SearchBar`][flet.
|
|
2870
|
+
[`SearchBar.bar_shadow_color`][flet.] in all descendant
|
|
2871
|
+
[`SearchBar`][flet.] controls.
|
|
2882
2872
|
"""
|
|
2883
2873
|
|
|
2884
2874
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
2885
2875
|
"""
|
|
2886
2876
|
Overrides the default value of
|
|
2887
|
-
[`SearchBar.bar_overlay_color`][flet.
|
|
2888
|
-
descendant [`SearchBar`][flet.
|
|
2877
|
+
[`SearchBar.bar_overlay_color`][flet.] in all
|
|
2878
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2889
2879
|
"""
|
|
2890
2880
|
|
|
2891
2881
|
elevation: Optional[ControlStateValue[Optional[Number]]] = None
|
|
2892
2882
|
"""
|
|
2893
2883
|
Overrides the default value of
|
|
2894
|
-
[`SearchBar.bar_elevation`][flet.
|
|
2895
|
-
[`SearchBar`][flet.
|
|
2884
|
+
[`SearchBar.bar_elevation`][flet.] in all descendant
|
|
2885
|
+
[`SearchBar`][flet.] controls.
|
|
2896
2886
|
"""
|
|
2897
2887
|
|
|
2898
2888
|
text_style: Optional[ControlStateValue[TextStyle]] = None
|
|
2899
2889
|
"""
|
|
2900
2890
|
Overrides the default value of
|
|
2901
|
-
[`SearchBar.bar_text_style`][flet.
|
|
2902
|
-
[`SearchBar`][flet.
|
|
2891
|
+
[`SearchBar.bar_text_style`][flet.] in all descendant
|
|
2892
|
+
[`SearchBar`][flet.] controls.
|
|
2903
2893
|
"""
|
|
2904
2894
|
|
|
2905
2895
|
hint_style: Optional[ControlStateValue[TextStyle]] = None
|
|
2906
2896
|
"""
|
|
2907
2897
|
Overrides the default value of
|
|
2908
|
-
[`SearchBar.bar_hint_text_style`][flet.
|
|
2909
|
-
descendant [`SearchBar`][flet.
|
|
2898
|
+
[`SearchBar.bar_hint_text_style`][flet.] in all
|
|
2899
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2910
2900
|
"""
|
|
2911
2901
|
|
|
2912
2902
|
shape: Optional[ControlStateValue[OutlinedBorder]] = None
|
|
2913
2903
|
"""
|
|
2914
2904
|
Overrides the default value of
|
|
2915
|
-
[`SearchBar.bar_shape`][flet.
|
|
2916
|
-
[`SearchBar`][flet.
|
|
2905
|
+
[`SearchBar.bar_shape`][flet.] in all descendant
|
|
2906
|
+
[`SearchBar`][flet.] controls.
|
|
2917
2907
|
"""
|
|
2918
2908
|
|
|
2919
2909
|
padding: Optional[ControlStateValue[PaddingValue]] = None
|
|
2920
2910
|
"""
|
|
2921
2911
|
Overrides the default value of
|
|
2922
|
-
[`SearchBar.bar_padding`][flet.
|
|
2923
|
-
[`SearchBar`][flet.
|
|
2912
|
+
[`SearchBar.bar_padding`][flet.] in all descendant
|
|
2913
|
+
[`SearchBar`][flet.] controls.
|
|
2924
2914
|
"""
|
|
2925
2915
|
|
|
2926
2916
|
size_constraints: Optional[BoxConstraints] = None
|
|
2927
2917
|
"""
|
|
2928
2918
|
Overrides the default value of
|
|
2929
|
-
[`SearchBar.bar_size_constraints`][flet.
|
|
2930
|
-
descendant [`SearchBar`][flet.
|
|
2919
|
+
[`SearchBar.bar_size_constraints`][flet.] in all
|
|
2920
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2931
2921
|
"""
|
|
2932
2922
|
|
|
2933
2923
|
border_side: Optional[ControlStateValue[BorderSide]] = None
|
|
2934
2924
|
"""
|
|
2935
2925
|
Overrides the default value of
|
|
2936
|
-
[`SearchBar.bar_border_side`][flet.
|
|
2937
|
-
descendant [`SearchBar`][flet.
|
|
2926
|
+
[`SearchBar.bar_border_side`][flet.] in all
|
|
2927
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2938
2928
|
"""
|
|
2939
2929
|
|
|
2940
2930
|
|
|
2941
2931
|
@dataclass
|
|
2942
2932
|
class SearchViewTheme:
|
|
2943
2933
|
"""
|
|
2944
|
-
Customizes the appearance of [`SearchBar`][flet.
|
|
2934
|
+
Customizes the appearance of [`SearchBar`][flet.] controls across the
|
|
2945
2935
|
app.
|
|
2946
2936
|
"""
|
|
2947
2937
|
|
|
2948
2938
|
bgcolor: Optional[ColorValue] = None
|
|
2949
2939
|
"""
|
|
2950
2940
|
Overrides the default value of
|
|
2951
|
-
[`SearchBar.view_bgcolor`][flet.
|
|
2952
|
-
[`SearchBar`][flet.
|
|
2941
|
+
[`SearchBar.view_bgcolor`][flet.] in all descendant
|
|
2942
|
+
[`SearchBar`][flet.] controls.
|
|
2953
2943
|
"""
|
|
2954
2944
|
|
|
2955
2945
|
divider_color: Optional[ColorValue] = None
|
|
2956
2946
|
"""
|
|
2957
2947
|
Overrides the default value of
|
|
2958
|
-
[`SearchBar.divider_color`][flet.
|
|
2959
|
-
[`SearchBar`][flet.
|
|
2948
|
+
[`SearchBar.divider_color`][flet.] in all descendant
|
|
2949
|
+
[`SearchBar`][flet.] controls.
|
|
2960
2950
|
"""
|
|
2961
2951
|
|
|
2962
2952
|
elevation: Optional[Number] = None
|
|
2963
2953
|
"""
|
|
2964
2954
|
Overrides the default value of
|
|
2965
|
-
[`SearchBar.view_elevation`][flet.
|
|
2966
|
-
[`SearchBar`][flet.
|
|
2955
|
+
[`SearchBar.view_elevation`][flet.] in all descendant
|
|
2956
|
+
[`SearchBar`][flet.] controls.
|
|
2967
2957
|
"""
|
|
2968
2958
|
|
|
2969
2959
|
header_hint_text_style: Optional[TextStyle] = None
|
|
2970
2960
|
"""
|
|
2971
2961
|
Overrides the default value of
|
|
2972
|
-
[`SearchBar.view_hint_text_style`][flet.
|
|
2973
|
-
descendant [`SearchBar`][flet.
|
|
2962
|
+
[`SearchBar.view_hint_text_style`][flet.] in all
|
|
2963
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2974
2964
|
"""
|
|
2975
2965
|
|
|
2976
2966
|
header_text_style: Optional[TextStyle] = None
|
|
2977
2967
|
"""
|
|
2978
2968
|
Overrides the default value of
|
|
2979
|
-
[`SearchBar.view_header_text_style`][flet.
|
|
2980
|
-
descendant [`SearchBar`][flet.
|
|
2969
|
+
[`SearchBar.view_header_text_style`][flet.] in all
|
|
2970
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2981
2971
|
"""
|
|
2982
2972
|
|
|
2983
2973
|
shape: Optional[OutlinedBorder] = None
|
|
2984
2974
|
"""
|
|
2985
2975
|
Overrides the default value of
|
|
2986
|
-
[`SearchBar.view_shape`][flet.
|
|
2987
|
-
[`SearchBar`][flet.
|
|
2976
|
+
[`SearchBar.view_shape`][flet.] in all descendant
|
|
2977
|
+
[`SearchBar`][flet.] controls.
|
|
2988
2978
|
"""
|
|
2989
2979
|
|
|
2990
2980
|
border_side: Optional[BorderSide] = None
|
|
2991
2981
|
""" Overrides the default value of
|
|
2992
|
-
[`SearchBar.view_side`][flet.
|
|
2993
|
-
descendant [`SearchBar`][flet.
|
|
2982
|
+
[`SearchBar.view_side`][flet.] in all
|
|
2983
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2994
2984
|
"""
|
|
2995
2985
|
|
|
2996
2986
|
size_constraints: Optional[BoxConstraints] = None
|
|
2997
2987
|
"""
|
|
2998
2988
|
Overrides the default value of
|
|
2999
|
-
[`SearchBar.view_size_constraints`][flet.
|
|
3000
|
-
descendant [`SearchBar`][flet.
|
|
2989
|
+
[`SearchBar.view_size_constraints`][flet.] in all
|
|
2990
|
+
descendant [`SearchBar`][flet.] controls.
|
|
3001
2991
|
"""
|
|
3002
2992
|
|
|
3003
2993
|
header_height: Optional[Number] = None
|
|
3004
2994
|
"""
|
|
3005
2995
|
Overrides the default value of
|
|
3006
|
-
[`SearchBar.view_header_height`][flet.
|
|
3007
|
-
descendant [`SearchBar`][flet.
|
|
2996
|
+
[`SearchBar.view_header_height`][flet.] in all
|
|
2997
|
+
descendant [`SearchBar`][flet.] controls.
|
|
3008
2998
|
"""
|
|
3009
2999
|
|
|
3010
3000
|
padding: Optional[PaddingValue] = None
|
|
3011
3001
|
"""
|
|
3012
3002
|
Overrides the default value of
|
|
3013
|
-
[`SearchBar.view_padding`][flet.
|
|
3014
|
-
[`SearchBar`][flet.
|
|
3003
|
+
[`SearchBar.view_padding`][flet.] in all descendant
|
|
3004
|
+
[`SearchBar`][flet.] controls.
|
|
3015
3005
|
"""
|
|
3016
3006
|
|
|
3017
3007
|
bar_padding: Optional[PaddingValue] = None
|
|
3018
3008
|
"""
|
|
3019
3009
|
Overrides the default value of
|
|
3020
|
-
[`SearchBar.view_bar_padding`][flet.
|
|
3021
|
-
[`SearchBar`][flet.
|
|
3010
|
+
[`SearchBar.view_bar_padding`][flet.] in all descendant
|
|
3011
|
+
[`SearchBar`][flet.] controls.
|
|
3022
3012
|
"""
|
|
3023
3013
|
|
|
3024
3014
|
shrink_wrap: Optional[bool] = None
|
|
3025
3015
|
"""
|
|
3026
3016
|
Overrides the default value of
|
|
3027
|
-
[`SearchBar.shrink_wrap`][flet.
|
|
3028
|
-
[`SearchBar`][flet.
|
|
3017
|
+
[`SearchBar.shrink_wrap`][flet.] in all descendant
|
|
3018
|
+
[`SearchBar`][flet.] controls.
|
|
3029
3019
|
"""
|
|
3030
3020
|
|
|
3031
3021
|
|
|
3032
3022
|
@dataclass
|
|
3033
3023
|
class NavigationDrawerTheme:
|
|
3034
3024
|
"""
|
|
3035
|
-
Customizes the appearance of descendant [`NavigationDrawer`][flet.
|
|
3025
|
+
Customizes the appearance of descendant [`NavigationDrawer`][flet.]
|
|
3036
3026
|
controls.
|
|
3037
3027
|
"""
|
|
3038
3028
|
|
|
3039
3029
|
bgcolor: Optional[ColorValue] = None
|
|
3040
3030
|
"""
|
|
3041
3031
|
Overrides the default value for
|
|
3042
|
-
[`NavigationDrawer.bgcolor`][flet.
|
|
3032
|
+
[`NavigationDrawer.bgcolor`][flet.].
|
|
3043
3033
|
"""
|
|
3044
3034
|
|
|
3045
3035
|
shadow_color: Optional[ColorValue] = None
|
|
3046
3036
|
"""
|
|
3047
3037
|
Overrides the default value for
|
|
3048
|
-
[`NavigationDrawer.shadow_color`][flet.
|
|
3038
|
+
[`NavigationDrawer.shadow_color`][flet.].
|
|
3049
3039
|
"""
|
|
3050
3040
|
|
|
3051
3041
|
indicator_color: Optional[ColorValue] = None
|
|
3052
3042
|
"""
|
|
3053
3043
|
Overrides the default value for
|
|
3054
|
-
[`NavigationDrawer.indicator_color`][flet.
|
|
3044
|
+
[`NavigationDrawer.indicator_color`][flet.].
|
|
3055
3045
|
"""
|
|
3056
3046
|
|
|
3057
3047
|
elevation: Optional[Number] = None
|
|
3058
3048
|
"""
|
|
3059
3049
|
Overrides the default value for
|
|
3060
|
-
[`NavigationDrawer.elevation`][flet.
|
|
3050
|
+
[`NavigationDrawer.elevation`][flet.].
|
|
3061
3051
|
"""
|
|
3062
3052
|
|
|
3063
3053
|
tile_height: Optional[Number] = None
|
|
3064
3054
|
"""
|
|
3065
3055
|
Overrides the default height of
|
|
3066
|
-
[`NavigationDrawerDestination`][flet.
|
|
3056
|
+
[`NavigationDrawerDestination`][flet.].
|
|
3067
3057
|
"""
|
|
3068
3058
|
|
|
3069
3059
|
label_text_style: Optional[ControlStateValue[TextStyle]] = None
|
|
3070
3060
|
"""
|
|
3071
3061
|
The style to merge with the default text style for
|
|
3072
|
-
[`NavigationDrawerDestination`][flet.
|
|
3062
|
+
[`NavigationDrawerDestination`][flet.] labels.
|
|
3073
3063
|
"""
|
|
3074
3064
|
|
|
3075
3065
|
indicator_shape: Optional[OutlinedBorder] = None
|
|
3076
3066
|
"""
|
|
3077
3067
|
Overrides the default value for
|
|
3078
|
-
[`NavigationDrawer.indicator_shape`][flet.
|
|
3068
|
+
[`NavigationDrawer.indicator_shape`][flet.].
|
|
3079
3069
|
"""
|
|
3080
3070
|
|
|
3081
3071
|
indicator_size: Optional[Size] = None
|
|
3082
3072
|
"""
|
|
3083
|
-
Overrides the default size of the [`NavigationDrawer`][flet.
|
|
3073
|
+
Overrides the default size of the [`NavigationDrawer`][flet.]'s
|
|
3084
3074
|
selection indicator.
|
|
3085
3075
|
"""
|
|
3086
3076
|
|
|
@@ -3088,38 +3078,38 @@ class NavigationDrawerTheme:
|
|
|
3088
3078
|
@dataclass
|
|
3089
3079
|
class NavigationBarTheme:
|
|
3090
3080
|
"""
|
|
3091
|
-
Customizes the appearance of [`NavigationBar`][flet.
|
|
3081
|
+
Customizes the appearance of [`NavigationBar`][flet.]
|
|
3092
3082
|
controls across the
|
|
3093
3083
|
app.
|
|
3094
3084
|
"""
|
|
3095
3085
|
|
|
3096
3086
|
bgcolor: Optional[ColorValue] = None
|
|
3097
3087
|
"""Overrides the default value for
|
|
3098
|
-
[`NavigationBar.bgcolor`][flet.
|
|
3088
|
+
[`NavigationBar.bgcolor`][flet.].
|
|
3099
3089
|
"""
|
|
3100
3090
|
|
|
3101
3091
|
shadow_color: Optional[ColorValue] = None
|
|
3102
3092
|
"""
|
|
3103
3093
|
Overrides the default value for
|
|
3104
|
-
[`NavigationBar.shadow_color`][flet.
|
|
3094
|
+
[`NavigationBar.shadow_color`][flet.].
|
|
3105
3095
|
"""
|
|
3106
3096
|
|
|
3107
3097
|
indicator_color: Optional[ColorValue] = None
|
|
3108
3098
|
"""
|
|
3109
3099
|
Overrides the default value for
|
|
3110
|
-
[`NavigationBar.indicator_color`][flet.
|
|
3100
|
+
[`NavigationBar.indicator_color`][flet.].
|
|
3111
3101
|
"""
|
|
3112
3102
|
|
|
3113
3103
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
3114
3104
|
"""
|
|
3115
3105
|
Overrides the default value for
|
|
3116
|
-
[`NavigationBar.overlay_color`][flet.
|
|
3106
|
+
[`NavigationBar.overlay_color`][flet.].
|
|
3117
3107
|
"""
|
|
3118
3108
|
|
|
3119
3109
|
elevation: Optional[Number] = None
|
|
3120
3110
|
"""
|
|
3121
3111
|
Overrides the default value for
|
|
3122
|
-
[`NavigationBar.elevation`][flet.
|
|
3112
|
+
[`NavigationBar.elevation`][flet.].
|
|
3123
3113
|
"""
|
|
3124
3114
|
|
|
3125
3115
|
height: Optional[Number] = None
|
|
@@ -3130,68 +3120,68 @@ class NavigationBarTheme:
|
|
|
3130
3120
|
label_text_style: Optional[ControlStateValue[TextStyle]] = None
|
|
3131
3121
|
"""
|
|
3132
3122
|
The style to merge with the default text style for
|
|
3133
|
-
[`NavigationBarDestination`][flet.
|
|
3123
|
+
[`NavigationBarDestination`][flet.] labels.
|
|
3134
3124
|
"""
|
|
3135
3125
|
|
|
3136
3126
|
indicator_shape: Optional[OutlinedBorder] = None
|
|
3137
3127
|
"""
|
|
3138
3128
|
Overrides the default value for
|
|
3139
|
-
[`NavigationBar.indicator_shape`][flet.
|
|
3129
|
+
[`NavigationBar.indicator_shape`][flet.].
|
|
3140
3130
|
"""
|
|
3141
3131
|
|
|
3142
3132
|
label_behavior: Optional[NavigationBarLabelBehavior] = None
|
|
3143
3133
|
"""
|
|
3144
3134
|
Overrides the default value for
|
|
3145
|
-
[`NavigationBar.label_behavior`][flet.
|
|
3135
|
+
[`NavigationBar.label_behavior`][flet.].
|
|
3146
3136
|
"""
|
|
3147
3137
|
|
|
3148
3138
|
label_padding: Optional[PaddingValue] = None
|
|
3149
3139
|
"""
|
|
3150
3140
|
Overrides the default value for
|
|
3151
|
-
[`NavigationBar.label_padding`][flet.
|
|
3141
|
+
[`NavigationBar.label_padding`][flet.].
|
|
3152
3142
|
"""
|
|
3153
3143
|
|
|
3154
3144
|
|
|
3155
3145
|
@dataclass
|
|
3156
3146
|
class SegmentedButtonTheme:
|
|
3157
3147
|
"""
|
|
3158
|
-
Customizes the appearance of [`SegmentedButton`][flet.
|
|
3148
|
+
Customizes the appearance of [`SegmentedButton`][flet.]
|
|
3159
3149
|
controls across the app.
|
|
3160
3150
|
"""
|
|
3161
3151
|
|
|
3162
3152
|
selected_icon: Optional[IconData] = None
|
|
3163
3153
|
"""
|
|
3164
3154
|
Overrides the default value for
|
|
3165
|
-
[`SegmentedButton.selected_icon`][flet.
|
|
3155
|
+
[`SegmentedButton.selected_icon`][flet.].
|
|
3166
3156
|
"""
|
|
3167
3157
|
|
|
3168
3158
|
style: Optional[ButtonStyle] = None
|
|
3169
3159
|
"""
|
|
3170
3160
|
Overrides the default value for
|
|
3171
|
-
[`SegmentedButton.style`][flet.
|
|
3161
|
+
[`SegmentedButton.style`][flet.].
|
|
3172
3162
|
"""
|
|
3173
3163
|
|
|
3174
3164
|
|
|
3175
3165
|
@dataclass
|
|
3176
3166
|
class IconTheme:
|
|
3177
3167
|
"""
|
|
3178
|
-
Customizes the appearance of [`Icon`][flet.
|
|
3168
|
+
Customizes the appearance of [`Icon`][flet.] controls across the app.
|
|
3179
3169
|
"""
|
|
3180
3170
|
|
|
3181
3171
|
color: Optional[ColorValue] = None
|
|
3182
3172
|
"""
|
|
3183
|
-
Overrides the default value for [`Icon.color`][flet.
|
|
3173
|
+
Overrides the default value for [`Icon.color`][flet.].
|
|
3184
3174
|
"""
|
|
3185
3175
|
|
|
3186
3176
|
apply_text_scaling: Optional[bool] = None
|
|
3187
3177
|
"""
|
|
3188
3178
|
Overrides the default value for
|
|
3189
|
-
[`Icon.apply_text_scaling`][flet.
|
|
3179
|
+
[`Icon.apply_text_scaling`][flet.].
|
|
3190
3180
|
"""
|
|
3191
3181
|
|
|
3192
3182
|
fill: Optional[Number] = None
|
|
3193
3183
|
"""
|
|
3194
|
-
Overrides the default value for [`Icon.fill`][flet.
|
|
3184
|
+
Overrides the default value for [`Icon.fill`][flet.].
|
|
3195
3185
|
"""
|
|
3196
3186
|
|
|
3197
3187
|
opacity: Optional[Number] = None
|
|
@@ -3201,129 +3191,137 @@ class IconTheme:
|
|
|
3201
3191
|
|
|
3202
3192
|
size: Optional[Number] = None
|
|
3203
3193
|
"""
|
|
3204
|
-
Overrides the default value for [`Icon.size`][flet.
|
|
3194
|
+
Overrides the default value for [`Icon.size`][flet.].
|
|
3205
3195
|
"""
|
|
3206
3196
|
|
|
3207
3197
|
optical_size: Optional[Number] = None
|
|
3208
3198
|
"""
|
|
3209
|
-
Overrides the default value for [`Icon.optical_size`][flet.
|
|
3199
|
+
Overrides the default value for [`Icon.optical_size`][flet.].
|
|
3210
3200
|
"""
|
|
3211
3201
|
|
|
3212
3202
|
grade: Optional[Number] = None
|
|
3213
3203
|
"""
|
|
3214
|
-
Overrides the default value for [`Icon.grade`][flet.
|
|
3204
|
+
Overrides the default value for [`Icon.grade`][flet.].
|
|
3215
3205
|
"""
|
|
3216
3206
|
|
|
3217
3207
|
weight: Optional[Number] = None
|
|
3218
3208
|
"""
|
|
3219
|
-
Overrides the default value for [`Icon.weight`][flet.
|
|
3209
|
+
Overrides the default value for [`Icon.weight`][flet.].
|
|
3220
3210
|
"""
|
|
3221
3211
|
|
|
3222
3212
|
shadows: Optional[BoxShadowValue] = None
|
|
3223
3213
|
"""
|
|
3224
|
-
Overrides the default value for [`Icon.shadows`][flet.
|
|
3214
|
+
Overrides the default value for [`Icon.shadows`][flet.].
|
|
3225
3215
|
"""
|
|
3226
3216
|
|
|
3227
3217
|
|
|
3228
3218
|
@dataclass
|
|
3229
3219
|
class DataTableTheme:
|
|
3230
3220
|
"""
|
|
3231
|
-
Customizes the appearance of [`DataTable`][flet.
|
|
3221
|
+
Customizes the appearance of [`DataTable`][flet.] controls across the app.
|
|
3232
3222
|
"""
|
|
3233
3223
|
|
|
3234
3224
|
checkbox_horizontal_margin: Optional[Number] = None
|
|
3235
3225
|
"""
|
|
3236
3226
|
Overrides the default value for
|
|
3237
|
-
[`DataTable.checkbox_horizontal_margin`][flet.
|
|
3227
|
+
[`DataTable.checkbox_horizontal_margin`][flet.].
|
|
3238
3228
|
"""
|
|
3239
3229
|
|
|
3240
3230
|
column_spacing: Optional[Number] = None
|
|
3241
3231
|
"""
|
|
3242
3232
|
Overrides the default value for
|
|
3243
|
-
[`DataTable.column_spacing`][flet.
|
|
3233
|
+
[`DataTable.column_spacing`][flet.].
|
|
3244
3234
|
"""
|
|
3245
3235
|
|
|
3246
3236
|
data_row_max_height: Optional[Number] = None
|
|
3247
3237
|
"""
|
|
3248
3238
|
Overrides the default value for
|
|
3249
|
-
[`DataTable.data_row_max_height`][flet.
|
|
3239
|
+
[`DataTable.data_row_max_height`][flet.].
|
|
3250
3240
|
"""
|
|
3251
3241
|
|
|
3252
3242
|
data_row_min_height: Optional[Number] = None
|
|
3253
3243
|
"""
|
|
3254
3244
|
Overrides the default value for
|
|
3255
|
-
[`DataTable.data_row_min_height`][flet.
|
|
3245
|
+
[`DataTable.data_row_min_height`][flet.].
|
|
3256
3246
|
"""
|
|
3257
3247
|
|
|
3258
3248
|
data_row_color: Optional[ControlStateValue[ColorValue]] = None
|
|
3259
3249
|
"""
|
|
3260
3250
|
Overrides the default value for
|
|
3261
|
-
[`DataTable.data_row_color`][flet.
|
|
3251
|
+
[`DataTable.data_row_color`][flet.].
|
|
3262
3252
|
"""
|
|
3263
3253
|
|
|
3264
3254
|
data_text_style: Optional[TextStyle] = None
|
|
3265
3255
|
"""
|
|
3266
3256
|
Overrides the default value for
|
|
3267
|
-
[`DataTable.data_text_style`][flet.
|
|
3257
|
+
[`DataTable.data_text_style`][flet.].
|
|
3268
3258
|
"""
|
|
3269
3259
|
|
|
3270
3260
|
divider_thickness: Optional[Number] = None
|
|
3271
3261
|
"""
|
|
3272
3262
|
Overrides the default value for
|
|
3273
|
-
[`DataTable.divider_thickness`][flet.
|
|
3263
|
+
[`DataTable.divider_thickness`][flet.].
|
|
3274
3264
|
"""
|
|
3275
3265
|
|
|
3276
3266
|
horizontal_margin: Optional[Number] = None
|
|
3277
3267
|
"""
|
|
3278
3268
|
Overrides the default value for
|
|
3279
|
-
[`DataTable.horizontal_margin`][flet.
|
|
3269
|
+
[`DataTable.horizontal_margin`][flet.].
|
|
3280
3270
|
"""
|
|
3281
3271
|
|
|
3282
3272
|
heading_text_style: Optional[TextStyle] = None
|
|
3283
3273
|
"""
|
|
3284
3274
|
Overrides the default value for
|
|
3285
|
-
[`DataTable.heading_text_style`][flet.
|
|
3275
|
+
[`DataTable.heading_text_style`][flet.].
|
|
3286
3276
|
"""
|
|
3287
3277
|
|
|
3288
3278
|
heading_row_color: Optional[ControlStateValue[ColorValue]] = None
|
|
3289
3279
|
"""
|
|
3290
3280
|
Overrides the default value for
|
|
3291
|
-
[`DataTable.heading_row_color`][flet.
|
|
3281
|
+
[`DataTable.heading_row_color`][flet.].
|
|
3292
3282
|
"""
|
|
3293
3283
|
|
|
3294
3284
|
heading_row_height: Optional[Number] = None
|
|
3295
3285
|
"""
|
|
3296
3286
|
Overrides the default value for
|
|
3297
|
-
[`DataTable.heading_row_height`][flet.
|
|
3287
|
+
[`DataTable.heading_row_height`][flet.].
|
|
3298
3288
|
"""
|
|
3299
3289
|
|
|
3300
3290
|
data_row_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
3301
3291
|
"""
|
|
3302
|
-
Overrides the default value for [`DataRow`][flet.
|
|
3292
|
+
Overrides the default value for [`DataRow`][flet.] mouse cursor.
|
|
3303
3293
|
"""
|
|
3304
3294
|
|
|
3305
3295
|
decoration: Optional[BoxDecoration] = None
|
|
3306
3296
|
"""
|
|
3307
|
-
Overrides the default value for [`DataTable`][flet.
|
|
3297
|
+
Overrides the default value for [`DataTable`][flet.] decoration.
|
|
3308
3298
|
"""
|
|
3309
3299
|
|
|
3310
3300
|
heading_row_alignment: Optional[MainAxisAlignment] = None
|
|
3311
3301
|
"""
|
|
3312
3302
|
Overrides the default value for
|
|
3313
|
-
[`DataColumn.heading_row_alignment`][flet.
|
|
3303
|
+
[`DataColumn.heading_row_alignment`][flet.].
|
|
3314
3304
|
"""
|
|
3315
3305
|
|
|
3316
3306
|
heading_cell_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
3317
3307
|
"""
|
|
3318
3308
|
Overrides the default value for
|
|
3319
|
-
[`DataColumn`][flet.
|
|
3309
|
+
[`DataColumn`][flet.] mouse cursor.
|
|
3320
3310
|
"""
|
|
3321
3311
|
|
|
3322
3312
|
|
|
3323
3313
|
@dataclass
|
|
3324
3314
|
class Theme:
|
|
3315
|
+
"""
|
|
3316
|
+
Customizes the overall appearance of the application.
|
|
3317
|
+
"""
|
|
3318
|
+
|
|
3325
3319
|
color_scheme_seed: Optional[ColorValue] = None
|
|
3326
|
-
|
|
3320
|
+
"""
|
|
3321
|
+
Overrides the default color scheme seed used to generate
|
|
3322
|
+
[`ColorScheme`][flet.]. The default color is blue.
|
|
3323
|
+
"""
|
|
3324
|
+
|
|
3327
3325
|
font_family: Optional[str] = None
|
|
3328
3326
|
use_material3: Optional[bool] = None
|
|
3329
3327
|
appbar_theme: Optional[AppBarTheme] = None
|
|
@@ -3334,21 +3332,89 @@ class Theme:
|
|
|
3334
3332
|
card_theme: Optional[CardTheme] = None
|
|
3335
3333
|
checkbox_theme: Optional[CheckboxTheme] = None
|
|
3336
3334
|
chip_theme: Optional[ChipTheme] = None
|
|
3335
|
+
"""
|
|
3336
|
+
Customizes the appearance of [`Chip`][flet.] across the app.
|
|
3337
|
+
"""
|
|
3338
|
+
|
|
3337
3339
|
color_scheme: Optional[ColorScheme] = None
|
|
3340
|
+
"""
|
|
3341
|
+
Overrides the default [`ColorScheme`][flet.] used for the application.
|
|
3342
|
+
"""
|
|
3343
|
+
|
|
3338
3344
|
data_table_theme: Optional[DataTableTheme] = None
|
|
3345
|
+
"""
|
|
3346
|
+
Customizes the appearance of [`DataTable`][flet.DataTable] across the app.
|
|
3347
|
+
"""
|
|
3348
|
+
|
|
3339
3349
|
date_picker_theme: Optional[DatePickerTheme] = None
|
|
3350
|
+
"""
|
|
3351
|
+
Customizes the appearance of [`DatePicker`][flet.DatePicker] across the app.
|
|
3352
|
+
"""
|
|
3353
|
+
|
|
3340
3354
|
dialog_theme: Optional[DialogTheme] = None
|
|
3355
|
+
"""
|
|
3356
|
+
Customizes the appearance of [`AlertDialog`][flet.] across the app.
|
|
3357
|
+
"""
|
|
3358
|
+
|
|
3341
3359
|
divider_theme: Optional[DividerTheme] = None
|
|
3360
|
+
"""
|
|
3361
|
+
Defines the visual properties of [`Divider`][flet.],
|
|
3362
|
+
[`VerticalDivider`][flet.], dividers between
|
|
3363
|
+
[`ListTile`][flet.]s, and dividers between rows in
|
|
3364
|
+
[`DataTable`][flet.].
|
|
3365
|
+
"""
|
|
3366
|
+
|
|
3342
3367
|
dropdown_theme: Optional[DropdownTheme] = None
|
|
3368
|
+
"""
|
|
3369
|
+
Customizes the appearance of [`Dropdown`][flet.] across the app.
|
|
3370
|
+
"""
|
|
3371
|
+
|
|
3343
3372
|
button_theme: Optional[ButtonTheme] = None
|
|
3373
|
+
"""
|
|
3374
|
+
Customizes the appearance of [`Button`][flet.] across the app.
|
|
3375
|
+
"""
|
|
3376
|
+
|
|
3344
3377
|
outlined_button_theme: Optional[OutlinedButtonTheme] = None
|
|
3378
|
+
"""
|
|
3379
|
+
Customizes the appearance of [`OutlinedButton`][flet.] across the app.
|
|
3380
|
+
"""
|
|
3381
|
+
|
|
3345
3382
|
text_button_theme: Optional[TextButtonTheme] = None
|
|
3383
|
+
"""
|
|
3384
|
+
Customizes the appearance of [`TextButton`][flet.] across the app.
|
|
3385
|
+
"""
|
|
3386
|
+
|
|
3346
3387
|
filled_button_theme: Optional[FilledButtonTheme] = None
|
|
3388
|
+
"""
|
|
3389
|
+
Customizes the appearance of [`FilledButton`][flet.] across the app.
|
|
3390
|
+
"""
|
|
3391
|
+
|
|
3347
3392
|
icon_button_theme: Optional[IconButtonTheme] = None
|
|
3393
|
+
"""
|
|
3394
|
+
Customizes the appearance of [`IconButton`][flet.] across the app.
|
|
3395
|
+
"""
|
|
3396
|
+
|
|
3348
3397
|
expansion_tile_theme: Optional[ExpansionTileTheme] = None
|
|
3398
|
+
"""
|
|
3399
|
+
Customizes the appearance of [`ExpansionTile`][flet.] across the app.
|
|
3400
|
+
"""
|
|
3401
|
+
|
|
3349
3402
|
floating_action_button_theme: Optional[FloatingActionButtonTheme] = None
|
|
3403
|
+
"""
|
|
3404
|
+
Customizes the appearance of [`FloatingActionButton`][flet.]
|
|
3405
|
+
across the app.
|
|
3406
|
+
"""
|
|
3407
|
+
|
|
3350
3408
|
icon_theme: Optional[IconTheme] = None
|
|
3409
|
+
"""
|
|
3410
|
+
Customizes the appearance of [`Icon`][flet.] across the app.
|
|
3411
|
+
"""
|
|
3412
|
+
|
|
3351
3413
|
list_tile_theme: Optional[ListTileTheme] = None
|
|
3414
|
+
"""
|
|
3415
|
+
Customizes the appearance of [`ListTile`][flet.] across the app.
|
|
3416
|
+
"""
|
|
3417
|
+
|
|
3352
3418
|
navigation_bar_theme: Optional[NavigationBarTheme] = None
|
|
3353
3419
|
navigation_drawer_theme: Optional[NavigationDrawerTheme] = None
|
|
3354
3420
|
navigation_rail_theme: Optional[NavigationRailTheme] = None
|
|
@@ -3363,13 +3429,8 @@ class Theme:
|
|
|
3363
3429
|
canvas_color: Optional[ColorValue] = None
|
|
3364
3430
|
scaffold_bgcolor: Optional[ColorValue] = None
|
|
3365
3431
|
card_bgcolor: Optional[ColorValue] = None
|
|
3366
|
-
divider_color: Optional[ColorValue] = None
|
|
3367
3432
|
hint_color: Optional[ColorValue] = None
|
|
3368
|
-
shadow_color: Optional[ColorValue] = None
|
|
3369
3433
|
secondary_header_color: Optional[ColorValue] = None
|
|
3370
|
-
primary_color: Optional[ColorValue] = None
|
|
3371
|
-
primary_color_dark: Optional[ColorValue] = None
|
|
3372
|
-
primary_color_light: Optional[ColorValue] = None
|
|
3373
3434
|
primary_text_theme: Optional[TextTheme] = None
|
|
3374
3435
|
progress_indicator_theme: Optional[ProgressIndicatorTheme] = None
|
|
3375
3436
|
radio_theme: Optional[RadioTheme] = None
|