flet 0.70.0.dev5623__py3-none-any.whl → 0.70.0.dev5774__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 +13 -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 +25 -23
- 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 +611 -609
- flet/controls/types.py +11 -11
- flet/testing/finder.py +2 -0
- flet/testing/flet_test_app.py +6 -4
- flet/version.py +1 -1
- {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5774.dist-info}/METADATA +5 -5
- flet-0.70.0.dev5774.dist-info/RECORD +239 -0
- flet-0.70.0.dev5623.dist-info/RECORD +0 -238
- {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5774.dist-info}/WHEEL +0 -0
- {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5774.dist-info}/entry_points.txt +0 -0
- {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5774.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,56 @@ 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 a [`FloatingActionButton`][flet.
|
|
1130
|
+
The padding for a [`FloatingActionButton`][flet.]'s
|
|
1131
1131
|
that has both icon and content.
|
|
1132
1132
|
"""
|
|
1133
1133
|
|
|
1134
1134
|
text_style: Optional[TextStyle] = None
|
|
1135
1135
|
"""
|
|
1136
1136
|
Text style merged into default text style of
|
|
1137
|
-
[`FloatingActionButton.
|
|
1137
|
+
[`FloatingActionButton.content`][flet.].
|
|
1138
1138
|
"""
|
|
1139
1139
|
|
|
1140
1140
|
icon_label_spacing: Optional[Number] = None
|
|
1141
1141
|
"""
|
|
1142
1142
|
The spacing between the icon and the label for
|
|
1143
|
-
[`FloatingActionButton`][flet.
|
|
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
|
-
[`FloatingActionButton`][flet.
|
|
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
1156
|
and is not a mini button.
|
|
1157
1157
|
"""
|
|
1158
1158
|
|
|
@@ -1163,448 +1163,448 @@ class FloatingActionButtonTheme:
|
|
|
1163
1163
|
@dataclass
|
|
1164
1164
|
class NavigationRailTheme:
|
|
1165
1165
|
"""
|
|
1166
|
-
Customizes the appearance of [`NavigationRail`][flet.
|
|
1166
|
+
Customizes the appearance of [`NavigationRail`][flet.] across the app.
|
|
1167
1167
|
"""
|
|
1168
1168
|
|
|
1169
1169
|
bgcolor: Optional[ColorValue] = None
|
|
1170
1170
|
"""
|
|
1171
|
-
Color to be used for the [`NavigationRail`][flet.
|
|
1171
|
+
Color to be used for the [`NavigationRail`][flet.]'s background.
|
|
1172
1172
|
"""
|
|
1173
1173
|
|
|
1174
1174
|
indicator_color: Optional[ColorValue] = None
|
|
1175
1175
|
"""
|
|
1176
1176
|
Overrides the default value of
|
|
1177
|
-
[`NavigationRail.indicator_color`][flet.
|
|
1178
|
-
descendant [`NavigationRail`][flet.
|
|
1179
|
-
[`NavigationRailTheme.use_indicator`][flet.
|
|
1177
|
+
[`NavigationRail.indicator_color`][flet.] in all
|
|
1178
|
+
descendant [`NavigationRail`][flet.] controls. when
|
|
1179
|
+
[`NavigationRailTheme.use_indicator`][flet.]
|
|
1180
1180
|
is true.
|
|
1181
1181
|
"""
|
|
1182
1182
|
|
|
1183
1183
|
elevation: Optional[Number] = None
|
|
1184
1184
|
"""
|
|
1185
|
-
The z-coordinate to be used for the [`NavigationRail`][flet.
|
|
1185
|
+
The z-coordinate to be used for the [`NavigationRail`][flet.]'s
|
|
1186
1186
|
elevation.
|
|
1187
1187
|
"""
|
|
1188
1188
|
|
|
1189
1189
|
indicator_shape: Optional[OutlinedBorder] = None
|
|
1190
1190
|
"""
|
|
1191
1191
|
Overrides the default value of
|
|
1192
|
-
[`NavigationRail.indicator_shape`][flet.
|
|
1193
|
-
descendant [`NavigationRail`][flet.
|
|
1192
|
+
[`NavigationRail.indicator_shape`][flet.] in all
|
|
1193
|
+
descendant [`NavigationRail`][flet.] controls.
|
|
1194
1194
|
"""
|
|
1195
1195
|
|
|
1196
1196
|
unselected_label_text_style: Optional[TextStyle] = None
|
|
1197
1197
|
"""
|
|
1198
1198
|
Overrides the default value of
|
|
1199
|
-
[`NavigationRail.unselected_label_text_style`][flet.
|
|
1200
|
-
in all descendant [`NavigationRail`][flet.
|
|
1199
|
+
[`NavigationRail.unselected_label_text_style`][flet.]
|
|
1200
|
+
in all descendant [`NavigationRail`][flet.] controls.
|
|
1201
1201
|
"""
|
|
1202
1202
|
|
|
1203
1203
|
selected_label_text_style: Optional[TextStyle] = None
|
|
1204
1204
|
"""
|
|
1205
1205
|
Overrides the default value of
|
|
1206
|
-
[`NavigationRail.selected_label_text_style`][flet.
|
|
1207
|
-
in all descendant [`NavigationRail`][flet.
|
|
1206
|
+
[`NavigationRail.selected_label_text_style`][flet.]
|
|
1207
|
+
in all descendant [`NavigationRail`][flet.] controls.
|
|
1208
1208
|
"""
|
|
1209
1209
|
|
|
1210
1210
|
label_type: Optional[NavigationRailLabelType] = None
|
|
1211
1211
|
"""
|
|
1212
1212
|
The type that defines the layout and behavior of the labels in the
|
|
1213
|
-
[`NavigationRail`][flet.
|
|
1213
|
+
[`NavigationRail`][flet.].
|
|
1214
1214
|
"""
|
|
1215
1215
|
|
|
1216
1216
|
min_width: Optional[Number] = None
|
|
1217
1217
|
"""
|
|
1218
1218
|
Overrides the default value of
|
|
1219
|
-
[`NavigationRail.min_width`][flet.
|
|
1220
|
-
[`NavigationRail`][flet.
|
|
1219
|
+
[`NavigationRail.min_width`][flet.] in all descendant
|
|
1220
|
+
[`NavigationRail`][flet.] controls when they are not extended.
|
|
1221
1221
|
"""
|
|
1222
1222
|
|
|
1223
1223
|
min_extended_width: Optional[Number] = None
|
|
1224
1224
|
"""
|
|
1225
1225
|
Overrides the default value of
|
|
1226
|
-
[`NavigationRail.min_extended_width`][flet.
|
|
1227
|
-
descendant [`NavigationRail`][flet.
|
|
1226
|
+
[`NavigationRail.min_extended_width`][flet.] in all
|
|
1227
|
+
descendant [`NavigationRail`][flet.] controls when they are extended.
|
|
1228
1228
|
"""
|
|
1229
1229
|
|
|
1230
1230
|
group_alignment: Optional[Number] = None
|
|
1231
1231
|
"""
|
|
1232
1232
|
The alignment for the
|
|
1233
|
-
[`NavigationRail.destinations`][flet.
|
|
1234
|
-
positioned within the [`NavigationRail`][flet.
|
|
1233
|
+
[`NavigationRail.destinations`][flet.] as they are
|
|
1234
|
+
positioned within the [`NavigationRail`][flet.].
|
|
1235
1235
|
"""
|
|
1236
1236
|
|
|
1237
1237
|
use_indicator: Optional[bool] = None
|
|
1238
1238
|
"""
|
|
1239
1239
|
Overrides the default value of
|
|
1240
|
-
[`NavigationRail.use_indicator`][flet.
|
|
1241
|
-
descendant [`NavigationRail`][flet.
|
|
1240
|
+
[`NavigationRail.use_indicator`][flet.] in all
|
|
1241
|
+
descendant [`NavigationRail`][flet.] controls.
|
|
1242
1242
|
"""
|
|
1243
1243
|
|
|
1244
1244
|
|
|
1245
1245
|
@dataclass
|
|
1246
1246
|
class AppBarTheme:
|
|
1247
1247
|
"""
|
|
1248
|
-
Customizes the appearance of [`AppBar`][flet.
|
|
1248
|
+
Customizes the appearance of [`AppBar`][flet.] controls across the app.
|
|
1249
1249
|
"""
|
|
1250
1250
|
|
|
1251
1251
|
color: Optional[ColorValue] = None
|
|
1252
1252
|
"""
|
|
1253
|
-
Overrides the default value of [`AppBar.color`][flet.
|
|
1254
|
-
descendant [`AppBar`][flet.
|
|
1253
|
+
Overrides the default value of [`AppBar.color`][flet.] in all
|
|
1254
|
+
descendant [`AppBar`][flet.] controls.
|
|
1255
1255
|
"""
|
|
1256
1256
|
|
|
1257
1257
|
bgcolor: Optional[ColorValue] = None
|
|
1258
1258
|
"""
|
|
1259
|
-
Overrides the default value of [`AppBar.bgcolor`][flet.
|
|
1260
|
-
descendant [`AppBar`][flet.
|
|
1259
|
+
Overrides the default value of [`AppBar.bgcolor`][flet.] in all
|
|
1260
|
+
descendant [`AppBar`][flet.] controls.
|
|
1261
1261
|
"""
|
|
1262
1262
|
|
|
1263
1263
|
shadow_color: Optional[ColorValue] = None
|
|
1264
1264
|
"""
|
|
1265
|
-
Overrides the default value of [`AppBar.shadow_color`][flet.
|
|
1266
|
-
all descendant [`AppBar`][flet.
|
|
1265
|
+
Overrides the default value of [`AppBar.shadow_color`][flet.] in
|
|
1266
|
+
all descendant [`AppBar`][flet.] controls.
|
|
1267
1267
|
"""
|
|
1268
1268
|
|
|
1269
1269
|
elevation: Optional[Number] = None
|
|
1270
1270
|
"""
|
|
1271
|
-
Overrides the default value of [`AppBar.elevation`][flet.
|
|
1272
|
-
descendant [`AppBar`][flet.
|
|
1271
|
+
Overrides the default value of [`AppBar.elevation`][flet.] in all
|
|
1272
|
+
descendant [`AppBar`][flet.] controls.
|
|
1273
1273
|
"""
|
|
1274
1274
|
|
|
1275
1275
|
shape: Optional[OutlinedBorder] = None
|
|
1276
1276
|
"""
|
|
1277
|
-
Overrides the default value of [`AppBar.shape`][flet.
|
|
1278
|
-
descendant [`AppBar`][flet.
|
|
1277
|
+
Overrides the default value of [`AppBar.shape`][flet.] in all
|
|
1278
|
+
descendant [`AppBar`][flet.] controls.
|
|
1279
1279
|
"""
|
|
1280
1280
|
|
|
1281
1281
|
title_text_style: Optional[TextStyle] = None
|
|
1282
1282
|
"""
|
|
1283
1283
|
Overrides the default value of
|
|
1284
|
-
[`AppBar.title_text_style`][flet.
|
|
1285
|
-
[`AppBar`][flet.
|
|
1284
|
+
[`AppBar.title_text_style`][flet.] in all descendant
|
|
1285
|
+
[`AppBar`][flet.] controls.
|
|
1286
1286
|
"""
|
|
1287
1287
|
|
|
1288
1288
|
toolbar_text_style: Optional[TextStyle] = None
|
|
1289
1289
|
"""
|
|
1290
1290
|
Overrides the default value of
|
|
1291
|
-
[`AppBar.toolbar_text_style`][flet.
|
|
1292
|
-
[`AppBar`][flet.
|
|
1291
|
+
[`AppBar.toolbar_text_style`][flet.] in all descendant
|
|
1292
|
+
[`AppBar`][flet.] controls.
|
|
1293
1293
|
"""
|
|
1294
1294
|
|
|
1295
1295
|
center_title: Optional[bool] = None
|
|
1296
1296
|
"""
|
|
1297
|
-
Overrides the default value of [`AppBar.center_title`][flet.
|
|
1298
|
-
all descendant [`AppBar`][flet.
|
|
1297
|
+
Overrides the default value of [`AppBar.center_title`][flet.] in
|
|
1298
|
+
all descendant [`AppBar`][flet.] controls.
|
|
1299
1299
|
"""
|
|
1300
1300
|
|
|
1301
1301
|
title_spacing: Optional[Number] = None
|
|
1302
1302
|
"""
|
|
1303
1303
|
Overrides the default value of
|
|
1304
|
-
[`AppBar.title_spacing`][flet.
|
|
1305
|
-
[`AppBar`][flet.
|
|
1304
|
+
[`AppBar.title_spacing`][flet.] in all descendant
|
|
1305
|
+
[`AppBar`][flet.] controls.
|
|
1306
1306
|
"""
|
|
1307
1307
|
|
|
1308
1308
|
elevation_on_scroll: Optional[Number] = None
|
|
1309
1309
|
"""
|
|
1310
1310
|
Overrides the default value of
|
|
1311
|
-
[`AppBar.elevation_on_scroll`][flet.
|
|
1312
|
-
[`AppBar`][flet.
|
|
1311
|
+
[`AppBar.elevation_on_scroll`][flet.] in all descendant
|
|
1312
|
+
[`AppBar`][flet.] controls.
|
|
1313
1313
|
"""
|
|
1314
1314
|
|
|
1315
1315
|
toolbar_height: Optional[Number] = None
|
|
1316
1316
|
"""
|
|
1317
1317
|
Overrides the default value of
|
|
1318
|
-
[`AppBar.toolbar_height`][flet.
|
|
1319
|
-
[`AppBar`][flet.
|
|
1318
|
+
[`AppBar.toolbar_height`][flet.] in all descendant
|
|
1319
|
+
[`AppBar`][flet.] controls.
|
|
1320
1320
|
"""
|
|
1321
1321
|
|
|
1322
1322
|
actions_padding: Optional[PaddingValue] = None
|
|
1323
1323
|
"""
|
|
1324
1324
|
Overrides the default value of
|
|
1325
|
-
[`AppBar.actions_padding`][flet.
|
|
1326
|
-
[`AppBar`][flet.
|
|
1325
|
+
[`AppBar.actions_padding`][flet.] in all descendant
|
|
1326
|
+
[`AppBar`][flet.] controls.
|
|
1327
1327
|
"""
|
|
1328
1328
|
|
|
1329
1329
|
|
|
1330
1330
|
@dataclass
|
|
1331
1331
|
class BottomAppBarTheme:
|
|
1332
1332
|
"""
|
|
1333
|
-
Customizes the appearance of [`BottomAppBar`][flet.
|
|
1333
|
+
Customizes the appearance of [`BottomAppBar`][flet.] controls across
|
|
1334
1334
|
the app.
|
|
1335
1335
|
"""
|
|
1336
1336
|
|
|
1337
1337
|
bgcolor: Optional[ColorValue] = None
|
|
1338
1338
|
"""
|
|
1339
|
-
Overrides the default value of [`BottomAppBar.bgcolor`][flet.
|
|
1340
|
-
in all descendant [`BottomAppBar`][flet.
|
|
1339
|
+
Overrides the default value of [`BottomAppBar.bgcolor`][flet.]
|
|
1340
|
+
in all descendant [`BottomAppBar`][flet.] controls.
|
|
1341
1341
|
"""
|
|
1342
1342
|
|
|
1343
1343
|
shadow_color: Optional[ColorValue] = None
|
|
1344
1344
|
"""
|
|
1345
1345
|
Overrides the default value of
|
|
1346
|
-
[`BottomAppBar.shadow_color`][flet.
|
|
1347
|
-
[`BottomAppBar`][flet.
|
|
1346
|
+
[`BottomAppBar.shadow_color`][flet.] in all descendant
|
|
1347
|
+
[`BottomAppBar`][flet.] controls.
|
|
1348
1348
|
"""
|
|
1349
1349
|
|
|
1350
1350
|
elevation: Optional[Number] = None
|
|
1351
1351
|
"""
|
|
1352
1352
|
Overrides the default value of
|
|
1353
|
-
[`BottomAppBar.elevation`][flet.
|
|
1353
|
+
[`BottomAppBar.elevation`][flet.] in all descendant
|
|
1354
1354
|
`BottomAppBar`][flet.BottomAppBar] controls.
|
|
1355
1355
|
"""
|
|
1356
1356
|
|
|
1357
1357
|
height: Optional[Number] = None
|
|
1358
1358
|
"""
|
|
1359
|
-
Overrides the default value of [`BottomAppBar.height`][flet.
|
|
1360
|
-
all descendant [`BottomAppBar`][flet.
|
|
1359
|
+
Overrides the default value of [`BottomAppBar.height`][flet.] in
|
|
1360
|
+
all descendant [`BottomAppBar`][flet.] controls.
|
|
1361
1361
|
"""
|
|
1362
1362
|
|
|
1363
1363
|
padding: Optional[PaddingValue] = None
|
|
1364
1364
|
"""
|
|
1365
|
-
Overrides the default value of [`BottomAppBar.padding`][flet.
|
|
1366
|
-
in all descendant [`BottomAppBar`][flet.
|
|
1365
|
+
Overrides the default value of [`BottomAppBar.padding`][flet.]
|
|
1366
|
+
in all descendant [`BottomAppBar`][flet.] controls.
|
|
1367
1367
|
"""
|
|
1368
1368
|
|
|
1369
1369
|
shape: Optional[NotchShape] = None
|
|
1370
1370
|
"""
|
|
1371
|
-
Overrides the default value of [`BottomAppBar.shape`][flet.
|
|
1372
|
-
all descendant [`BottomAppBar`][flet.
|
|
1371
|
+
Overrides the default value of [`BottomAppBar.shape`][flet.] in
|
|
1372
|
+
all descendant [`BottomAppBar`][flet.] controls.
|
|
1373
1373
|
"""
|
|
1374
1374
|
|
|
1375
1375
|
|
|
1376
1376
|
@dataclass
|
|
1377
1377
|
class RadioTheme:
|
|
1378
1378
|
"""
|
|
1379
|
-
Defines default property values for descendant [`Radio`][flet.
|
|
1379
|
+
Defines default property values for descendant [`Radio`][flet.] controls.
|
|
1380
1380
|
"""
|
|
1381
1381
|
|
|
1382
1382
|
fill_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1383
1383
|
"""
|
|
1384
|
-
Overrides the default value of [`Radio.fill_color`][flet.
|
|
1385
|
-
all descendant [`Radio`][flet.
|
|
1384
|
+
Overrides the default value of [`Radio.fill_color`][flet.] in
|
|
1385
|
+
all descendant [`Radio`][flet.] controls.
|
|
1386
1386
|
"""
|
|
1387
1387
|
|
|
1388
1388
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1389
1389
|
"""
|
|
1390
|
-
Overrides the default value of [`Radio.overlay_color`][flet.
|
|
1391
|
-
all descendant [`Radio`][flet.
|
|
1390
|
+
Overrides the default value of [`Radio.overlay_color`][flet.] in
|
|
1391
|
+
all descendant [`Radio`][flet.] controls.
|
|
1392
1392
|
"""
|
|
1393
1393
|
|
|
1394
1394
|
splash_radius: Optional[Number] = None
|
|
1395
1395
|
"""
|
|
1396
|
-
Overrides the default value of [`Radio.splash_radius`][flet.
|
|
1397
|
-
all descendant [`Radio`][flet.
|
|
1396
|
+
Overrides the default value of [`Radio.splash_radius`][flet.] in
|
|
1397
|
+
all descendant [`Radio`][flet.] controls.
|
|
1398
1398
|
"""
|
|
1399
1399
|
|
|
1400
1400
|
visual_density: Optional[VisualDensity] = None
|
|
1401
1401
|
"""
|
|
1402
|
-
Overrides the default value of [`Radio.visual_density`][flet.
|
|
1403
|
-
in all descendant [`Radio`][flet.
|
|
1402
|
+
Overrides the default value of [`Radio.visual_density`][flet.]
|
|
1403
|
+
in all descendant [`Radio`][flet.] controls.
|
|
1404
1404
|
"""
|
|
1405
1405
|
|
|
1406
1406
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
1407
1407
|
"""
|
|
1408
|
-
Overrides the default value of [`Radio.mouse_cursor`][flet.
|
|
1409
|
-
in all descendant [`Radio`][flet.
|
|
1408
|
+
Overrides the default value of [`Radio.mouse_cursor`][flet.]
|
|
1409
|
+
in all descendant [`Radio`][flet.] controls.
|
|
1410
1410
|
"""
|
|
1411
1411
|
|
|
1412
1412
|
|
|
1413
1413
|
@dataclass
|
|
1414
1414
|
class CheckboxTheme:
|
|
1415
1415
|
"""
|
|
1416
|
-
Defines default property values for descendant [`Checkbox`][flet.
|
|
1416
|
+
Defines default property values for descendant [`Checkbox`][flet.] controls.
|
|
1417
1417
|
"""
|
|
1418
1418
|
|
|
1419
1419
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1420
1420
|
"""
|
|
1421
1421
|
Overrides the default value of
|
|
1422
|
-
[`Checkbox.overlay_color`][flet.
|
|
1423
|
-
[`Checkbox`][flet.
|
|
1422
|
+
[`Checkbox.overlay_color`][flet.] in all descendant
|
|
1423
|
+
[`Checkbox`][flet.] controls.
|
|
1424
1424
|
"""
|
|
1425
1425
|
|
|
1426
1426
|
check_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1427
1427
|
"""
|
|
1428
1428
|
Overrides the default value of
|
|
1429
|
-
[`Checkbox.check_color`][flet.
|
|
1430
|
-
[`Checkbox`][flet.
|
|
1429
|
+
[`Checkbox.check_color`][flet.] in all descendant
|
|
1430
|
+
[`Checkbox`][flet.] controls.
|
|
1431
1431
|
"""
|
|
1432
1432
|
|
|
1433
1433
|
fill_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1434
1434
|
"""
|
|
1435
1435
|
Overrides the default value of
|
|
1436
|
-
[`Checkbox.fill_color`][flet.
|
|
1437
|
-
[`Checkbox`][flet.
|
|
1436
|
+
[`Checkbox.fill_color`][flet.] in all descendant
|
|
1437
|
+
[`Checkbox`][flet.] controls.
|
|
1438
1438
|
"""
|
|
1439
1439
|
|
|
1440
1440
|
splash_radius: Optional[Number] = None
|
|
1441
1441
|
"""
|
|
1442
1442
|
Overrides the default value of
|
|
1443
|
-
[`Checkbox.splash_radius`][flet.
|
|
1444
|
-
[`Checkbox`][flet.
|
|
1443
|
+
[`Checkbox.splash_radius`][flet.] in all descendant
|
|
1444
|
+
[`Checkbox`][flet.] controls.
|
|
1445
1445
|
"""
|
|
1446
1446
|
|
|
1447
1447
|
border_side: Optional[BorderSide] = None
|
|
1448
1448
|
"""
|
|
1449
1449
|
Overrides the default value of
|
|
1450
|
-
[`Checkbox.border_side`][flet.
|
|
1451
|
-
[`Checkbox`][flet.
|
|
1450
|
+
[`Checkbox.border_side`][flet.] in all descendant
|
|
1451
|
+
[`Checkbox`][flet.] controls.
|
|
1452
1452
|
"""
|
|
1453
1453
|
|
|
1454
1454
|
visual_density: Optional[VisualDensity] = None
|
|
1455
1455
|
"""
|
|
1456
1456
|
Overrides the default value of
|
|
1457
|
-
[`Checkbox.visual_density`][flet.
|
|
1458
|
-
[`Checkbox`][flet.
|
|
1457
|
+
[`Checkbox.visual_density`][flet.] in all descendant
|
|
1458
|
+
[`Checkbox`][flet.] controls.
|
|
1459
1459
|
"""
|
|
1460
1460
|
|
|
1461
1461
|
shape: Optional[OutlinedBorder] = None
|
|
1462
1462
|
"""
|
|
1463
1463
|
Overrides the default value of
|
|
1464
|
-
[`Checkbox.shape`][flet.
|
|
1465
|
-
[`Checkbox`][flet.
|
|
1464
|
+
[`Checkbox.shape`][flet.] in all descendant
|
|
1465
|
+
[`Checkbox`][flet.] controls.
|
|
1466
1466
|
"""
|
|
1467
1467
|
|
|
1468
1468
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
1469
1469
|
"""
|
|
1470
1470
|
Overrides the default value of
|
|
1471
|
-
[`Checkbox.mouse_cursor`][flet.
|
|
1472
|
-
[`Checkbox`][flet.
|
|
1471
|
+
[`Checkbox.mouse_cursor`][flet.] in all descendant
|
|
1472
|
+
[`Checkbox`][flet.] controls.
|
|
1473
1473
|
"""
|
|
1474
1474
|
|
|
1475
1475
|
|
|
1476
1476
|
@dataclass
|
|
1477
1477
|
class BadgeTheme:
|
|
1478
1478
|
"""
|
|
1479
|
-
Defines default property values for descendant [`Badge`][flet.
|
|
1479
|
+
Defines default property values for descendant [`Badge`][flet.] controls.
|
|
1480
1480
|
"""
|
|
1481
1481
|
|
|
1482
1482
|
bgcolor: Optional[ColorValue] = None
|
|
1483
1483
|
"""
|
|
1484
|
-
Overrides the default value of [`Badge.bgcolor`][flet.
|
|
1485
|
-
descendant [`Badge`][flet.
|
|
1484
|
+
Overrides the default value of [`Badge.bgcolor`][flet.] in all
|
|
1485
|
+
descendant [`Badge`][flet.] controls.
|
|
1486
1486
|
"""
|
|
1487
1487
|
|
|
1488
1488
|
text_color: Optional[ColorValue] = None
|
|
1489
1489
|
"""
|
|
1490
|
-
Overrides the default value of [`Badge.text_color`][flet.
|
|
1491
|
-
descendant [`Badge`][flet.
|
|
1490
|
+
Overrides the default value of [`Badge.text_color`][flet.] in all
|
|
1491
|
+
descendant [`Badge`][flet.] controls.
|
|
1492
1492
|
"""
|
|
1493
1493
|
|
|
1494
1494
|
small_size: Optional[Number] = None
|
|
1495
1495
|
"""
|
|
1496
|
-
Overrides the default value of [`Badge.small_size`][flet.
|
|
1497
|
-
descendant [`Badge`][flet.
|
|
1496
|
+
Overrides the default value of [`Badge.small_size`][flet.] in all
|
|
1497
|
+
descendant [`Badge`][flet.] controls.
|
|
1498
1498
|
"""
|
|
1499
1499
|
|
|
1500
1500
|
large_size: Optional[Number] = None
|
|
1501
1501
|
"""
|
|
1502
|
-
Overrides the default value of [`Badge.large_size`][flet.
|
|
1503
|
-
descendant [`Badge`][flet.
|
|
1502
|
+
Overrides the default value of [`Badge.large_size`][flet.] in all
|
|
1503
|
+
descendant [`Badge`][flet.] controls.
|
|
1504
1504
|
"""
|
|
1505
1505
|
|
|
1506
1506
|
alignment: Optional[Alignment] = None
|
|
1507
1507
|
"""
|
|
1508
|
-
Overrides the default value of [`Badge.alignment`][flet.
|
|
1509
|
-
descendant [`Badge`][flet.
|
|
1508
|
+
Overrides the default value of [`Badge.alignment`][flet.] in all
|
|
1509
|
+
descendant [`Badge`][flet.] controls.
|
|
1510
1510
|
"""
|
|
1511
1511
|
|
|
1512
1512
|
padding: Optional[PaddingValue] = None
|
|
1513
1513
|
"""
|
|
1514
|
-
Overrides the default value of [`Badge.padding`][flet.
|
|
1515
|
-
descendant [`Badge`][flet.
|
|
1514
|
+
Overrides the default value of [`Badge.padding`][flet.] in all
|
|
1515
|
+
descendant [`Badge`][flet.] controls.
|
|
1516
1516
|
"""
|
|
1517
1517
|
|
|
1518
1518
|
offset: Optional[OffsetValue] = None
|
|
1519
1519
|
"""
|
|
1520
|
-
Overrides the default value of [`Badge.offset`][flet.
|
|
1521
|
-
descendant [`Badge`][flet.
|
|
1520
|
+
Overrides the default value of [`Badge.offset`][flet.] in all
|
|
1521
|
+
descendant [`Badge`][flet.] controls.
|
|
1522
1522
|
"""
|
|
1523
1523
|
|
|
1524
1524
|
text_style: Optional[TextStyle] = None
|
|
1525
1525
|
"""
|
|
1526
|
-
Overrides the default value of [`Badge.text_style`][flet.
|
|
1527
|
-
descendant [`Badge`][flet.
|
|
1526
|
+
Overrides the default value of [`Badge.text_style`][flet.] in all
|
|
1527
|
+
descendant [`Badge`][flet.] controls.
|
|
1528
1528
|
"""
|
|
1529
1529
|
|
|
1530
1530
|
|
|
1531
1531
|
@dataclass
|
|
1532
1532
|
class SwitchTheme:
|
|
1533
1533
|
"""
|
|
1534
|
-
Defines default property values for descendant [`Switch`][flet.
|
|
1534
|
+
Defines default property values for descendant [`Switch`][flet.] controls.
|
|
1535
1535
|
"""
|
|
1536
1536
|
|
|
1537
1537
|
thumb_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1538
1538
|
"""
|
|
1539
|
-
Overrides the default value of [`Switch.thumb_color`][flet.
|
|
1540
|
-
all descendant [`Switch`][flet.
|
|
1539
|
+
Overrides the default value of [`Switch.thumb_color`][flet.] in
|
|
1540
|
+
all descendant [`Switch`][flet.] controls.
|
|
1541
1541
|
"""
|
|
1542
1542
|
|
|
1543
1543
|
track_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1544
1544
|
"""
|
|
1545
|
-
Overrides the default value of [`Switch.track_color`][flet.
|
|
1546
|
-
all descendant [`Switch`][flet.
|
|
1545
|
+
Overrides the default value of [`Switch.track_color`][flet.] in
|
|
1546
|
+
all descendant [`Switch`][flet.] controls.
|
|
1547
1547
|
"""
|
|
1548
1548
|
|
|
1549
1549
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1550
1550
|
"""
|
|
1551
|
-
Overrides the default value of [`Switch.overlay_color`][flet.
|
|
1552
|
-
in all descendant [`Switch`][flet.
|
|
1551
|
+
Overrides the default value of [`Switch.overlay_color`][flet.]
|
|
1552
|
+
in all descendant [`Switch`][flet.] controls.
|
|
1553
1553
|
"""
|
|
1554
1554
|
|
|
1555
1555
|
track_outline_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1556
1556
|
"""
|
|
1557
1557
|
Overrides the default value of
|
|
1558
|
-
[`Switch.track_outline_color`][flet.
|
|
1559
|
-
[`Switch`][flet.
|
|
1558
|
+
[`Switch.track_outline_color`][flet.] in all descendant
|
|
1559
|
+
[`Switch`][flet.] controls.
|
|
1560
1560
|
"""
|
|
1561
1561
|
|
|
1562
1562
|
thumb_icon: Optional[ControlStateValue[IconData]] = None
|
|
1563
1563
|
"""
|
|
1564
|
-
Overrides the default value of [`Switch.thumb_icon`][flet.
|
|
1565
|
-
descendant [`Switch`][flet.
|
|
1564
|
+
Overrides the default value of [`Switch.thumb_icon`][flet.] in all
|
|
1565
|
+
descendant [`Switch`][flet.] controls.
|
|
1566
1566
|
"""
|
|
1567
1567
|
|
|
1568
1568
|
track_outline_width: Optional[ControlStateValue[Optional[Number]]] = None
|
|
1569
1569
|
"""
|
|
1570
1570
|
Overrides the default value of
|
|
1571
|
-
[`Switch.track_outline_width`][flet.
|
|
1572
|
-
[`Switch`][flet.
|
|
1571
|
+
[`Switch.track_outline_width`][flet.] in all descendant
|
|
1572
|
+
[`Switch`][flet.] controls.
|
|
1573
1573
|
"""
|
|
1574
1574
|
|
|
1575
1575
|
splash_radius: Optional[Number] = None
|
|
1576
1576
|
"""
|
|
1577
|
-
Overrides the default value of [`Switch.splash_radius`][flet.
|
|
1578
|
-
in all descendant [`Switch`][flet.
|
|
1577
|
+
Overrides the default value of [`Switch.splash_radius`][flet.]
|
|
1578
|
+
in all descendant [`Switch`][flet.] controls.
|
|
1579
1579
|
"""
|
|
1580
1580
|
|
|
1581
1581
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
1582
1582
|
"""
|
|
1583
|
-
Overrides the default value of [`Switch.mouse_cursor`][flet.
|
|
1584
|
-
all descendant [`Switch`][flet.
|
|
1583
|
+
Overrides the default value of [`Switch.mouse_cursor`][flet.] in
|
|
1584
|
+
all descendant [`Switch`][flet.] controls.
|
|
1585
1585
|
"""
|
|
1586
1586
|
|
|
1587
1587
|
padding: Optional[PaddingValue] = None
|
|
1588
1588
|
"""
|
|
1589
|
-
Overrides the default value of [`Switch.padding`][flet.
|
|
1590
|
-
all descendant [`Switch`][flet.
|
|
1589
|
+
Overrides the default value of [`Switch.padding`][flet.] in
|
|
1590
|
+
all descendant [`Switch`][flet.] controls.
|
|
1591
1591
|
"""
|
|
1592
1592
|
|
|
1593
1593
|
|
|
1594
1594
|
@dataclass
|
|
1595
1595
|
class DividerTheme:
|
|
1596
1596
|
"""
|
|
1597
|
-
Defines the visual properties of [`Divider`][flet.
|
|
1598
|
-
[`VerticalDivider`][flet.
|
|
1599
|
-
[`ListTile`][flet.
|
|
1600
|
-
[`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.].
|
|
1601
1601
|
"""
|
|
1602
1602
|
|
|
1603
1603
|
color: Optional[ColorValue] = None
|
|
1604
1604
|
"""
|
|
1605
|
-
The color of [`Divider`][flet.
|
|
1606
|
-
[`VerticalDivider`][flet.
|
|
1607
|
-
[`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
|
|
1608
1608
|
so forth.
|
|
1609
1609
|
"""
|
|
1610
1610
|
|
|
@@ -1615,76 +1615,76 @@ class DividerTheme:
|
|
|
1615
1615
|
|
|
1616
1616
|
space: Optional[Number] = None
|
|
1617
1617
|
"""
|
|
1618
|
-
The [`Divider`][flet.
|
|
1619
|
-
[`VerticalDivider`][flet.
|
|
1618
|
+
The [`Divider`][flet.]'s height or the
|
|
1619
|
+
[`VerticalDivider`][flet.]'s width.
|
|
1620
1620
|
|
|
1621
1621
|
This represents the amount of horizontal or vertical space the divider takes up.
|
|
1622
1622
|
"""
|
|
1623
1623
|
|
|
1624
1624
|
leading_indent: Optional[Number] = None
|
|
1625
1625
|
"""
|
|
1626
|
-
The amount of empty space at the leading edge of [`Divider`][flet.
|
|
1627
|
-
edge of [`VerticalDivider`][flet.
|
|
1626
|
+
The amount of empty space at the leading edge of [`Divider`][flet.] or top
|
|
1627
|
+
edge of [`VerticalDivider`][flet.].
|
|
1628
1628
|
"""
|
|
1629
1629
|
|
|
1630
1630
|
trailing_indent: Optional[Number] = None
|
|
1631
1631
|
"""
|
|
1632
|
-
The amount of empty space at the trailing edge of [`Divider`][flet.
|
|
1633
|
-
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.].
|
|
1634
1634
|
"""
|
|
1635
1635
|
|
|
1636
1636
|
|
|
1637
1637
|
@dataclass
|
|
1638
1638
|
class SnackBarTheme:
|
|
1639
1639
|
"""
|
|
1640
|
-
Defines default property values for descendant [`SnackBar`][flet.
|
|
1640
|
+
Defines default property values for descendant [`SnackBar`][flet.] controls.
|
|
1641
1641
|
"""
|
|
1642
1642
|
|
|
1643
1643
|
bgcolor: Optional[ColorValue] = None
|
|
1644
1644
|
"""
|
|
1645
|
-
Overrides the default value of [`SnackBar.bgcolor`][flet.
|
|
1646
|
-
descendant [`SnackBar`][flet.
|
|
1645
|
+
Overrides the default value of [`SnackBar.bgcolor`][flet.] in all
|
|
1646
|
+
descendant [`SnackBar`][flet.] controls.
|
|
1647
1647
|
"""
|
|
1648
1648
|
|
|
1649
1649
|
action_text_color: Optional[ColorValue] = None
|
|
1650
1650
|
"""
|
|
1651
1651
|
Overrides the default value of `text_color` of
|
|
1652
|
-
[`SnackBar.action`][flet.
|
|
1653
|
-
[`SnackBar`][flet.
|
|
1652
|
+
[`SnackBar.action`][flet.] in all descendant
|
|
1653
|
+
[`SnackBar`][flet.] controls.
|
|
1654
1654
|
"""
|
|
1655
1655
|
|
|
1656
1656
|
action_bgcolor: Optional[ColorValue] = None
|
|
1657
1657
|
"""
|
|
1658
1658
|
Overrides the default value of `bgcolor` of
|
|
1659
|
-
[`SnackBar.action`][flet.
|
|
1660
|
-
[`SnackBar`][flet.
|
|
1659
|
+
[`SnackBar.action`][flet.] in all descendant
|
|
1660
|
+
[`SnackBar`][flet.] controls.
|
|
1661
1661
|
"""
|
|
1662
1662
|
|
|
1663
1663
|
close_icon_color: Optional[ColorValue] = None
|
|
1664
1664
|
"""
|
|
1665
1665
|
Overrides the default value of
|
|
1666
|
-
[`SnackBar.close_icon_color`][flet.
|
|
1667
|
-
[`SnackBar`][flet.
|
|
1666
|
+
[`SnackBar.close_icon_color`][flet.] in all descendant
|
|
1667
|
+
[`SnackBar`][flet.] controls.
|
|
1668
1668
|
"""
|
|
1669
1669
|
|
|
1670
1670
|
disabled_action_text_color: Optional[ColorValue] = None
|
|
1671
1671
|
"""
|
|
1672
1672
|
Overrides the default value of `disabled_text_color` of
|
|
1673
|
-
[`SnackBar.action`][flet.
|
|
1674
|
-
[`SnackBar`][flet.
|
|
1673
|
+
[`SnackBar.action`][flet.] in all descendant
|
|
1674
|
+
[`SnackBar`][flet.] controls.
|
|
1675
1675
|
"""
|
|
1676
1676
|
|
|
1677
1677
|
disabled_action_bgcolor: Optional[ColorValue] = None
|
|
1678
1678
|
"""
|
|
1679
1679
|
Overrides the default value of `disabled_color` of
|
|
1680
|
-
[`SnackBar.action`][flet.
|
|
1681
|
-
[`SnackBar`][flet.
|
|
1680
|
+
[`SnackBar.action`][flet.] in all descendant
|
|
1681
|
+
[`SnackBar`][flet.] controls.
|
|
1682
1682
|
"""
|
|
1683
1683
|
|
|
1684
1684
|
elevation: Optional[Number] = None
|
|
1685
1685
|
"""
|
|
1686
|
-
Overrides the default value of [`SnackBar.elevation`][flet.
|
|
1687
|
-
all descendant [`SnackBar`][flet.
|
|
1686
|
+
Overrides the default value of [`SnackBar.elevation`][flet.] in
|
|
1687
|
+
all descendant [`SnackBar`][flet.] controls.
|
|
1688
1688
|
"""
|
|
1689
1689
|
|
|
1690
1690
|
content_text_style: Optional[TextStyle] = None
|
|
@@ -1694,39 +1694,39 @@ class SnackBarTheme:
|
|
|
1694
1694
|
|
|
1695
1695
|
width: Optional[Number] = None
|
|
1696
1696
|
"""
|
|
1697
|
-
Overrides the default value of [`SnackBar.width`][flet.
|
|
1698
|
-
descendant [`SnackBar`][flet.
|
|
1697
|
+
Overrides the default value of [`SnackBar.width`][flet.] in all
|
|
1698
|
+
descendant [`SnackBar`][flet.] controls.
|
|
1699
1699
|
"""
|
|
1700
1700
|
|
|
1701
1701
|
show_close_icon: Optional[bool] = None
|
|
1702
1702
|
"""
|
|
1703
1703
|
Overrides the default value of
|
|
1704
|
-
[`SnackBar.show_close_icon`][flet.
|
|
1705
|
-
[`SnackBar`][flet.
|
|
1704
|
+
[`SnackBar.show_close_icon`][flet.] in all descendant
|
|
1705
|
+
[`SnackBar`][flet.] controls.
|
|
1706
1706
|
"""
|
|
1707
1707
|
|
|
1708
1708
|
dismiss_direction: Optional[DismissDirection] = None
|
|
1709
1709
|
"""
|
|
1710
1710
|
Overrides the default value of
|
|
1711
|
-
[`SnackBar.dismiss_direction`][flet.
|
|
1712
|
-
[`SnackBar`][flet.
|
|
1711
|
+
[`SnackBar.dismiss_direction`][flet.] in all descendant
|
|
1712
|
+
[`SnackBar`][flet.] controls.
|
|
1713
1713
|
"""
|
|
1714
1714
|
|
|
1715
1715
|
behavior: Optional[SnackBarBehavior] = None
|
|
1716
1716
|
"""
|
|
1717
|
-
Overrides the default value of [`SnackBar.behavior`][flet.
|
|
1718
|
-
descendant [`SnackBar`][flet.
|
|
1717
|
+
Overrides the default value of [`SnackBar.behavior`][flet.] in all
|
|
1718
|
+
descendant [`SnackBar`][flet.] controls.
|
|
1719
1719
|
"""
|
|
1720
1720
|
|
|
1721
1721
|
shape: Optional[OutlinedBorder] = None
|
|
1722
1722
|
"""
|
|
1723
|
-
Overrides the default value of [`SnackBar.shape`][flet.
|
|
1724
|
-
descendant [`SnackBar`][flet.
|
|
1723
|
+
Overrides the default value of [`SnackBar.shape`][flet.] in all
|
|
1724
|
+
descendant [`SnackBar`][flet.] controls.
|
|
1725
1725
|
"""
|
|
1726
1726
|
|
|
1727
1727
|
inset_padding: Optional[PaddingValue] = None
|
|
1728
1728
|
"""
|
|
1729
|
-
Overrides the default value for [`SnackBar.margin`][flet.
|
|
1729
|
+
Overrides the default value for [`SnackBar.margin`][flet.].
|
|
1730
1730
|
|
|
1731
1731
|
This value is only used when behavior is SnackBarBehavior.floating.
|
|
1732
1732
|
"""
|
|
@@ -1734,106 +1734,106 @@ class SnackBarTheme:
|
|
|
1734
1734
|
action_overflow_threshold: Optional[Number] = None
|
|
1735
1735
|
"""
|
|
1736
1736
|
Overrides the default value of
|
|
1737
|
-
[`SnackBar.action_overflow_threshold`][flet.
|
|
1738
|
-
all descendant [`SnackBar`][flet.
|
|
1737
|
+
[`SnackBar.action_overflow_threshold`][flet.] in
|
|
1738
|
+
all descendant [`SnackBar`][flet.] controls.
|
|
1739
1739
|
"""
|
|
1740
1740
|
|
|
1741
1741
|
|
|
1742
1742
|
@dataclass
|
|
1743
1743
|
class BannerTheme:
|
|
1744
1744
|
"""
|
|
1745
|
-
Defines default property values for descendant [`Banner`][flet.
|
|
1745
|
+
Defines default property values for descendant [`Banner`][flet.] controls.
|
|
1746
1746
|
"""
|
|
1747
1747
|
|
|
1748
1748
|
bgcolor: Optional[ColorValue] = None
|
|
1749
1749
|
"""
|
|
1750
|
-
Overrides the default value of [`Banner.bgcolor`][flet.
|
|
1751
|
-
descendant [`Banner`][flet.
|
|
1750
|
+
Overrides the default value of [`Banner.bgcolor`][flet.] in all
|
|
1751
|
+
descendant [`Banner`][flet.] controls.
|
|
1752
1752
|
"""
|
|
1753
1753
|
|
|
1754
1754
|
shadow_color: Optional[ColorValue] = None
|
|
1755
1755
|
"""
|
|
1756
|
-
Overrides the default value of [`Banner.shadow_color`][flet.
|
|
1757
|
-
all descendant [`Banner`][flet.
|
|
1756
|
+
Overrides the default value of [`Banner.shadow_color`][flet.] in
|
|
1757
|
+
all descendant [`Banner`][flet.] controls.
|
|
1758
1758
|
"""
|
|
1759
1759
|
|
|
1760
1760
|
divider_color: Optional[ColorValue] = None
|
|
1761
1761
|
"""
|
|
1762
|
-
Overrides the default value of [`Banner.divider_color`][flet.
|
|
1763
|
-
in all descendant [`Banner`][flet.
|
|
1762
|
+
Overrides the default value of [`Banner.divider_color`][flet.]
|
|
1763
|
+
in all descendant [`Banner`][flet.] controls.
|
|
1764
1764
|
"""
|
|
1765
1765
|
|
|
1766
1766
|
padding: Optional[PaddingValue] = None
|
|
1767
1767
|
"""
|
|
1768
1768
|
Overrides the default value of
|
|
1769
|
-
[`Banner.content_padding`][flet.
|
|
1770
|
-
[`Banner`][flet.
|
|
1769
|
+
[`Banner.content_padding`][flet.] in all descendant
|
|
1770
|
+
[`Banner`][flet.] controls.
|
|
1771
1771
|
"""
|
|
1772
1772
|
|
|
1773
1773
|
leading_padding: Optional[PaddingValue] = None
|
|
1774
1774
|
"""
|
|
1775
1775
|
Overrides the default value of
|
|
1776
|
-
[`Banner.leading_padding`][flet.
|
|
1777
|
-
[`Banner`][flet.
|
|
1776
|
+
[`Banner.leading_padding`][flet.] in all descendant
|
|
1777
|
+
[`Banner`][flet.] controls.
|
|
1778
1778
|
"""
|
|
1779
1779
|
|
|
1780
1780
|
elevation: Optional[Number] = None
|
|
1781
1781
|
"""
|
|
1782
|
-
Overrides the default value of [`Banner.elevation`][flet.
|
|
1783
|
-
descendant [`Banner`][flet.
|
|
1782
|
+
Overrides the default value of [`Banner.elevation`][flet.] in all
|
|
1783
|
+
descendant [`Banner`][flet.] controls.
|
|
1784
1784
|
"""
|
|
1785
1785
|
|
|
1786
1786
|
content_text_style: Optional[TextStyle] = None
|
|
1787
1787
|
"""
|
|
1788
1788
|
Overrides the default value of
|
|
1789
|
-
[`Banner.content_text_style`][flet.
|
|
1790
|
-
[`Banner`][flet.
|
|
1789
|
+
[`Banner.content_text_style`][flet.] in all descendant
|
|
1790
|
+
[`Banner`][flet.] controls.
|
|
1791
1791
|
"""
|
|
1792
1792
|
|
|
1793
1793
|
|
|
1794
1794
|
@dataclass
|
|
1795
1795
|
class DatePickerTheme:
|
|
1796
1796
|
"""
|
|
1797
|
-
Customizes the appearance of [`DatePicker`][flet.
|
|
1797
|
+
Customizes the appearance of [`DatePicker`][flet.] controls across the
|
|
1798
1798
|
app.
|
|
1799
1799
|
"""
|
|
1800
1800
|
|
|
1801
1801
|
bgcolor: Optional[ColorValue] = None
|
|
1802
1802
|
"""
|
|
1803
1803
|
Overrides the default background color of the surface in all descendant
|
|
1804
|
-
[`DatePicker`][flet.
|
|
1804
|
+
[`DatePicker`][flet.] controls.
|
|
1805
1805
|
"""
|
|
1806
1806
|
|
|
1807
1807
|
shadow_color: Optional[ColorValue] = None
|
|
1808
1808
|
"""
|
|
1809
1809
|
Overrides the default shadow color in all descendant
|
|
1810
|
-
[`DatePicker`][flet.
|
|
1810
|
+
[`DatePicker`][flet.] controls.
|
|
1811
1811
|
"""
|
|
1812
1812
|
|
|
1813
1813
|
divider_color: Optional[ColorValue] = None
|
|
1814
1814
|
"""
|
|
1815
1815
|
Overrides the default color used to paint the divider in all descendant
|
|
1816
|
-
[`DatePicker`][flet.
|
|
1816
|
+
[`DatePicker`][flet.] controls.
|
|
1817
1817
|
"""
|
|
1818
1818
|
|
|
1819
1819
|
header_bgcolor: Optional[ColorValue] = None
|
|
1820
1820
|
"""
|
|
1821
1821
|
Overrides the header's default background fill color.
|
|
1822
1822
|
|
|
1823
|
-
The [`DatePicker`][flet.
|
|
1823
|
+
The [`DatePicker`][flet.]'s header displays the currently selected date.
|
|
1824
1824
|
"""
|
|
1825
1825
|
|
|
1826
1826
|
today_bgcolor: Optional[ControlStateValue[ColorValue]] = None
|
|
1827
1827
|
"""
|
|
1828
1828
|
Overrides the default color used to paint the background of the
|
|
1829
1829
|
[`DatePicker.current_date`].[flet.DatePicker.current_date] label in the grid of the
|
|
1830
|
-
[`DatePicker`][flet.
|
|
1830
|
+
[`DatePicker`][flet.].
|
|
1831
1831
|
"""
|
|
1832
1832
|
|
|
1833
1833
|
day_bgcolor: Optional[ControlStateValue[ColorValue]] = None
|
|
1834
1834
|
"""
|
|
1835
1835
|
Overrides the default color used to paint the background of the day labels in the
|
|
1836
|
-
grid of the [`DatePicker`][flet.
|
|
1836
|
+
grid of the [`DatePicker`][flet.].
|
|
1837
1837
|
"""
|
|
1838
1838
|
|
|
1839
1839
|
day_overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
@@ -1845,15 +1845,15 @@ class DatePickerTheme:
|
|
|
1845
1845
|
day_foreground_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1846
1846
|
"""
|
|
1847
1847
|
Overrides the default color used to paint the day labels in the grid of the
|
|
1848
|
-
[`DatePicker`][flet.
|
|
1848
|
+
[`DatePicker`][flet.].
|
|
1849
1849
|
|
|
1850
1850
|
This will be used instead of the color provided in
|
|
1851
|
-
[`DatePickerTheme.day_text_style`][flet.
|
|
1851
|
+
[`DatePickerTheme.day_text_style`][flet.].
|
|
1852
1852
|
"""
|
|
1853
1853
|
|
|
1854
1854
|
elevation: Optional[Number] = None
|
|
1855
1855
|
"""
|
|
1856
|
-
Overrides the default value of [`DatePicker`][flet.
|
|
1856
|
+
Overrides the default value of [`DatePicker`][flet.] elevation.
|
|
1857
1857
|
"""
|
|
1858
1858
|
|
|
1859
1859
|
range_picker_elevation: Optional[Number] = None
|
|
@@ -1864,36 +1864,36 @@ class DatePickerTheme:
|
|
|
1864
1864
|
day_text_style: Optional[TextStyle] = None
|
|
1865
1865
|
"""
|
|
1866
1866
|
Overrides the default text style used for each individual day label in the grid of
|
|
1867
|
-
the [`DatePicker`][flet.
|
|
1867
|
+
the [`DatePicker`][flet.].
|
|
1868
1868
|
|
|
1869
1869
|
The color in
|
|
1870
|
-
[`DatePickerTheme.day_text_style`][flet.
|
|
1870
|
+
[`DatePickerTheme.day_text_style`][flet.] is not
|
|
1871
1871
|
used,
|
|
1872
|
-
[`DatePickerTheme.day_foreground_color`][flet.
|
|
1872
|
+
[`DatePickerTheme.day_foreground_color`][flet.]
|
|
1873
1873
|
is used instead.
|
|
1874
1874
|
"""
|
|
1875
1875
|
|
|
1876
1876
|
weekday_text_style: Optional[TextStyle] = None
|
|
1877
1877
|
"""
|
|
1878
1878
|
Overrides the default text style used for the row of weekday labels at the top of
|
|
1879
|
-
the [`DatePicker`][flet.
|
|
1879
|
+
the [`DatePicker`][flet.] grid.
|
|
1880
1880
|
"""
|
|
1881
1881
|
|
|
1882
1882
|
year_text_style: Optional[TextStyle] = None
|
|
1883
1883
|
"""
|
|
1884
1884
|
Overrides the default text style used to paint each of the year entries in the year
|
|
1885
|
-
selector of the [`DatePicker`][flet.
|
|
1885
|
+
selector of the [`DatePicker`][flet.].
|
|
1886
1886
|
|
|
1887
1887
|
The color of the
|
|
1888
|
-
[`DatePickerTheme.year_text_style`][flet.
|
|
1888
|
+
[`DatePickerTheme.year_text_style`][flet.] is not
|
|
1889
1889
|
used,
|
|
1890
|
-
[`DatePickerTheme.year_foreground_color`][flet.
|
|
1890
|
+
[`DatePickerTheme.year_foreground_color`][flet.]
|
|
1891
1891
|
is used instead.
|
|
1892
1892
|
"""
|
|
1893
1893
|
|
|
1894
1894
|
shape: Optional[OutlinedBorder] = None
|
|
1895
1895
|
"""
|
|
1896
|
-
Overrides the default value of [`DatePicker`][flet.
|
|
1896
|
+
Overrides the default value of [`DatePicker`][flet.] shape.
|
|
1897
1897
|
|
|
1898
1898
|
If elevation is greater than zero then a shadow is shown and the shadow's shape
|
|
1899
1899
|
mirrors the shape of the dialog.
|
|
@@ -1902,13 +1902,13 @@ class DatePickerTheme:
|
|
|
1902
1902
|
cancel_button_style: Optional[ButtonStyle] = None
|
|
1903
1903
|
"""
|
|
1904
1904
|
Overrides the default style of the cancel button of a
|
|
1905
|
-
[`DatePicker`][flet.
|
|
1905
|
+
[`DatePicker`][flet.].
|
|
1906
1906
|
"""
|
|
1907
1907
|
|
|
1908
1908
|
confirm_button_style: Optional[ButtonStyle] = None
|
|
1909
1909
|
"""
|
|
1910
1910
|
Overrides the default style of the confirm (OK) button of a
|
|
1911
|
-
[`DatePicker`][flet.
|
|
1911
|
+
[`DatePicker`][flet.].
|
|
1912
1912
|
"""
|
|
1913
1913
|
|
|
1914
1914
|
header_foreground_color: Optional[ColorValue] = None
|
|
@@ -1918,9 +1918,9 @@ class DatePickerTheme:
|
|
|
1918
1918
|
The dialog's header displays the currently selected date.
|
|
1919
1919
|
|
|
1920
1920
|
This is used instead of the color property of
|
|
1921
|
-
[`DatePickerTheme.header_headline_text_style`][flet.
|
|
1921
|
+
[`DatePickerTheme.header_headline_text_style`][flet.]
|
|
1922
1922
|
and
|
|
1923
|
-
[`DatePickerTheme.header_help_text_style`][flet.
|
|
1923
|
+
[`DatePickerTheme.header_help_text_style`][flet.].
|
|
1924
1924
|
"""
|
|
1925
1925
|
|
|
1926
1926
|
header_headline_text_style: Optional[TextStyle] = None
|
|
@@ -1930,9 +1930,9 @@ class DatePickerTheme:
|
|
|
1930
1930
|
The dialog's header displays the currently selected date.
|
|
1931
1931
|
|
|
1932
1932
|
The color of the
|
|
1933
|
-
[`DatePickerTheme.header_headline_text_style`][flet.
|
|
1933
|
+
[`DatePickerTheme.header_headline_text_style`][flet.]
|
|
1934
1934
|
is not used,
|
|
1935
|
-
[`DatePickerTheme.header_foreground_color`][flet.
|
|
1935
|
+
[`DatePickerTheme.header_foreground_color`][flet.]
|
|
1936
1936
|
is used instead.
|
|
1937
1937
|
"""
|
|
1938
1938
|
|
|
@@ -1944,7 +1944,7 @@ class DatePickerTheme:
|
|
|
1944
1944
|
usually a prompt to the user at the top of the header (i.e. 'Select date').
|
|
1945
1945
|
|
|
1946
1946
|
The color of the `header_help_style` is not used,
|
|
1947
|
-
[`DatePickerTheme.header_foreground_color`][flet.
|
|
1947
|
+
[`DatePickerTheme.header_foreground_color`][flet.]
|
|
1948
1948
|
is used instead.
|
|
1949
1949
|
"""
|
|
1950
1950
|
|
|
@@ -1968,17 +1968,18 @@ class DatePickerTheme:
|
|
|
1968
1968
|
The dialog's header displays the currently selected date range.
|
|
1969
1969
|
|
|
1970
1970
|
This is used instead of any colors provided by
|
|
1971
|
-
`range_picker_header_headline_text_style` or
|
|
1971
|
+
`range_picker_header_headline_text_style` or
|
|
1972
|
+
`range_picker_header_help_text_style`.
|
|
1972
1973
|
"""
|
|
1973
1974
|
|
|
1974
1975
|
today_foreground_color: Optional[ControlStateValue[ColorValue]] = None
|
|
1975
1976
|
"""
|
|
1976
1977
|
Overrides the default color used to paint the
|
|
1977
|
-
[`DatePicker.current_date`][flet.
|
|
1978
|
+
[`DatePicker.current_date`][flet.] label in the grid of the
|
|
1978
1979
|
dialog's CalendarDatePicker and the corresponding year in the dialog's YearPicker.
|
|
1979
1980
|
|
|
1980
1981
|
This will be used instead of the color provided in
|
|
1981
|
-
[`DatePickerTheme.day_text_style`][flet.
|
|
1982
|
+
[`DatePickerTheme.day_text_style`][flet.].
|
|
1982
1983
|
"""
|
|
1983
1984
|
|
|
1984
1985
|
range_picker_shape: Optional[OutlinedBorder] = None
|
|
@@ -2003,8 +2004,8 @@ class DatePickerTheme:
|
|
|
2003
2004
|
|
|
2004
2005
|
range_picker_header_headline_text_style: Optional[TextStyle] = None
|
|
2005
2006
|
"""
|
|
2006
|
-
Overrides the default text style used for the headline text in the header of a
|
|
2007
|
-
screen DateRangePicker (TBD).
|
|
2007
|
+
Overrides the default text style used for the headline text in the header of a
|
|
2008
|
+
full screen DateRangePicker (TBD).
|
|
2008
2009
|
|
|
2009
2010
|
The dialog's header displays the currently selected date range.
|
|
2010
2011
|
|
|
@@ -2020,25 +2021,26 @@ class DatePickerTheme:
|
|
|
2020
2021
|
|
|
2021
2022
|
range_selection_overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
2022
2023
|
"""
|
|
2023
|
-
Overrides the default highlight color that's typically used to indicate that a
|
|
2024
|
-
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.
|
|
2025
2027
|
"""
|
|
2026
2028
|
|
|
2027
2029
|
today_border_side: Optional[BorderSide] = None
|
|
2028
2030
|
"""
|
|
2029
2031
|
Overrides the border used to paint the
|
|
2030
|
-
[`DatePicker.current_date`][flet.
|
|
2031
|
-
grid of the [`DatePicker`][flet.
|
|
2032
|
+
[`DatePicker.current_date`][flet.] label in the
|
|
2033
|
+
grid of the [`DatePicker`][flet.].
|
|
2032
2034
|
|
|
2033
2035
|
The border side's [`BorderSide.color`] is not used,
|
|
2034
|
-
[`DatePickerTheme.today_foreground_color`][flet.
|
|
2036
|
+
[`DatePickerTheme.today_foreground_color`][flet.]
|
|
2035
2037
|
is used instead.
|
|
2036
2038
|
"""
|
|
2037
2039
|
|
|
2038
2040
|
year_bgcolor: Optional[ControlStateValue[ColorValue]] = None
|
|
2039
2041
|
"""
|
|
2040
2042
|
Overrides the default color used to paint the background of the year labels in the
|
|
2041
|
-
year selector of the of the [`DatePicker`][flet.
|
|
2043
|
+
year selector of the of the [`DatePicker`][flet.].
|
|
2042
2044
|
"""
|
|
2043
2045
|
|
|
2044
2046
|
year_foreground_color: Optional[ControlStateValue[ColorValue]] = None
|
|
@@ -2047,7 +2049,7 @@ class DatePickerTheme:
|
|
|
2047
2049
|
the date picker.
|
|
2048
2050
|
|
|
2049
2051
|
This will be used instead of the color provided in
|
|
2050
|
-
[`DatePickerTheme.year_text_style`][flet.
|
|
2052
|
+
[`DatePickerTheme.year_text_style`][flet.].
|
|
2051
2053
|
"""
|
|
2052
2054
|
|
|
2053
2055
|
year_overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
@@ -2059,40 +2061,34 @@ class DatePickerTheme:
|
|
|
2059
2061
|
day_shape: Optional[ControlStateValue[OutlinedBorder]] = None
|
|
2060
2062
|
"""
|
|
2061
2063
|
Overrides the default shape used to paint the shape decoration of the day labels in
|
|
2062
|
-
the grid of the [`DatePicker`][flet.
|
|
2064
|
+
the grid of the [`DatePicker`][flet.].
|
|
2063
2065
|
|
|
2064
2066
|
If the selected day is the current day, the provided shape with the value of
|
|
2065
|
-
[`DatePickerTheme.today_bgcolor`][flet.
|
|
2067
|
+
[`DatePickerTheme.today_bgcolor`][flet.] is used to
|
|
2066
2068
|
paint the shape decoration of the day label and the value of
|
|
2067
|
-
[`DatePickerTheme.today_border_side`][flet.
|
|
2068
|
-
[`DatePickerTheme.today_foreground_color`][flet.
|
|
2069
|
+
[`DatePickerTheme.today_border_side`][flet.] and
|
|
2070
|
+
[`DatePickerTheme.today_foreground_color`][flet.]
|
|
2069
2071
|
is used to paint the border.
|
|
2070
2072
|
|
|
2071
2073
|
If the selected day is not the current day, the provided shape with the value of
|
|
2072
|
-
[`DatePickerTheme.day_bgcolor`][flet.
|
|
2074
|
+
[`DatePickerTheme.day_bgcolor`][flet.] is used to paint
|
|
2073
2075
|
the shape decoration of the day label.
|
|
2074
2076
|
"""
|
|
2075
2077
|
|
|
2076
|
-
locale: Optional[Locale] = None
|
|
2077
|
-
"""
|
|
2078
|
-
An optional locale argument can be used to set the locale for the date picker. It
|
|
2079
|
-
defaults to the ambient locale provided by Localizations.
|
|
2080
|
-
"""
|
|
2081
|
-
|
|
2082
2078
|
|
|
2083
2079
|
@dataclass
|
|
2084
2080
|
class TimePickerTheme:
|
|
2085
2081
|
"""
|
|
2086
|
-
Customizes the appearance of [`TimePicker`][flet.
|
|
2082
|
+
Customizes the appearance of [`TimePicker`][flet.] controls across the
|
|
2087
2083
|
app.
|
|
2088
2084
|
"""
|
|
2089
2085
|
|
|
2090
2086
|
bgcolor: Optional[ColorValue] = None
|
|
2091
2087
|
"""
|
|
2092
|
-
The background color of a [`TimePicker`][flet.
|
|
2088
|
+
The background color of a [`TimePicker`][flet.].
|
|
2093
2089
|
|
|
2094
2090
|
If this is null, the time picker defaults to the overall theme's
|
|
2095
|
-
[`ColorScheme.surface_container_high`][flet.
|
|
2091
|
+
[`ColorScheme.surface_container_high`][flet.].
|
|
2096
2092
|
"""
|
|
2097
2093
|
|
|
2098
2094
|
day_period_color: Optional[ColorValue] = None
|
|
@@ -2108,15 +2104,15 @@ class TimePickerTheme:
|
|
|
2108
2104
|
dial_bgcolor: Optional[ColorValue] = None
|
|
2109
2105
|
"""
|
|
2110
2106
|
The background color of the time picker dial when the entry mode is
|
|
2111
|
-
[`TimePickerEntryMode.DIAL`][flet.
|
|
2112
|
-
[`TimePickerEntryMode.DIAL_ONLY`][flet.
|
|
2107
|
+
[`TimePickerEntryMode.DIAL`][flet.] or
|
|
2108
|
+
[`TimePickerEntryMode.DIAL_ONLY`][flet.].
|
|
2113
2109
|
"""
|
|
2114
2110
|
|
|
2115
2111
|
dial_hand_color: Optional[ColorValue] = None
|
|
2116
2112
|
"""
|
|
2117
2113
|
The color of the time picker dial's hand when the entry mode is
|
|
2118
|
-
[`TimePickerEntryMode.DIAL`][flet.
|
|
2119
|
-
[`TimePickerEntryMode.DIAL_ONLY`][flet.
|
|
2114
|
+
[`TimePickerEntryMode.DIAL`][flet.] or
|
|
2115
|
+
[`TimePickerEntryMode.DIAL_ONLY`][flet.].
|
|
2120
2116
|
"""
|
|
2121
2117
|
|
|
2122
2118
|
dial_text_color: Optional[ColorValue] = None
|
|
@@ -2126,7 +2122,7 @@ class TimePickerTheme:
|
|
|
2126
2122
|
|
|
2127
2123
|
entry_mode_icon_color: Optional[ColorValue] = None
|
|
2128
2124
|
"""
|
|
2129
|
-
The color of the entry mode [`IconButton`][flet.
|
|
2125
|
+
The color of the entry mode [`IconButton`][flet.].
|
|
2130
2126
|
"""
|
|
2131
2127
|
|
|
2132
2128
|
hour_minute_color: Optional[ColorValue] = None
|
|
@@ -2141,17 +2137,17 @@ class TimePickerTheme:
|
|
|
2141
2137
|
|
|
2142
2138
|
day_period_button_style: Optional[ButtonStyle] = None
|
|
2143
2139
|
"""
|
|
2144
|
-
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.].
|
|
2145
2141
|
"""
|
|
2146
2142
|
|
|
2147
2143
|
cancel_button_style: Optional[ButtonStyle] = None
|
|
2148
2144
|
"""
|
|
2149
|
-
The style of the cancel button of a [`TimePicker`][flet.
|
|
2145
|
+
The style of the cancel button of a [`TimePicker`][flet.].
|
|
2150
2146
|
"""
|
|
2151
2147
|
|
|
2152
2148
|
confirm_button_style: Optional[ButtonStyle] = None
|
|
2153
2149
|
"""
|
|
2154
|
-
The style of the confirm (OK) button of a [`TimePicker`][flet.
|
|
2150
|
+
The style of the confirm (OK) button of a [`TimePicker`][flet.].
|
|
2155
2151
|
"""
|
|
2156
2152
|
|
|
2157
2153
|
day_period_text_style: Optional[TextStyle] = None
|
|
@@ -2159,7 +2155,7 @@ class TimePickerTheme:
|
|
|
2159
2155
|
Used to configure the [TextStyle][flet.TextStyle] for the AM/PM toggle control.
|
|
2160
2156
|
|
|
2161
2157
|
If this is null, the time picker defaults to the overall theme's
|
|
2162
|
-
[`TextTheme.title_medium`][flet.
|
|
2158
|
+
[`TextTheme.title_medium`][flet.].
|
|
2163
2159
|
"""
|
|
2164
2160
|
|
|
2165
2161
|
dial_text_style: Optional[TextStyle] = None
|
|
@@ -2190,12 +2186,12 @@ class TimePickerTheme:
|
|
|
2190
2186
|
|
|
2191
2187
|
day_period_shape: Optional[OutlinedBorder] = None
|
|
2192
2188
|
"""
|
|
2193
|
-
The shape of the day period that the [`TimePicker`][flet.
|
|
2189
|
+
The shape of the day period that the [`TimePicker`][flet.] uses.
|
|
2194
2190
|
"""
|
|
2195
2191
|
|
|
2196
2192
|
hour_minute_shape: Optional[OutlinedBorder] = None
|
|
2197
2193
|
"""
|
|
2198
|
-
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.]
|
|
2199
2195
|
uses.
|
|
2200
2196
|
"""
|
|
2201
2197
|
|
|
@@ -2207,8 +2203,8 @@ class TimePickerTheme:
|
|
|
2207
2203
|
padding: Optional[PaddingValue] = None
|
|
2208
2204
|
"""
|
|
2209
2205
|
The padding around the time picker dialog when the entry mode is
|
|
2210
|
-
[`TimePickerEntryMode.DIAL`][flet.
|
|
2211
|
-
[`TimePickerEntryMode.DIAL_ONLY`][flet.
|
|
2206
|
+
[`TimePickerEntryMode.DIAL`][flet.] or
|
|
2207
|
+
[`TimePickerEntryMode.DIAL_ONLY`][flet.].
|
|
2212
2208
|
"""
|
|
2213
2209
|
|
|
2214
2210
|
time_selector_separator_color: Optional[ControlStateValue[ColorValue]] = None
|
|
@@ -2226,327 +2222,325 @@ class TimePickerTheme:
|
|
|
2226
2222
|
@dataclass
|
|
2227
2223
|
class DropdownTheme:
|
|
2228
2224
|
"""
|
|
2229
|
-
Customizes the appearance of [`Dropdown`][flet.
|
|
2225
|
+
Customizes the appearance of [`Dropdown`][flet.] across the app.
|
|
2230
2226
|
"""
|
|
2231
2227
|
|
|
2232
2228
|
menu_style: Optional[MenuStyle] = None
|
|
2233
2229
|
"""
|
|
2234
|
-
Overrides the default value for
|
|
2235
|
-
[`Dropdown.menu_style`][flet.Dropdown.menu_style].
|
|
2230
|
+
Overrides the default value for [`Dropdown.menu_style`][flet.].
|
|
2236
2231
|
"""
|
|
2237
2232
|
|
|
2238
2233
|
text_style: Optional[TextStyle] = None
|
|
2239
2234
|
"""
|
|
2240
|
-
Overrides the default value for
|
|
2241
|
-
[`DropdownMenu.text_style`][flet.Dropdown.text_style].
|
|
2235
|
+
Overrides the default value for [`Dropdown.text_style`][flet.].
|
|
2242
2236
|
"""
|
|
2243
2237
|
|
|
2244
2238
|
|
|
2245
2239
|
@dataclass
|
|
2246
2240
|
class ListTileTheme:
|
|
2247
2241
|
"""
|
|
2248
|
-
Customizes the appearance of descendant [`ListTile`][flet.
|
|
2242
|
+
Customizes the appearance of descendant [`ListTile`][flet.] controls.
|
|
2249
2243
|
"""
|
|
2250
2244
|
|
|
2251
2245
|
icon_color: Optional[ColorValue] = None
|
|
2252
2246
|
"""
|
|
2253
|
-
Overrides the default value for [`ListTile.icon_color`][flet.
|
|
2247
|
+
Overrides the default value for [`ListTile.icon_color`][flet.].
|
|
2254
2248
|
"""
|
|
2255
2249
|
|
|
2256
2250
|
text_color: Optional[ColorValue] = None
|
|
2257
2251
|
"""
|
|
2258
|
-
Overrides the default value for [`ListTile.text_color`][flet.
|
|
2252
|
+
Overrides the default value for [`ListTile.text_color`][flet.].
|
|
2259
2253
|
"""
|
|
2260
2254
|
|
|
2261
2255
|
bgcolor: Optional[ColorValue] = None
|
|
2262
2256
|
"""
|
|
2263
|
-
Overrides the default value for [`ListTile.bgcolor`][flet.
|
|
2257
|
+
Overrides the default value for [`ListTile.bgcolor`][flet.].
|
|
2264
2258
|
"""
|
|
2265
2259
|
|
|
2266
2260
|
selected_tile_color: Optional[ColorValue] = None
|
|
2267
2261
|
"""
|
|
2268
2262
|
Overrides the default value for
|
|
2269
|
-
[`ListTile.selected_tile_color`][flet.
|
|
2263
|
+
[`ListTile.selected_tile_color`][flet.].
|
|
2270
2264
|
"""
|
|
2271
2265
|
|
|
2272
2266
|
selected_color: Optional[ColorValue] = None
|
|
2273
2267
|
"""
|
|
2274
2268
|
Overrides the default value for
|
|
2275
|
-
[`ListTile.selected_color`][flet.
|
|
2269
|
+
[`ListTile.selected_color`][flet.].
|
|
2276
2270
|
"""
|
|
2277
2271
|
|
|
2278
2272
|
is_three_line: Optional[bool] = None
|
|
2279
2273
|
"""
|
|
2280
2274
|
Overrides the default value for
|
|
2281
|
-
[`ListTile.is_three_line`][flet.
|
|
2275
|
+
[`ListTile.is_three_line`][flet.].
|
|
2282
2276
|
"""
|
|
2283
2277
|
|
|
2284
2278
|
enable_feedback: Optional[bool] = None
|
|
2285
2279
|
"""
|
|
2286
2280
|
Overrides the default value for
|
|
2287
|
-
[`ListTile.enable_feedback`][flet.
|
|
2281
|
+
[`ListTile.enable_feedback`][flet.].
|
|
2288
2282
|
"""
|
|
2289
2283
|
|
|
2290
2284
|
dense: Optional[bool] = None
|
|
2291
2285
|
"""
|
|
2292
|
-
Overrides the default value for [`ListTile.dense`][flet.
|
|
2286
|
+
Overrides the default value for [`ListTile.dense`][flet.].
|
|
2293
2287
|
"""
|
|
2294
2288
|
|
|
2295
2289
|
shape: Optional[OutlinedBorder] = None
|
|
2296
2290
|
"""
|
|
2297
|
-
Overrides the default value for [`ListTile.shape`][flet.
|
|
2291
|
+
Overrides the default value for [`ListTile.shape`][flet.].
|
|
2298
2292
|
"""
|
|
2299
2293
|
|
|
2300
2294
|
visual_density: Optional[VisualDensity] = None
|
|
2301
2295
|
"""
|
|
2302
2296
|
Overrides the default value for
|
|
2303
|
-
[`ListTile.visual_density`][flet.
|
|
2297
|
+
[`ListTile.visual_density`][flet.].
|
|
2304
2298
|
"""
|
|
2305
2299
|
|
|
2306
2300
|
content_padding: Optional[PaddingValue] = None
|
|
2307
2301
|
"""
|
|
2308
2302
|
Overrides the default value for
|
|
2309
|
-
[`ListTile.content_padding`][flet.
|
|
2303
|
+
[`ListTile.content_padding`][flet.].
|
|
2310
2304
|
"""
|
|
2311
2305
|
|
|
2312
2306
|
min_vertical_padding: Optional[PaddingValue] = None
|
|
2313
2307
|
"""
|
|
2314
2308
|
Overrides the default value for
|
|
2315
|
-
[`ListTile.min_vertical_padding`][flet.
|
|
2309
|
+
[`ListTile.min_vertical_padding`][flet.].
|
|
2316
2310
|
"""
|
|
2317
2311
|
|
|
2318
2312
|
horizontal_spacing: Optional[Number] = None
|
|
2319
2313
|
"""
|
|
2320
2314
|
Overrides the default value for
|
|
2321
|
-
[`ListTile.horizontal_spacing`][flet.
|
|
2315
|
+
[`ListTile.horizontal_spacing`][flet.].
|
|
2322
2316
|
"""
|
|
2323
2317
|
|
|
2324
2318
|
min_leading_width: Optional[Number] = None
|
|
2325
2319
|
"""
|
|
2326
2320
|
Overrides the default value for
|
|
2327
|
-
[`ListTile.min_leading_width`][flet.
|
|
2321
|
+
[`ListTile.min_leading_width`][flet.].
|
|
2328
2322
|
"""
|
|
2329
2323
|
|
|
2330
2324
|
title_text_style: Optional[TextStyle] = None
|
|
2331
2325
|
"""
|
|
2332
2326
|
Overrides the default value for
|
|
2333
|
-
[`ListTile.title_text_style`][flet.
|
|
2327
|
+
[`ListTile.title_text_style`][flet.].
|
|
2334
2328
|
"""
|
|
2335
2329
|
|
|
2336
2330
|
subtitle_text_style: Optional[TextStyle] = None
|
|
2337
2331
|
"""
|
|
2338
2332
|
Overrides the default value for
|
|
2339
|
-
[`ListTile.subtitle_text_style`][flet.
|
|
2333
|
+
[`ListTile.subtitle_text_style`][flet.].
|
|
2340
2334
|
"""
|
|
2341
2335
|
|
|
2342
2336
|
leading_and_trailing_text_style: Optional[TextStyle] = None
|
|
2343
2337
|
"""
|
|
2344
2338
|
Overrides the default value for
|
|
2345
|
-
[`ListTile.leading_and_trailing_text_style`][flet.
|
|
2339
|
+
[`ListTile.leading_and_trailing_text_style`][flet.].
|
|
2346
2340
|
"""
|
|
2347
2341
|
|
|
2348
2342
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
2349
2343
|
"""
|
|
2350
2344
|
Overrides the default value for
|
|
2351
|
-
[`ListTile.mouse_cursor`][flet.
|
|
2345
|
+
[`ListTile.mouse_cursor`][flet.].
|
|
2352
2346
|
"""
|
|
2353
2347
|
|
|
2354
2348
|
min_height: Optional[Number] = None
|
|
2355
2349
|
"""
|
|
2356
2350
|
Overrides the default value for
|
|
2357
|
-
[`ListTile.min_height`][flet.
|
|
2351
|
+
[`ListTile.min_height`][flet.].
|
|
2358
2352
|
"""
|
|
2359
2353
|
|
|
2360
2354
|
|
|
2361
2355
|
@dataclass
|
|
2362
2356
|
class TooltipTheme:
|
|
2363
2357
|
"""
|
|
2364
|
-
Customizes the appearance of descendant [`Tooltip`][flet.
|
|
2358
|
+
Customizes the appearance of descendant [`Tooltip`][flet.] controls.
|
|
2365
2359
|
"""
|
|
2366
2360
|
|
|
2367
2361
|
text_style: Optional[TextStyle] = None
|
|
2368
2362
|
"""
|
|
2369
|
-
Overrides the default value for [`Tooltip.text_style`][flet.
|
|
2363
|
+
Overrides the default value for [`Tooltip.text_style`][flet.].
|
|
2370
2364
|
"""
|
|
2371
2365
|
|
|
2372
2366
|
enable_feedback: Optional[bool] = None
|
|
2373
2367
|
"""
|
|
2374
2368
|
Overrides the default value for
|
|
2375
|
-
[`Tooltip.enable_feedback`][flet.
|
|
2369
|
+
[`Tooltip.enable_feedback`][flet.].
|
|
2376
2370
|
"""
|
|
2377
2371
|
|
|
2378
2372
|
exclude_from_semantics: Optional[bool] = None
|
|
2379
2373
|
"""
|
|
2380
2374
|
Overrides the default value for
|
|
2381
|
-
[`Tooltip.exclude_from_semantics`][flet.
|
|
2375
|
+
[`Tooltip.exclude_from_semantics`][flet.].
|
|
2382
2376
|
"""
|
|
2383
2377
|
|
|
2384
2378
|
prefer_below: Optional[bool] = None
|
|
2385
2379
|
"""
|
|
2386
|
-
Overrides the default value for [`Tooltip.prefer_below`][flet.
|
|
2380
|
+
Overrides the default value for [`Tooltip.prefer_below`][flet.].
|
|
2387
2381
|
"""
|
|
2388
2382
|
|
|
2389
2383
|
vertical_offset: Optional[Number] = None
|
|
2390
2384
|
"""
|
|
2391
2385
|
Overrides the default value for
|
|
2392
|
-
[`Tooltip.vertical_offset`][flet.
|
|
2386
|
+
[`Tooltip.vertical_offset`][flet.].
|
|
2393
2387
|
"""
|
|
2394
2388
|
|
|
2395
2389
|
padding: Optional[PaddingValue] = None
|
|
2396
2390
|
"""
|
|
2397
|
-
Overrides the default value for [`Tooltip.padding`][flet.
|
|
2391
|
+
Overrides the default value for [`Tooltip.padding`][flet.].
|
|
2398
2392
|
"""
|
|
2399
2393
|
|
|
2400
2394
|
wait_duration: Optional[DurationValue] = None
|
|
2401
2395
|
"""
|
|
2402
2396
|
Overrides the default value for
|
|
2403
|
-
[`Tooltip.wait_duration`][flet.
|
|
2397
|
+
[`Tooltip.wait_duration`][flet.].
|
|
2404
2398
|
"""
|
|
2405
2399
|
|
|
2406
2400
|
exit_duration: Optional[DurationValue] = None
|
|
2407
2401
|
"""
|
|
2408
2402
|
Overrides the default value for
|
|
2409
|
-
[`Tooltip.exit_duration`][flet.
|
|
2403
|
+
[`Tooltip.exit_duration`][flet.].
|
|
2410
2404
|
"""
|
|
2411
2405
|
|
|
2412
2406
|
show_duration: Optional[DurationValue] = None
|
|
2413
2407
|
"""
|
|
2414
2408
|
Overrides the default value for
|
|
2415
|
-
[`Tooltip.show_duration`][flet.
|
|
2409
|
+
[`Tooltip.show_duration`][flet.].
|
|
2416
2410
|
"""
|
|
2417
2411
|
|
|
2418
2412
|
margin: Optional[MarginValue] = None
|
|
2419
2413
|
"""
|
|
2420
|
-
Overrides the default value for [`Tooltip.margin`][flet.
|
|
2414
|
+
Overrides the default value for [`Tooltip.margin`][flet.].
|
|
2421
2415
|
"""
|
|
2422
2416
|
|
|
2423
2417
|
trigger_mode: Optional[TooltipTriggerMode] = None
|
|
2424
2418
|
"""
|
|
2425
2419
|
Overrides the default value for
|
|
2426
|
-
[`Tooltip.trigger_mode`][flet.
|
|
2420
|
+
[`Tooltip.trigger_mode`][flet.].
|
|
2427
2421
|
"""
|
|
2428
2422
|
|
|
2429
2423
|
decoration: Optional[BoxDecoration] = None
|
|
2430
2424
|
"""
|
|
2431
|
-
Overrides the default value for [`Tooltip.decoration`][flet.
|
|
2425
|
+
Overrides the default value for [`Tooltip.decoration`][flet.].
|
|
2432
2426
|
"""
|
|
2433
2427
|
|
|
2434
2428
|
text_align: Optional[TextAlign] = None
|
|
2435
2429
|
"""
|
|
2436
|
-
Overrides the default value for [`Tooltip.text_align`][flet.
|
|
2430
|
+
Overrides the default value for [`Tooltip.text_align`][flet.].
|
|
2437
2431
|
"""
|
|
2438
2432
|
|
|
2439
2433
|
size_constraints: Optional[BoxConstraints] = None
|
|
2440
2434
|
"""
|
|
2441
2435
|
Overrides the default value for
|
|
2442
|
-
[`Tooltip.size_constraints`][flet.
|
|
2436
|
+
[`Tooltip.size_constraints`][flet.].
|
|
2443
2437
|
"""
|
|
2444
2438
|
|
|
2445
2439
|
|
|
2446
2440
|
@dataclass
|
|
2447
2441
|
class ExpansionTileTheme:
|
|
2448
2442
|
"""
|
|
2449
|
-
Customizes the appearance of descendant [`ExpansionTile`][flet.
|
|
2443
|
+
Customizes the appearance of descendant [`ExpansionTile`][flet.]
|
|
2450
2444
|
controls.
|
|
2451
2445
|
"""
|
|
2452
2446
|
|
|
2453
2447
|
bgcolor: Optional[ColorValue] = None
|
|
2454
2448
|
"""
|
|
2455
2449
|
Overrides the default value for
|
|
2456
|
-
[`ExpansionTile.bgcolor`][flet.
|
|
2450
|
+
[`ExpansionTile.bgcolor`][flet.].
|
|
2457
2451
|
"""
|
|
2458
2452
|
|
|
2459
2453
|
icon_color: Optional[ColorValue] = None
|
|
2460
2454
|
"""
|
|
2461
2455
|
Overrides the default value for
|
|
2462
|
-
[`ExpansionTile.icon_color`][flet.
|
|
2456
|
+
[`ExpansionTile.icon_color`][flet.].
|
|
2463
2457
|
"""
|
|
2464
2458
|
|
|
2465
2459
|
text_color: Optional[ColorValue] = None
|
|
2466
2460
|
"""
|
|
2467
2461
|
Overrides the default value for
|
|
2468
|
-
[`ExpansionTile.text_color`][flet.
|
|
2462
|
+
[`ExpansionTile.text_color`][flet.].
|
|
2469
2463
|
"""
|
|
2470
2464
|
|
|
2471
2465
|
collapsed_bgcolor: Optional[ColorValue] = None
|
|
2472
2466
|
"""
|
|
2473
2467
|
Overrides the default value for
|
|
2474
|
-
[`ExpansionTile.collapsed_bgcolor`][flet.
|
|
2468
|
+
[`ExpansionTile.collapsed_bgcolor`][flet.].
|
|
2475
2469
|
"""
|
|
2476
2470
|
|
|
2477
2471
|
collapsed_icon_color: Optional[ColorValue] = None
|
|
2478
2472
|
"""
|
|
2479
2473
|
Overrides the default value for
|
|
2480
|
-
[`ExpansionTile.collapsed_icon_color`][flet.
|
|
2474
|
+
[`ExpansionTile.collapsed_icon_color`][flet.].
|
|
2481
2475
|
"""
|
|
2482
2476
|
|
|
2483
2477
|
clip_behavior: Optional[ClipBehavior] = None
|
|
2484
2478
|
"""
|
|
2485
2479
|
Overrides the default value for
|
|
2486
|
-
[`ExpansionTile.clip_behavior`][flet.
|
|
2480
|
+
[`ExpansionTile.clip_behavior`][flet.].
|
|
2487
2481
|
"""
|
|
2488
2482
|
|
|
2489
2483
|
collapsed_text_color: Optional[ColorValue] = None
|
|
2490
2484
|
"""
|
|
2491
2485
|
Overrides the default value for
|
|
2492
|
-
[`ExpansionTile.collapsed_text_color`][flet.
|
|
2486
|
+
[`ExpansionTile.collapsed_text_color`][flet.].
|
|
2493
2487
|
"""
|
|
2494
2488
|
|
|
2495
2489
|
tile_padding: Optional[PaddingValue] = None
|
|
2496
2490
|
"""
|
|
2497
2491
|
Overrides the default value for
|
|
2498
|
-
[`ExpansionTile.tile_padding`][flet.
|
|
2492
|
+
[`ExpansionTile.tile_padding`][flet.].
|
|
2499
2493
|
"""
|
|
2500
2494
|
|
|
2501
2495
|
expanded_alignment: Optional[Alignment] = None
|
|
2502
2496
|
"""
|
|
2503
2497
|
Overrides the default value for
|
|
2504
|
-
[`ExpansionTile.expanded_alignment`][flet.
|
|
2498
|
+
[`ExpansionTile.expanded_alignment`][flet.].
|
|
2505
2499
|
"""
|
|
2506
2500
|
|
|
2507
2501
|
controls_padding: Optional[PaddingValue] = None
|
|
2508
2502
|
"""
|
|
2509
2503
|
Overrides the default value for
|
|
2510
|
-
[`ExpansionTile.controls_padding`][flet.
|
|
2504
|
+
[`ExpansionTile.controls_padding`][flet.].
|
|
2511
2505
|
"""
|
|
2512
2506
|
|
|
2513
2507
|
|
|
2514
2508
|
@dataclass
|
|
2515
2509
|
class SliderTheme:
|
|
2516
2510
|
"""
|
|
2517
|
-
Customizes the appearance of descendant [`Slider`][flet.
|
|
2511
|
+
Customizes the appearance of descendant [`Slider`][flet.] controls.
|
|
2518
2512
|
"""
|
|
2519
2513
|
|
|
2520
2514
|
active_track_color: Optional[ColorValue] = None
|
|
2521
2515
|
"""
|
|
2522
|
-
Overrides the default value for [`Slider.active_color`][flet.
|
|
2516
|
+
Overrides the default value for [`Slider.active_color`][flet.].
|
|
2523
2517
|
"""
|
|
2524
2518
|
|
|
2525
2519
|
inactive_track_color: Optional[ColorValue] = None
|
|
2526
2520
|
"""
|
|
2527
2521
|
Overrides the default value for
|
|
2528
|
-
[`Slider.inactive_color`][flet.
|
|
2522
|
+
[`Slider.inactive_color`][flet.].
|
|
2529
2523
|
"""
|
|
2530
2524
|
|
|
2531
2525
|
thumb_color: Optional[ColorValue] = None
|
|
2532
2526
|
"""
|
|
2533
|
-
Overrides the default value for [`Slider.thumb_color`][flet.
|
|
2527
|
+
Overrides the default value for [`Slider.thumb_color`][flet.].
|
|
2534
2528
|
"""
|
|
2535
2529
|
|
|
2536
2530
|
overlay_color: Optional[ColorValue] = None
|
|
2537
2531
|
"""
|
|
2538
|
-
Overrides the default value for [`Slider.overlay_color`][flet.
|
|
2532
|
+
Overrides the default value for [`Slider.overlay_color`][flet.].
|
|
2539
2533
|
"""
|
|
2540
2534
|
|
|
2541
2535
|
value_indicator_color: Optional[ColorValue] = None
|
|
2542
2536
|
"""
|
|
2543
|
-
The color given to the [`Slider`][flet.
|
|
2537
|
+
The color given to the [`Slider`][flet.]'s value indicator to draw
|
|
2544
2538
|
itself with.
|
|
2545
2539
|
"""
|
|
2546
2540
|
|
|
2547
2541
|
disabled_thumb_color: Optional[ColorValue] = None
|
|
2548
2542
|
"""
|
|
2549
|
-
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.]
|
|
2550
2544
|
is disabled.
|
|
2551
2545
|
"""
|
|
2552
2546
|
|
|
@@ -2557,7 +2551,7 @@ class SliderTheme:
|
|
|
2557
2551
|
|
|
2558
2552
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
2559
2553
|
"""
|
|
2560
|
-
Overrides the default value for [`Slider.mouse_cursor`][flet.
|
|
2554
|
+
Overrides the default value for [`Slider.mouse_cursor`][flet.].
|
|
2561
2555
|
"""
|
|
2562
2556
|
|
|
2563
2557
|
active_tick_mark_color: Optional[ColorValue] = None
|
|
@@ -2570,35 +2564,35 @@ class SliderTheme:
|
|
|
2570
2564
|
"""
|
|
2571
2565
|
The color of the track's tick marks that are drawn between the current thumb
|
|
2572
2566
|
osition and the [Slider.max][flet.Slider.max] position when the
|
|
2573
|
-
[`Slider`][flet.
|
|
2567
|
+
[`Slider`][flet.] is disabled.
|
|
2574
2568
|
"""
|
|
2575
2569
|
|
|
2576
2570
|
disabled_active_track_color: Optional[ColorValue] = None
|
|
2577
2571
|
"""
|
|
2578
|
-
The color of the [`Slider`][flet.
|
|
2572
|
+
The color of the [`Slider`][flet.] track between the
|
|
2579
2573
|
[Slider.min][flet.Slider.min] position and the current thumb position when the
|
|
2580
|
-
[`Slider`][flet.
|
|
2574
|
+
[`Slider`][flet.] is disabled.
|
|
2581
2575
|
"""
|
|
2582
2576
|
|
|
2583
2577
|
disabled_inactive_tick_mark_color: Optional[ColorValue] = None
|
|
2584
2578
|
"""
|
|
2585
2579
|
The color of the track's tick marks that are drawn between the current thumb
|
|
2586
2580
|
position and the [Slider.max][flet.Slider.max] position when the
|
|
2587
|
-
[`Slider`][flet.
|
|
2581
|
+
[`Slider`][flet.] is disabled.
|
|
2588
2582
|
"""
|
|
2589
2583
|
|
|
2590
2584
|
disabled_inactive_track_color: Optional[ColorValue] = None
|
|
2591
2585
|
"""
|
|
2592
|
-
The color of the [`Slider`][flet.
|
|
2593
|
-
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
|
|
2594
2588
|
disabled.
|
|
2595
2589
|
"""
|
|
2596
2590
|
|
|
2597
2591
|
disabled_secondary_active_track_color: Optional[ColorValue] = None
|
|
2598
2592
|
"""
|
|
2599
|
-
The color of the [`Slider`][flet.
|
|
2593
|
+
The color of the [`Slider`][flet.] track between the current thumb position
|
|
2600
2594
|
and the [Slider.secondary_track_value][flet.Slider.secondary_track_value] position
|
|
2601
|
-
when the [`Slider`][flet.
|
|
2595
|
+
when the [`Slider`][flet.] is disabled.
|
|
2602
2596
|
"""
|
|
2603
2597
|
|
|
2604
2598
|
inactive_tick_mark_color: Optional[ColorValue] = None
|
|
@@ -2627,7 +2621,7 @@ class SliderTheme:
|
|
|
2627
2621
|
secondary_active_track_color: Optional[ColorValue] = None
|
|
2628
2622
|
"""
|
|
2629
2623
|
Overrides the default value for
|
|
2630
|
-
[`Slider.secondary_active_color`][flet.
|
|
2624
|
+
[`Slider.secondary_active_color`][flet.].
|
|
2631
2625
|
"""
|
|
2632
2626
|
|
|
2633
2627
|
track_height: Optional[Number] = None
|
|
@@ -2642,12 +2636,12 @@ class SliderTheme:
|
|
|
2642
2636
|
|
|
2643
2637
|
interaction: Optional[SliderInteraction] = None
|
|
2644
2638
|
"""
|
|
2645
|
-
Overrides the default value for [`Slider.interaction`][flet.
|
|
2639
|
+
Overrides the default value for [`Slider.interaction`][flet.].
|
|
2646
2640
|
"""
|
|
2647
2641
|
|
|
2648
2642
|
padding: Optional[PaddingValue] = None
|
|
2649
2643
|
"""
|
|
2650
|
-
Overrides the default value for [`Slider.padding`][flet.
|
|
2644
|
+
Overrides the default value for [`Slider.padding`][flet.].
|
|
2651
2645
|
"""
|
|
2652
2646
|
|
|
2653
2647
|
track_gap: Optional[Number] = None
|
|
@@ -2663,7 +2657,7 @@ class SliderTheme:
|
|
|
2663
2657
|
|
|
2664
2658
|
year_2023: bool = False
|
|
2665
2659
|
"""
|
|
2666
|
-
Overrides the default value for [`Slider.year_2023`][flet.
|
|
2660
|
+
Overrides the default value for [`Slider.year_2023`][flet.].
|
|
2667
2661
|
"""
|
|
2668
2662
|
|
|
2669
2663
|
|
|
@@ -2671,24 +2665,24 @@ class SliderTheme:
|
|
|
2671
2665
|
class ProgressIndicatorTheme:
|
|
2672
2666
|
"""
|
|
2673
2667
|
Customizes the appearance of progress indicators
|
|
2674
|
-
([`ProgressBar`][flet.
|
|
2668
|
+
([`ProgressBar`][flet.], [`ProgressRing`][flet.]) across the
|
|
2675
2669
|
app.
|
|
2676
2670
|
"""
|
|
2677
2671
|
|
|
2678
2672
|
color: Optional[ColorValue] = None
|
|
2679
2673
|
"""
|
|
2680
|
-
Overrides the default values for [`ProgressBar.color`][flet.
|
|
2681
|
-
[`ProgressRing.color`][flet.
|
|
2674
|
+
Overrides the default values for [`ProgressBar.color`][flet.] and
|
|
2675
|
+
[`ProgressRing.color`][flet.].
|
|
2682
2676
|
"""
|
|
2683
2677
|
|
|
2684
2678
|
circular_track_color: Optional[ColorValue] = None
|
|
2685
2679
|
"""
|
|
2686
|
-
Overrides the default value for [`ProgressRing.bgcolor`][flet.
|
|
2680
|
+
Overrides the default value for [`ProgressRing.bgcolor`][flet.].
|
|
2687
2681
|
"""
|
|
2688
2682
|
|
|
2689
2683
|
linear_track_color: Optional[ColorValue] = None
|
|
2690
2684
|
"""
|
|
2691
|
-
Overrides the default value for [`ProgressBar.bgcolor`][flet.
|
|
2685
|
+
Overrides the default value for [`ProgressBar.bgcolor`][flet.].
|
|
2692
2686
|
"""
|
|
2693
2687
|
|
|
2694
2688
|
refresh_bgcolor: Optional[ColorValue] = None
|
|
@@ -2699,384 +2693,384 @@ class ProgressIndicatorTheme:
|
|
|
2699
2693
|
linear_min_height: Optional[Number] = None
|
|
2700
2694
|
"""
|
|
2701
2695
|
Overrides the default value for
|
|
2702
|
-
[`ProgressBar.bar_height`][flet.
|
|
2696
|
+
[`ProgressBar.bar_height`][flet.].
|
|
2703
2697
|
"""
|
|
2704
2698
|
|
|
2705
2699
|
border_radius: Optional[BorderRadiusValue] = None
|
|
2706
2700
|
"""
|
|
2707
2701
|
Overrides the default value for
|
|
2708
|
-
[`ProgressBar.border_radius`][flet.
|
|
2702
|
+
[`ProgressBar.border_radius`][flet.].
|
|
2709
2703
|
"""
|
|
2710
2704
|
|
|
2711
2705
|
track_gap: Optional[Number] = None
|
|
2712
2706
|
"""
|
|
2713
2707
|
Overrides the default values for
|
|
2714
|
-
[`ProgressBar.track_gap`][flet.
|
|
2715
|
-
[`ProgressRing.track_gap`][flet.
|
|
2708
|
+
[`ProgressBar.track_gap`][flet.] and
|
|
2709
|
+
[`ProgressRing.track_gap`][flet.].
|
|
2716
2710
|
"""
|
|
2717
2711
|
|
|
2718
2712
|
circular_track_padding: Optional[PaddingValue] = None
|
|
2719
2713
|
"""
|
|
2720
2714
|
Overrides the default value for
|
|
2721
|
-
[`ProgressRing.padding`][flet.
|
|
2715
|
+
[`ProgressRing.padding`][flet.].
|
|
2722
2716
|
"""
|
|
2723
2717
|
|
|
2724
2718
|
size_constraints: Optional[BoxConstraints] = None
|
|
2725
2719
|
"""
|
|
2726
2720
|
Overrides the default value for
|
|
2727
|
-
[`ProgressRing.size_constraints`][flet.
|
|
2721
|
+
[`ProgressRing.size_constraints`][flet.].
|
|
2728
2722
|
"""
|
|
2729
2723
|
|
|
2730
2724
|
stop_indicator_color: Optional[ColorValue] = None
|
|
2731
2725
|
"""
|
|
2732
2726
|
Overrides the default value for
|
|
2733
|
-
[`ProgressBar.stop_indicator_color`][flet.
|
|
2727
|
+
[`ProgressBar.stop_indicator_color`][flet.].
|
|
2734
2728
|
"""
|
|
2735
2729
|
|
|
2736
2730
|
stop_indicator_radius: Optional[Number] = None
|
|
2737
2731
|
"""
|
|
2738
2732
|
Overrides the default value for
|
|
2739
|
-
[`ProgressBar.stop_indicator_radius`][flet.
|
|
2733
|
+
[`ProgressBar.stop_indicator_radius`][flet.].
|
|
2740
2734
|
"""
|
|
2741
2735
|
|
|
2742
2736
|
stroke_align: Optional[Number] = None
|
|
2743
2737
|
"""
|
|
2744
2738
|
Overrides the default value for
|
|
2745
|
-
[`ProgressRing.stroke_align`][flet.
|
|
2739
|
+
[`ProgressRing.stroke_align`][flet.].
|
|
2746
2740
|
"""
|
|
2747
2741
|
|
|
2748
2742
|
stroke_cap: Optional[StrokeCap] = None
|
|
2749
2743
|
"""
|
|
2750
2744
|
Overrides the default value for
|
|
2751
|
-
[`ProgressRing.stroke_cap`][flet.
|
|
2745
|
+
[`ProgressRing.stroke_cap`][flet.].
|
|
2752
2746
|
"""
|
|
2753
2747
|
|
|
2754
2748
|
stroke_width: Optional[Number] = None
|
|
2755
2749
|
"""
|
|
2756
2750
|
Overrides the default value for
|
|
2757
|
-
[`ProgressRing.stroke_width`][flet.
|
|
2751
|
+
[`ProgressRing.stroke_width`][flet.].
|
|
2758
2752
|
"""
|
|
2759
2753
|
|
|
2760
2754
|
year_2023: bool = False
|
|
2761
2755
|
"""
|
|
2762
2756
|
Overrides the default values for
|
|
2763
|
-
[`ProgressBar.year_2023`][flet.
|
|
2764
|
-
[`ProgressRing.year_2023`][flet.
|
|
2757
|
+
[`ProgressBar.year_2023`][flet.] and
|
|
2758
|
+
[`ProgressRing.year_2023`][flet.].
|
|
2765
2759
|
"""
|
|
2766
2760
|
|
|
2767
2761
|
|
|
2768
2762
|
@dataclass
|
|
2769
2763
|
class PopupMenuTheme:
|
|
2770
2764
|
"""
|
|
2771
|
-
Customizes the appearance of [`PopupMenuButton`][flet.
|
|
2765
|
+
Customizes the appearance of [`PopupMenuButton`][flet.] across the
|
|
2772
2766
|
app.
|
|
2773
2767
|
"""
|
|
2774
2768
|
|
|
2775
2769
|
color: Optional[ColorValue] = None
|
|
2776
2770
|
"""
|
|
2777
2771
|
Overrides the default value of
|
|
2778
|
-
[`PopupMenuButton.bgcolor`][flet.
|
|
2779
|
-
[`PopupMenuButton`][flet.
|
|
2772
|
+
[`PopupMenuButton.bgcolor`][flet.] in all descendant
|
|
2773
|
+
[`PopupMenuButton`][flet.] controls.
|
|
2780
2774
|
"""
|
|
2781
2775
|
|
|
2782
2776
|
shadow_color: Optional[ColorValue] = None
|
|
2783
2777
|
"""
|
|
2784
2778
|
Overrides the default value of
|
|
2785
|
-
[`PopupMenuButton.shadow_color`][flet.
|
|
2786
|
-
descendant [`PopupMenuButton`][flet.
|
|
2779
|
+
[`PopupMenuButton.shadow_color`][flet.] in all
|
|
2780
|
+
descendant [`PopupMenuButton`][flet.] controls.
|
|
2787
2781
|
"""
|
|
2788
2782
|
|
|
2789
2783
|
icon_color: Optional[ColorValue] = None
|
|
2790
2784
|
"""
|
|
2791
2785
|
Overrides the default value of
|
|
2792
|
-
[`PopupMenuButton.icon_color`][flet.
|
|
2793
|
-
descendant [`PopupMenuButton`][flet.
|
|
2786
|
+
[`PopupMenuButton.icon_color`][flet.] in all
|
|
2787
|
+
descendant [`PopupMenuButton`][flet.] controls.
|
|
2794
2788
|
"""
|
|
2795
2789
|
|
|
2796
2790
|
label_text_style: Optional[TextStyle] = None
|
|
2797
2791
|
"""
|
|
2798
2792
|
Overrides the default value of
|
|
2799
|
-
[`PopupMenuItem.label_text_style`][flet.
|
|
2800
|
-
in all descendant [`PopupMenuItem`][flet.
|
|
2793
|
+
[`PopupMenuItem.label_text_style`][flet.]
|
|
2794
|
+
in all descendant [`PopupMenuItem`][flet.] controls.
|
|
2801
2795
|
"""
|
|
2802
2796
|
|
|
2803
2797
|
enable_feedback: Optional[bool] = None
|
|
2804
2798
|
"""
|
|
2805
2799
|
Overrides the default value of
|
|
2806
|
-
[`PopupMenuButton.enable_feedback`][flet.
|
|
2807
|
-
descendant [`PopupMenuButton`][flet.
|
|
2800
|
+
[`PopupMenuButton.enable_feedback`][flet.] in all
|
|
2801
|
+
descendant [`PopupMenuButton`][flet.] controls
|
|
2808
2802
|
"""
|
|
2809
2803
|
|
|
2810
2804
|
elevation: Optional[Number] = None
|
|
2811
2805
|
"""
|
|
2812
2806
|
Overrides the default value of
|
|
2813
|
-
[`PopupMenuButton.elevation`][flet.
|
|
2814
|
-
[`PopupMenuButton`][flet.
|
|
2807
|
+
[`PopupMenuButton.elevation`][flet.] in all descendant
|
|
2808
|
+
[`PopupMenuButton`][flet.] controls.
|
|
2815
2809
|
"""
|
|
2816
2810
|
|
|
2817
2811
|
icon_size: Optional[Number] = None
|
|
2818
2812
|
"""
|
|
2819
2813
|
Overrides the default value of
|
|
2820
|
-
[`PopupMenuButton.icon_size`][flet.
|
|
2821
|
-
[`PopupMenuButton`][flet.
|
|
2814
|
+
[`PopupMenuButton.icon_size`][flet.] in all descendant
|
|
2815
|
+
[`PopupMenuButton`][flet.] controls.
|
|
2822
2816
|
"""
|
|
2823
2817
|
|
|
2824
2818
|
shape: Optional[OutlinedBorder] = None
|
|
2825
2819
|
"""
|
|
2826
2820
|
Overrides the default value of
|
|
2827
|
-
[`PopupMenuButton.shape`][flet.
|
|
2828
|
-
[`PopupMenuButton`][flet.
|
|
2821
|
+
[`PopupMenuButton.shape`][flet.] in all descendant
|
|
2822
|
+
[`PopupMenuButton`][flet.] controls.
|
|
2829
2823
|
"""
|
|
2830
2824
|
|
|
2831
2825
|
menu_position: Optional[PopupMenuPosition] = None
|
|
2832
2826
|
"""
|
|
2833
2827
|
Overrides the default value of
|
|
2834
|
-
[`PopupMenuButton.menu_position`][flet.
|
|
2835
|
-
descendant [`PopupMenuButton`][flet.
|
|
2828
|
+
[`PopupMenuButton.menu_position`][flet.] in all
|
|
2829
|
+
descendant [`PopupMenuButton`][flet.] controls.
|
|
2836
2830
|
"""
|
|
2837
2831
|
|
|
2838
2832
|
mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
2839
2833
|
"""
|
|
2840
2834
|
Overrides the default value of
|
|
2841
|
-
[`PopupMenuItem.mouse_cursor`][flet.
|
|
2842
|
-
descendant [`PopupMenuItem`][flet.
|
|
2835
|
+
[`PopupMenuItem.mouse_cursor`][flet.] in all
|
|
2836
|
+
descendant [`PopupMenuItem`][flet.] controls.
|
|
2843
2837
|
"""
|
|
2844
2838
|
|
|
2845
2839
|
menu_padding: Optional[PaddingValue] = None
|
|
2846
2840
|
"""
|
|
2847
2841
|
Overrides the default value of
|
|
2848
|
-
[`PopupMenuButton.menu_padding`][flet.
|
|
2849
|
-
descendant [`PopupMenuButton`][flet.
|
|
2842
|
+
[`PopupMenuButton.menu_padding`][flet.] in all
|
|
2843
|
+
descendant [`PopupMenuButton`][flet.] controls.
|
|
2850
2844
|
"""
|
|
2851
2845
|
|
|
2852
2846
|
|
|
2853
2847
|
@dataclass
|
|
2854
2848
|
class SearchBarTheme:
|
|
2855
2849
|
"""
|
|
2856
|
-
Customizes the appearance of [`SearchBar`][flet.
|
|
2850
|
+
Customizes the appearance of [`SearchBar`][flet.] controls across the app.
|
|
2857
2851
|
"""
|
|
2858
2852
|
|
|
2859
2853
|
bgcolor: Optional[ColorValue] = None
|
|
2860
2854
|
"""
|
|
2861
2855
|
Overrides the default value of
|
|
2862
|
-
[`SearchBar.bar_bgcolor`][flet.
|
|
2863
|
-
[`SearchBar`][flet.
|
|
2856
|
+
[`SearchBar.bar_bgcolor`][flet.] in all descendant
|
|
2857
|
+
[`SearchBar`][flet.] controls.
|
|
2864
2858
|
"""
|
|
2865
2859
|
|
|
2866
2860
|
text_capitalization: Optional[TextCapitalization] = None
|
|
2867
2861
|
"""
|
|
2868
2862
|
Overrides the default value of
|
|
2869
|
-
[`SearchBar.capitalization`][flet.
|
|
2870
|
-
[`SearchBar`][flet.
|
|
2863
|
+
[`SearchBar.capitalization`][flet.] in all descendant
|
|
2864
|
+
[`SearchBar`][flet.] controls.
|
|
2871
2865
|
"""
|
|
2872
2866
|
|
|
2873
2867
|
shadow_color: Optional[ControlStateValue[ColorValue]] = None
|
|
2874
2868
|
"""
|
|
2875
2869
|
Overrides the default value of
|
|
2876
|
-
[`SearchBar.bar_shadow_color`][flet.
|
|
2877
|
-
[`SearchBar`][flet.
|
|
2870
|
+
[`SearchBar.bar_shadow_color`][flet.] in all descendant
|
|
2871
|
+
[`SearchBar`][flet.] controls.
|
|
2878
2872
|
"""
|
|
2879
2873
|
|
|
2880
2874
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
2881
2875
|
"""
|
|
2882
2876
|
Overrides the default value of
|
|
2883
|
-
[`SearchBar.bar_overlay_color`][flet.
|
|
2884
|
-
descendant [`SearchBar`][flet.
|
|
2877
|
+
[`SearchBar.bar_overlay_color`][flet.] in all
|
|
2878
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2885
2879
|
"""
|
|
2886
2880
|
|
|
2887
2881
|
elevation: Optional[ControlStateValue[Optional[Number]]] = None
|
|
2888
2882
|
"""
|
|
2889
2883
|
Overrides the default value of
|
|
2890
|
-
[`SearchBar.bar_elevation`][flet.
|
|
2891
|
-
[`SearchBar`][flet.
|
|
2884
|
+
[`SearchBar.bar_elevation`][flet.] in all descendant
|
|
2885
|
+
[`SearchBar`][flet.] controls.
|
|
2892
2886
|
"""
|
|
2893
2887
|
|
|
2894
2888
|
text_style: Optional[ControlStateValue[TextStyle]] = None
|
|
2895
2889
|
"""
|
|
2896
2890
|
Overrides the default value of
|
|
2897
|
-
[`SearchBar.bar_text_style`][flet.
|
|
2898
|
-
[`SearchBar`][flet.
|
|
2891
|
+
[`SearchBar.bar_text_style`][flet.] in all descendant
|
|
2892
|
+
[`SearchBar`][flet.] controls.
|
|
2899
2893
|
"""
|
|
2900
2894
|
|
|
2901
2895
|
hint_style: Optional[ControlStateValue[TextStyle]] = None
|
|
2902
2896
|
"""
|
|
2903
2897
|
Overrides the default value of
|
|
2904
|
-
[`SearchBar.bar_hint_text_style`][flet.
|
|
2905
|
-
descendant [`SearchBar`][flet.
|
|
2898
|
+
[`SearchBar.bar_hint_text_style`][flet.] in all
|
|
2899
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2906
2900
|
"""
|
|
2907
2901
|
|
|
2908
2902
|
shape: Optional[ControlStateValue[OutlinedBorder]] = None
|
|
2909
2903
|
"""
|
|
2910
2904
|
Overrides the default value of
|
|
2911
|
-
[`SearchBar.bar_shape`][flet.
|
|
2912
|
-
[`SearchBar`][flet.
|
|
2905
|
+
[`SearchBar.bar_shape`][flet.] in all descendant
|
|
2906
|
+
[`SearchBar`][flet.] controls.
|
|
2913
2907
|
"""
|
|
2914
2908
|
|
|
2915
2909
|
padding: Optional[ControlStateValue[PaddingValue]] = None
|
|
2916
2910
|
"""
|
|
2917
2911
|
Overrides the default value of
|
|
2918
|
-
[`SearchBar.bar_padding`][flet.
|
|
2919
|
-
[`SearchBar`][flet.
|
|
2912
|
+
[`SearchBar.bar_padding`][flet.] in all descendant
|
|
2913
|
+
[`SearchBar`][flet.] controls.
|
|
2920
2914
|
"""
|
|
2921
2915
|
|
|
2922
2916
|
size_constraints: Optional[BoxConstraints] = None
|
|
2923
2917
|
"""
|
|
2924
2918
|
Overrides the default value of
|
|
2925
|
-
[`SearchBar.bar_size_constraints`][flet.
|
|
2926
|
-
descendant [`SearchBar`][flet.
|
|
2919
|
+
[`SearchBar.bar_size_constraints`][flet.] in all
|
|
2920
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2927
2921
|
"""
|
|
2928
2922
|
|
|
2929
2923
|
border_side: Optional[ControlStateValue[BorderSide]] = None
|
|
2930
2924
|
"""
|
|
2931
2925
|
Overrides the default value of
|
|
2932
|
-
[`SearchBar.bar_border_side`][flet.
|
|
2933
|
-
descendant [`SearchBar`][flet.
|
|
2926
|
+
[`SearchBar.bar_border_side`][flet.] in all
|
|
2927
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2934
2928
|
"""
|
|
2935
2929
|
|
|
2936
2930
|
|
|
2937
2931
|
@dataclass
|
|
2938
2932
|
class SearchViewTheme:
|
|
2939
2933
|
"""
|
|
2940
|
-
Customizes the appearance of [`SearchBar`][flet.
|
|
2934
|
+
Customizes the appearance of [`SearchBar`][flet.] controls across the
|
|
2941
2935
|
app.
|
|
2942
2936
|
"""
|
|
2943
2937
|
|
|
2944
2938
|
bgcolor: Optional[ColorValue] = None
|
|
2945
2939
|
"""
|
|
2946
2940
|
Overrides the default value of
|
|
2947
|
-
[`SearchBar.view_bgcolor`][flet.
|
|
2948
|
-
[`SearchBar`][flet.
|
|
2941
|
+
[`SearchBar.view_bgcolor`][flet.] in all descendant
|
|
2942
|
+
[`SearchBar`][flet.] controls.
|
|
2949
2943
|
"""
|
|
2950
2944
|
|
|
2951
2945
|
divider_color: Optional[ColorValue] = None
|
|
2952
2946
|
"""
|
|
2953
2947
|
Overrides the default value of
|
|
2954
|
-
[`SearchBar.divider_color`][flet.
|
|
2955
|
-
[`SearchBar`][flet.
|
|
2948
|
+
[`SearchBar.divider_color`][flet.] in all descendant
|
|
2949
|
+
[`SearchBar`][flet.] controls.
|
|
2956
2950
|
"""
|
|
2957
2951
|
|
|
2958
2952
|
elevation: Optional[Number] = None
|
|
2959
2953
|
"""
|
|
2960
2954
|
Overrides the default value of
|
|
2961
|
-
[`SearchBar.view_elevation`][flet.
|
|
2962
|
-
[`SearchBar`][flet.
|
|
2955
|
+
[`SearchBar.view_elevation`][flet.] in all descendant
|
|
2956
|
+
[`SearchBar`][flet.] controls.
|
|
2963
2957
|
"""
|
|
2964
2958
|
|
|
2965
2959
|
header_hint_text_style: Optional[TextStyle] = None
|
|
2966
2960
|
"""
|
|
2967
2961
|
Overrides the default value of
|
|
2968
|
-
[`SearchBar.view_hint_text_style`][flet.
|
|
2969
|
-
descendant [`SearchBar`][flet.
|
|
2962
|
+
[`SearchBar.view_hint_text_style`][flet.] in all
|
|
2963
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2970
2964
|
"""
|
|
2971
2965
|
|
|
2972
2966
|
header_text_style: Optional[TextStyle] = None
|
|
2973
2967
|
"""
|
|
2974
2968
|
Overrides the default value of
|
|
2975
|
-
[`SearchBar.view_header_text_style`][flet.
|
|
2976
|
-
descendant [`SearchBar`][flet.
|
|
2969
|
+
[`SearchBar.view_header_text_style`][flet.] in all
|
|
2970
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2977
2971
|
"""
|
|
2978
2972
|
|
|
2979
2973
|
shape: Optional[OutlinedBorder] = None
|
|
2980
2974
|
"""
|
|
2981
2975
|
Overrides the default value of
|
|
2982
|
-
[`SearchBar.view_shape`][flet.
|
|
2983
|
-
[`SearchBar`][flet.
|
|
2976
|
+
[`SearchBar.view_shape`][flet.] in all descendant
|
|
2977
|
+
[`SearchBar`][flet.] controls.
|
|
2984
2978
|
"""
|
|
2985
2979
|
|
|
2986
2980
|
border_side: Optional[BorderSide] = None
|
|
2987
2981
|
""" Overrides the default value of
|
|
2988
|
-
[`SearchBar.view_side`][flet.
|
|
2989
|
-
descendant [`SearchBar`][flet.
|
|
2982
|
+
[`SearchBar.view_side`][flet.] in all
|
|
2983
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2990
2984
|
"""
|
|
2991
2985
|
|
|
2992
2986
|
size_constraints: Optional[BoxConstraints] = None
|
|
2993
2987
|
"""
|
|
2994
2988
|
Overrides the default value of
|
|
2995
|
-
[`SearchBar.view_size_constraints`][flet.
|
|
2996
|
-
descendant [`SearchBar`][flet.
|
|
2989
|
+
[`SearchBar.view_size_constraints`][flet.] in all
|
|
2990
|
+
descendant [`SearchBar`][flet.] controls.
|
|
2997
2991
|
"""
|
|
2998
2992
|
|
|
2999
2993
|
header_height: Optional[Number] = None
|
|
3000
2994
|
"""
|
|
3001
2995
|
Overrides the default value of
|
|
3002
|
-
[`SearchBar.view_header_height`][flet.
|
|
3003
|
-
descendant [`SearchBar`][flet.
|
|
2996
|
+
[`SearchBar.view_header_height`][flet.] in all
|
|
2997
|
+
descendant [`SearchBar`][flet.] controls.
|
|
3004
2998
|
"""
|
|
3005
2999
|
|
|
3006
3000
|
padding: Optional[PaddingValue] = None
|
|
3007
3001
|
"""
|
|
3008
3002
|
Overrides the default value of
|
|
3009
|
-
[`SearchBar.view_padding`][flet.
|
|
3010
|
-
[`SearchBar`][flet.
|
|
3003
|
+
[`SearchBar.view_padding`][flet.] in all descendant
|
|
3004
|
+
[`SearchBar`][flet.] controls.
|
|
3011
3005
|
"""
|
|
3012
3006
|
|
|
3013
3007
|
bar_padding: Optional[PaddingValue] = None
|
|
3014
3008
|
"""
|
|
3015
3009
|
Overrides the default value of
|
|
3016
|
-
[`SearchBar.view_bar_padding`][flet.
|
|
3017
|
-
[`SearchBar`][flet.
|
|
3010
|
+
[`SearchBar.view_bar_padding`][flet.] in all descendant
|
|
3011
|
+
[`SearchBar`][flet.] controls.
|
|
3018
3012
|
"""
|
|
3019
3013
|
|
|
3020
3014
|
shrink_wrap: Optional[bool] = None
|
|
3021
3015
|
"""
|
|
3022
3016
|
Overrides the default value of
|
|
3023
|
-
[`SearchBar.shrink_wrap`][flet.
|
|
3024
|
-
[`SearchBar`][flet.
|
|
3017
|
+
[`SearchBar.shrink_wrap`][flet.] in all descendant
|
|
3018
|
+
[`SearchBar`][flet.] controls.
|
|
3025
3019
|
"""
|
|
3026
3020
|
|
|
3027
3021
|
|
|
3028
3022
|
@dataclass
|
|
3029
3023
|
class NavigationDrawerTheme:
|
|
3030
3024
|
"""
|
|
3031
|
-
Customizes the appearance of descendant [`NavigationDrawer`][flet.
|
|
3025
|
+
Customizes the appearance of descendant [`NavigationDrawer`][flet.]
|
|
3032
3026
|
controls.
|
|
3033
3027
|
"""
|
|
3034
3028
|
|
|
3035
3029
|
bgcolor: Optional[ColorValue] = None
|
|
3036
3030
|
"""
|
|
3037
3031
|
Overrides the default value for
|
|
3038
|
-
[`NavigationDrawer.bgcolor`][flet.
|
|
3032
|
+
[`NavigationDrawer.bgcolor`][flet.].
|
|
3039
3033
|
"""
|
|
3040
3034
|
|
|
3041
3035
|
shadow_color: Optional[ColorValue] = None
|
|
3042
3036
|
"""
|
|
3043
3037
|
Overrides the default value for
|
|
3044
|
-
[`NavigationDrawer.shadow_color`][flet.
|
|
3038
|
+
[`NavigationDrawer.shadow_color`][flet.].
|
|
3045
3039
|
"""
|
|
3046
3040
|
|
|
3047
3041
|
indicator_color: Optional[ColorValue] = None
|
|
3048
3042
|
"""
|
|
3049
3043
|
Overrides the default value for
|
|
3050
|
-
[`NavigationDrawer.indicator_color`][flet.
|
|
3044
|
+
[`NavigationDrawer.indicator_color`][flet.].
|
|
3051
3045
|
"""
|
|
3052
3046
|
|
|
3053
3047
|
elevation: Optional[Number] = None
|
|
3054
3048
|
"""
|
|
3055
3049
|
Overrides the default value for
|
|
3056
|
-
[`NavigationDrawer.elevation`][flet.
|
|
3050
|
+
[`NavigationDrawer.elevation`][flet.].
|
|
3057
3051
|
"""
|
|
3058
3052
|
|
|
3059
3053
|
tile_height: Optional[Number] = None
|
|
3060
3054
|
"""
|
|
3061
3055
|
Overrides the default height of
|
|
3062
|
-
[`NavigationDrawerDestination`][flet.
|
|
3056
|
+
[`NavigationDrawerDestination`][flet.].
|
|
3063
3057
|
"""
|
|
3064
3058
|
|
|
3065
3059
|
label_text_style: Optional[ControlStateValue[TextStyle]] = None
|
|
3066
3060
|
"""
|
|
3067
3061
|
The style to merge with the default text style for
|
|
3068
|
-
[`NavigationDrawerDestination`][flet.
|
|
3062
|
+
[`NavigationDrawerDestination`][flet.] labels.
|
|
3069
3063
|
"""
|
|
3070
3064
|
|
|
3071
3065
|
indicator_shape: Optional[OutlinedBorder] = None
|
|
3072
3066
|
"""
|
|
3073
3067
|
Overrides the default value for
|
|
3074
|
-
[`NavigationDrawer.indicator_shape`][flet.
|
|
3068
|
+
[`NavigationDrawer.indicator_shape`][flet.].
|
|
3075
3069
|
"""
|
|
3076
3070
|
|
|
3077
3071
|
indicator_size: Optional[Size] = None
|
|
3078
3072
|
"""
|
|
3079
|
-
Overrides the default size of the [`NavigationDrawer`][flet.
|
|
3073
|
+
Overrides the default size of the [`NavigationDrawer`][flet.]'s
|
|
3080
3074
|
selection indicator.
|
|
3081
3075
|
"""
|
|
3082
3076
|
|
|
@@ -3084,38 +3078,38 @@ class NavigationDrawerTheme:
|
|
|
3084
3078
|
@dataclass
|
|
3085
3079
|
class NavigationBarTheme:
|
|
3086
3080
|
"""
|
|
3087
|
-
Customizes the appearance of [`NavigationBar`][flet.
|
|
3081
|
+
Customizes the appearance of [`NavigationBar`][flet.]
|
|
3088
3082
|
controls across the
|
|
3089
3083
|
app.
|
|
3090
3084
|
"""
|
|
3091
3085
|
|
|
3092
3086
|
bgcolor: Optional[ColorValue] = None
|
|
3093
3087
|
"""Overrides the default value for
|
|
3094
|
-
[`NavigationBar.bgcolor`][flet.
|
|
3088
|
+
[`NavigationBar.bgcolor`][flet.].
|
|
3095
3089
|
"""
|
|
3096
3090
|
|
|
3097
3091
|
shadow_color: Optional[ColorValue] = None
|
|
3098
3092
|
"""
|
|
3099
3093
|
Overrides the default value for
|
|
3100
|
-
[`NavigationBar.shadow_color`][flet.
|
|
3094
|
+
[`NavigationBar.shadow_color`][flet.].
|
|
3101
3095
|
"""
|
|
3102
3096
|
|
|
3103
3097
|
indicator_color: Optional[ColorValue] = None
|
|
3104
3098
|
"""
|
|
3105
3099
|
Overrides the default value for
|
|
3106
|
-
[`NavigationBar.indicator_color`][flet.
|
|
3100
|
+
[`NavigationBar.indicator_color`][flet.].
|
|
3107
3101
|
"""
|
|
3108
3102
|
|
|
3109
3103
|
overlay_color: Optional[ControlStateValue[ColorValue]] = None
|
|
3110
3104
|
"""
|
|
3111
3105
|
Overrides the default value for
|
|
3112
|
-
[`NavigationBar.overlay_color`][flet.
|
|
3106
|
+
[`NavigationBar.overlay_color`][flet.].
|
|
3113
3107
|
"""
|
|
3114
3108
|
|
|
3115
3109
|
elevation: Optional[Number] = None
|
|
3116
3110
|
"""
|
|
3117
3111
|
Overrides the default value for
|
|
3118
|
-
[`NavigationBar.elevation`][flet.
|
|
3112
|
+
[`NavigationBar.elevation`][flet.].
|
|
3119
3113
|
"""
|
|
3120
3114
|
|
|
3121
3115
|
height: Optional[Number] = None
|
|
@@ -3126,68 +3120,68 @@ class NavigationBarTheme:
|
|
|
3126
3120
|
label_text_style: Optional[ControlStateValue[TextStyle]] = None
|
|
3127
3121
|
"""
|
|
3128
3122
|
The style to merge with the default text style for
|
|
3129
|
-
[`NavigationBarDestination`][flet.
|
|
3123
|
+
[`NavigationBarDestination`][flet.] labels.
|
|
3130
3124
|
"""
|
|
3131
3125
|
|
|
3132
3126
|
indicator_shape: Optional[OutlinedBorder] = None
|
|
3133
3127
|
"""
|
|
3134
3128
|
Overrides the default value for
|
|
3135
|
-
[`NavigationBar.indicator_shape`][flet.
|
|
3129
|
+
[`NavigationBar.indicator_shape`][flet.].
|
|
3136
3130
|
"""
|
|
3137
3131
|
|
|
3138
3132
|
label_behavior: Optional[NavigationBarLabelBehavior] = None
|
|
3139
3133
|
"""
|
|
3140
3134
|
Overrides the default value for
|
|
3141
|
-
[`NavigationBar.label_behavior`][flet.
|
|
3135
|
+
[`NavigationBar.label_behavior`][flet.].
|
|
3142
3136
|
"""
|
|
3143
3137
|
|
|
3144
3138
|
label_padding: Optional[PaddingValue] = None
|
|
3145
3139
|
"""
|
|
3146
3140
|
Overrides the default value for
|
|
3147
|
-
[`NavigationBar.label_padding`][flet.
|
|
3141
|
+
[`NavigationBar.label_padding`][flet.].
|
|
3148
3142
|
"""
|
|
3149
3143
|
|
|
3150
3144
|
|
|
3151
3145
|
@dataclass
|
|
3152
3146
|
class SegmentedButtonTheme:
|
|
3153
3147
|
"""
|
|
3154
|
-
Customizes the appearance of [`SegmentedButton`][flet.
|
|
3148
|
+
Customizes the appearance of [`SegmentedButton`][flet.]
|
|
3155
3149
|
controls across the app.
|
|
3156
3150
|
"""
|
|
3157
3151
|
|
|
3158
3152
|
selected_icon: Optional[IconData] = None
|
|
3159
3153
|
"""
|
|
3160
3154
|
Overrides the default value for
|
|
3161
|
-
[`SegmentedButton.selected_icon`][flet.
|
|
3155
|
+
[`SegmentedButton.selected_icon`][flet.].
|
|
3162
3156
|
"""
|
|
3163
3157
|
|
|
3164
3158
|
style: Optional[ButtonStyle] = None
|
|
3165
3159
|
"""
|
|
3166
3160
|
Overrides the default value for
|
|
3167
|
-
[`SegmentedButton.style`][flet.
|
|
3161
|
+
[`SegmentedButton.style`][flet.].
|
|
3168
3162
|
"""
|
|
3169
3163
|
|
|
3170
3164
|
|
|
3171
3165
|
@dataclass
|
|
3172
3166
|
class IconTheme:
|
|
3173
3167
|
"""
|
|
3174
|
-
Customizes the appearance of [`Icon`][flet.
|
|
3168
|
+
Customizes the appearance of [`Icon`][flet.] controls across the app.
|
|
3175
3169
|
"""
|
|
3176
3170
|
|
|
3177
3171
|
color: Optional[ColorValue] = None
|
|
3178
3172
|
"""
|
|
3179
|
-
Overrides the default value for [`Icon.color`][flet.
|
|
3173
|
+
Overrides the default value for [`Icon.color`][flet.].
|
|
3180
3174
|
"""
|
|
3181
3175
|
|
|
3182
3176
|
apply_text_scaling: Optional[bool] = None
|
|
3183
3177
|
"""
|
|
3184
3178
|
Overrides the default value for
|
|
3185
|
-
[`Icon.apply_text_scaling`][flet.
|
|
3179
|
+
[`Icon.apply_text_scaling`][flet.].
|
|
3186
3180
|
"""
|
|
3187
3181
|
|
|
3188
3182
|
fill: Optional[Number] = None
|
|
3189
3183
|
"""
|
|
3190
|
-
Overrides the default value for [`Icon.fill`][flet.
|
|
3184
|
+
Overrides the default value for [`Icon.fill`][flet.].
|
|
3191
3185
|
"""
|
|
3192
3186
|
|
|
3193
3187
|
opacity: Optional[Number] = None
|
|
@@ -3197,122 +3191,122 @@ class IconTheme:
|
|
|
3197
3191
|
|
|
3198
3192
|
size: Optional[Number] = None
|
|
3199
3193
|
"""
|
|
3200
|
-
Overrides the default value for [`Icon.size`][flet.
|
|
3194
|
+
Overrides the default value for [`Icon.size`][flet.].
|
|
3201
3195
|
"""
|
|
3202
3196
|
|
|
3203
3197
|
optical_size: Optional[Number] = None
|
|
3204
3198
|
"""
|
|
3205
|
-
Overrides the default value for [`Icon.optical_size`][flet.
|
|
3199
|
+
Overrides the default value for [`Icon.optical_size`][flet.].
|
|
3206
3200
|
"""
|
|
3207
3201
|
|
|
3208
3202
|
grade: Optional[Number] = None
|
|
3209
3203
|
"""
|
|
3210
|
-
Overrides the default value for [`Icon.grade`][flet.
|
|
3204
|
+
Overrides the default value for [`Icon.grade`][flet.].
|
|
3211
3205
|
"""
|
|
3212
3206
|
|
|
3213
3207
|
weight: Optional[Number] = None
|
|
3214
3208
|
"""
|
|
3215
|
-
Overrides the default value for [`Icon.weight`][flet.
|
|
3209
|
+
Overrides the default value for [`Icon.weight`][flet.].
|
|
3216
3210
|
"""
|
|
3217
3211
|
|
|
3218
3212
|
shadows: Optional[BoxShadowValue] = None
|
|
3219
3213
|
"""
|
|
3220
|
-
Overrides the default value for [`Icon.shadows`][flet.
|
|
3214
|
+
Overrides the default value for [`Icon.shadows`][flet.].
|
|
3221
3215
|
"""
|
|
3222
3216
|
|
|
3223
3217
|
|
|
3224
3218
|
@dataclass
|
|
3225
3219
|
class DataTableTheme:
|
|
3226
3220
|
"""
|
|
3227
|
-
Customizes the appearance of [`DataTable`][flet.
|
|
3221
|
+
Customizes the appearance of [`DataTable`][flet.] controls across the app.
|
|
3228
3222
|
"""
|
|
3229
3223
|
|
|
3230
3224
|
checkbox_horizontal_margin: Optional[Number] = None
|
|
3231
3225
|
"""
|
|
3232
3226
|
Overrides the default value for
|
|
3233
|
-
[`DataTable.checkbox_horizontal_margin`][flet.
|
|
3227
|
+
[`DataTable.checkbox_horizontal_margin`][flet.].
|
|
3234
3228
|
"""
|
|
3235
3229
|
|
|
3236
3230
|
column_spacing: Optional[Number] = None
|
|
3237
3231
|
"""
|
|
3238
3232
|
Overrides the default value for
|
|
3239
|
-
[`DataTable.column_spacing`][flet.
|
|
3233
|
+
[`DataTable.column_spacing`][flet.].
|
|
3240
3234
|
"""
|
|
3241
3235
|
|
|
3242
3236
|
data_row_max_height: Optional[Number] = None
|
|
3243
3237
|
"""
|
|
3244
3238
|
Overrides the default value for
|
|
3245
|
-
[`DataTable.data_row_max_height`][flet.
|
|
3239
|
+
[`DataTable.data_row_max_height`][flet.].
|
|
3246
3240
|
"""
|
|
3247
3241
|
|
|
3248
3242
|
data_row_min_height: Optional[Number] = None
|
|
3249
3243
|
"""
|
|
3250
3244
|
Overrides the default value for
|
|
3251
|
-
[`DataTable.data_row_min_height`][flet.
|
|
3245
|
+
[`DataTable.data_row_min_height`][flet.].
|
|
3252
3246
|
"""
|
|
3253
3247
|
|
|
3254
3248
|
data_row_color: Optional[ControlStateValue[ColorValue]] = None
|
|
3255
3249
|
"""
|
|
3256
3250
|
Overrides the default value for
|
|
3257
|
-
[`DataTable.data_row_color`][flet.
|
|
3251
|
+
[`DataTable.data_row_color`][flet.].
|
|
3258
3252
|
"""
|
|
3259
3253
|
|
|
3260
3254
|
data_text_style: Optional[TextStyle] = None
|
|
3261
3255
|
"""
|
|
3262
3256
|
Overrides the default value for
|
|
3263
|
-
[`DataTable.data_text_style`][flet.
|
|
3257
|
+
[`DataTable.data_text_style`][flet.].
|
|
3264
3258
|
"""
|
|
3265
3259
|
|
|
3266
3260
|
divider_thickness: Optional[Number] = None
|
|
3267
3261
|
"""
|
|
3268
3262
|
Overrides the default value for
|
|
3269
|
-
[`DataTable.divider_thickness`][flet.
|
|
3263
|
+
[`DataTable.divider_thickness`][flet.].
|
|
3270
3264
|
"""
|
|
3271
3265
|
|
|
3272
3266
|
horizontal_margin: Optional[Number] = None
|
|
3273
3267
|
"""
|
|
3274
3268
|
Overrides the default value for
|
|
3275
|
-
[`DataTable.horizontal_margin`][flet.
|
|
3269
|
+
[`DataTable.horizontal_margin`][flet.].
|
|
3276
3270
|
"""
|
|
3277
3271
|
|
|
3278
3272
|
heading_text_style: Optional[TextStyle] = None
|
|
3279
3273
|
"""
|
|
3280
3274
|
Overrides the default value for
|
|
3281
|
-
[`DataTable.heading_text_style`][flet.
|
|
3275
|
+
[`DataTable.heading_text_style`][flet.].
|
|
3282
3276
|
"""
|
|
3283
3277
|
|
|
3284
3278
|
heading_row_color: Optional[ControlStateValue[ColorValue]] = None
|
|
3285
3279
|
"""
|
|
3286
3280
|
Overrides the default value for
|
|
3287
|
-
[`DataTable.heading_row_color`][flet.
|
|
3281
|
+
[`DataTable.heading_row_color`][flet.].
|
|
3288
3282
|
"""
|
|
3289
3283
|
|
|
3290
3284
|
heading_row_height: Optional[Number] = None
|
|
3291
3285
|
"""
|
|
3292
3286
|
Overrides the default value for
|
|
3293
|
-
[`DataTable.heading_row_height`][flet.
|
|
3287
|
+
[`DataTable.heading_row_height`][flet.].
|
|
3294
3288
|
"""
|
|
3295
3289
|
|
|
3296
3290
|
data_row_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
3297
3291
|
"""
|
|
3298
|
-
Overrides the default value for [`DataRow`][flet.
|
|
3292
|
+
Overrides the default value for [`DataRow`][flet.] mouse cursor.
|
|
3299
3293
|
"""
|
|
3300
3294
|
|
|
3301
3295
|
decoration: Optional[BoxDecoration] = None
|
|
3302
3296
|
"""
|
|
3303
|
-
Overrides the default value for [`DataTable`][flet.
|
|
3297
|
+
Overrides the default value for [`DataTable`][flet.] decoration.
|
|
3304
3298
|
"""
|
|
3305
3299
|
|
|
3306
3300
|
heading_row_alignment: Optional[MainAxisAlignment] = None
|
|
3307
3301
|
"""
|
|
3308
3302
|
Overrides the default value for
|
|
3309
|
-
[`DataColumn.heading_row_alignment`][flet.
|
|
3303
|
+
[`DataColumn.heading_row_alignment`][flet.].
|
|
3310
3304
|
"""
|
|
3311
3305
|
|
|
3312
3306
|
heading_cell_cursor: Optional[ControlStateValue[MouseCursor]] = None
|
|
3313
3307
|
"""
|
|
3314
3308
|
Overrides the default value for
|
|
3315
|
-
[`DataColumn`][flet.
|
|
3309
|
+
[`DataColumn`][flet.] mouse cursor.
|
|
3316
3310
|
"""
|
|
3317
3311
|
|
|
3318
3312
|
|
|
@@ -3325,7 +3319,7 @@ class Theme:
|
|
|
3325
3319
|
color_scheme_seed: Optional[ColorValue] = None
|
|
3326
3320
|
"""
|
|
3327
3321
|
Overrides the default color scheme seed used to generate
|
|
3328
|
-
[`ColorScheme`][flet.
|
|
3322
|
+
[`ColorScheme`][flet.]. The default color is blue.
|
|
3329
3323
|
"""
|
|
3330
3324
|
|
|
3331
3325
|
font_family: Optional[str] = None
|
|
@@ -3339,78 +3333,86 @@ class Theme:
|
|
|
3339
3333
|
checkbox_theme: Optional[CheckboxTheme] = None
|
|
3340
3334
|
chip_theme: Optional[ChipTheme] = None
|
|
3341
3335
|
"""
|
|
3342
|
-
Customizes the appearance of [`Chip`][flet.
|
|
3336
|
+
Customizes the appearance of [`Chip`][flet.] across the app.
|
|
3343
3337
|
"""
|
|
3344
3338
|
|
|
3345
3339
|
color_scheme: Optional[ColorScheme] = None
|
|
3346
3340
|
"""
|
|
3347
|
-
Overrides the default [`ColorScheme`][flet.
|
|
3341
|
+
Overrides the default [`ColorScheme`][flet.] used for the application.
|
|
3348
3342
|
"""
|
|
3349
3343
|
|
|
3350
3344
|
data_table_theme: Optional[DataTableTheme] = None
|
|
3345
|
+
"""
|
|
3346
|
+
Customizes the appearance of [`DataTable`][flet.DataTable] across the app.
|
|
3347
|
+
"""
|
|
3348
|
+
|
|
3351
3349
|
date_picker_theme: Optional[DatePickerTheme] = None
|
|
3350
|
+
"""
|
|
3351
|
+
Customizes the appearance of [`DatePicker`][flet.DatePicker] across the app.
|
|
3352
|
+
"""
|
|
3353
|
+
|
|
3352
3354
|
dialog_theme: Optional[DialogTheme] = None
|
|
3353
3355
|
"""
|
|
3354
|
-
Customizes the appearance of [`AlertDialog`][flet.
|
|
3356
|
+
Customizes the appearance of [`AlertDialog`][flet.] across the app.
|
|
3355
3357
|
"""
|
|
3356
3358
|
|
|
3357
3359
|
divider_theme: Optional[DividerTheme] = None
|
|
3358
3360
|
"""
|
|
3359
|
-
Defines the visual properties of [`Divider`][flet.
|
|
3360
|
-
[`VerticalDivider`][flet.
|
|
3361
|
-
[`ListTile`][flet.
|
|
3362
|
-
[`DataTable`][flet.
|
|
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.].
|
|
3363
3365
|
"""
|
|
3364
3366
|
|
|
3365
3367
|
dropdown_theme: Optional[DropdownTheme] = None
|
|
3366
3368
|
"""
|
|
3367
|
-
Customizes the appearance of [`Dropdown`][flet.
|
|
3369
|
+
Customizes the appearance of [`Dropdown`][flet.] across the app.
|
|
3368
3370
|
"""
|
|
3369
3371
|
|
|
3370
3372
|
button_theme: Optional[ButtonTheme] = None
|
|
3371
3373
|
"""
|
|
3372
|
-
Customizes the appearance of [`Button`][flet.
|
|
3374
|
+
Customizes the appearance of [`Button`][flet.] across the app.
|
|
3373
3375
|
"""
|
|
3374
3376
|
|
|
3375
3377
|
outlined_button_theme: Optional[OutlinedButtonTheme] = None
|
|
3376
3378
|
"""
|
|
3377
|
-
Customizes the appearance of [`OutlinedButton`][flet.
|
|
3379
|
+
Customizes the appearance of [`OutlinedButton`][flet.] across the app.
|
|
3378
3380
|
"""
|
|
3379
3381
|
|
|
3380
3382
|
text_button_theme: Optional[TextButtonTheme] = None
|
|
3381
3383
|
"""
|
|
3382
|
-
Customizes the appearance of [`TextButton`][flet.
|
|
3384
|
+
Customizes the appearance of [`TextButton`][flet.] across the app.
|
|
3383
3385
|
"""
|
|
3384
3386
|
|
|
3385
3387
|
filled_button_theme: Optional[FilledButtonTheme] = None
|
|
3386
3388
|
"""
|
|
3387
|
-
Customizes the appearance of [`FilledButton`][flet.
|
|
3389
|
+
Customizes the appearance of [`FilledButton`][flet.] across the app.
|
|
3388
3390
|
"""
|
|
3389
3391
|
|
|
3390
3392
|
icon_button_theme: Optional[IconButtonTheme] = None
|
|
3391
3393
|
"""
|
|
3392
|
-
Customizes the appearance of [`IconButton`][flet.
|
|
3394
|
+
Customizes the appearance of [`IconButton`][flet.] across the app.
|
|
3393
3395
|
"""
|
|
3394
3396
|
|
|
3395
3397
|
expansion_tile_theme: Optional[ExpansionTileTheme] = None
|
|
3396
3398
|
"""
|
|
3397
|
-
Customizes the appearance of [`ExpansionTile`][flet.
|
|
3399
|
+
Customizes the appearance of [`ExpansionTile`][flet.] across the app.
|
|
3398
3400
|
"""
|
|
3399
3401
|
|
|
3400
3402
|
floating_action_button_theme: Optional[FloatingActionButtonTheme] = None
|
|
3401
3403
|
"""
|
|
3402
|
-
Customizes the appearance of [`FloatingActionButton`][flet.
|
|
3404
|
+
Customizes the appearance of [`FloatingActionButton`][flet.]
|
|
3403
3405
|
across the app.
|
|
3404
3406
|
"""
|
|
3405
3407
|
|
|
3406
3408
|
icon_theme: Optional[IconTheme] = None
|
|
3407
3409
|
"""
|
|
3408
|
-
Customizes the appearance of [`Icon`][flet.
|
|
3410
|
+
Customizes the appearance of [`Icon`][flet.] across the app.
|
|
3409
3411
|
"""
|
|
3410
3412
|
|
|
3411
3413
|
list_tile_theme: Optional[ListTileTheme] = None
|
|
3412
3414
|
"""
|
|
3413
|
-
Customizes the appearance of [`ListTile`][flet.
|
|
3415
|
+
Customizes the appearance of [`ListTile`][flet.] across the app.
|
|
3414
3416
|
"""
|
|
3415
3417
|
|
|
3416
3418
|
navigation_bar_theme: Optional[NavigationBarTheme] = None
|