Commit 48044f9
Images and code for Control descriptions (#5691)
* Update checkbox docs and tests to use PNG images
Replaced GIF images with PNGs in checkbox documentation and updated references accordingly. Added new PNG screenshot for handling events. Refactored test functions in button and checkbox integration tests to use function-scoped fixtures and renamed parameters for clarity. Commented out handling_events test in checkbox tests.
* Add Card integration tests and update docs
Introduced integration tests for the Card control with golden images for documentation. Updated Card and Checkbox docstrings with code examples, improved Card documentation to use new screenshots, and made music_info.py executable as a script.
* Update Card example and test with ListTile content
Replaces the Card example and integration test to use a ListTile with icon and title, updates styling properties, and refreshes the golden image for documentation. This improves the demonstration of Card usage and aligns the test with the new example.
* Enable and test checkbox event handling in integration tests
Uncommented and activated the test for checkbox event handling in test_checkbox.py, updated the golden screenshot for event handling, and ensured the test app pumps and settles after app initialization for more reliable UI state in tests.
* Update checkbox example and docs with submit action
Refactored the checkbox example to improve message formatting and updated the documentation images with captions reflecting the state after clicking Submit. Integration test now simulates clicking the Submit button before taking a screenshot to match the updated documentation.
* Update TextField docs and add integration test
Updated the TextField documentation to use a new example image and clarified image paths. Added a screenshot integration test and corresponding image for documentation purposes. Also included a code example in the TextField class docstring for better usage clarity.
* Update Text control docs and add integration test
Updated the Text control documentation to use a new example image and clarified image/media paths. Added a code example to the Text class docstring. Introduced an integration test and corresponding golden image for the Text control.
* Update Chip docs and add integration test
Updated chip.md to improve example image references and captions. Added a new screenshot image and integration test for Chip control. Enhanced Chip class docstring with a code example.
* Update CircleAvatar docs and add integration test
Improved documentation for CircleAvatar by updating example images and captions, and added a code example to the class docstring. Introduced an integration test and corresponding golden image for CircleAvatar to ensure visual correctness.
* Update Column docs and add integration test
Updated the Column documentation to use a new example image and clarified image/media paths. Added an integration test and golden image for the Column control. Improved the Column class docstring with a code example for better clarity.
* Update CupertinoButton docs and add integration test
Updated documentation for CupertinoButton to include a new example image and improved example references. Added an integration test and golden image for documentation purposes. Also included a code snippet in the class docstring for better usage clarity.
* Add docs and tests for CupertinoCheckbox
Updated CupertinoCheckbox documentation with new example image and code snippet. Added integration test and golden image for documentation purposes.
* Add example and test for CupertinoFilledButton
Updated documentation to include a basic usage example and image for CupertinoFilledButton. Added an integration test to generate the screenshot used in docs, and included the corresponding golden image. Minor doc improvements for clarity.
* Add CupertinoRadio example and integration test
Updated documentation to include a new example image and code snippet for CupertinoRadio. Added an integration test to generate the example screenshot and included the corresponding image file.
* Add example and test for CupertinoSegmentedButton
Updated documentation to include a code example and image for CupertinoSegmentedButton. Added a screenshot test and corresponding golden image for integration testing.
* Add example and test for CupertinoSlider docs
Updated CupertinoSlider documentation to include a new example image and code snippet. Added a screenshot test and image for documentation purposes, and improved image/media references in the markdown file.
* Add example and test for CupertinoSlidingSegmentedButton
Updated documentation to include a screenshot and code example for CupertinoSlidingSegmentedButton. Added an integration test to generate the image used in docs and improved doc references to example images and media.
* Add example and test for CupertinoSwitch control
Updated documentation for CupertinoSwitch to include a new example image and code snippet. Added a golden image and integration test for the control to improve test coverage and documentation clarity.
* Add example and test for CupertinoTextField docs
Updated CupertinoTextField documentation to include a new example image and code snippet. Added a golden image and integration test to verify the visual appearance of the control. Minor doc improvements for clarity.
* Add example and test for CupertinoTintedButton
Updated documentation for CupertinoTintedButton to include a usage example and image. Added an integration test and corresponding golden image for the button. Enhanced docstring with a code snippet for clarity.
* Add example and test for CupertinoListTile
Updated documentation for CupertinoListTile to include a new example image and code snippet. Added an integration test to generate the example screenshot and included the corresponding image file for documentation purposes.
* Add DataTable doc image and example test
Added a screenshot image for DataTable documentation and an integration test to generate it. Updated documentation to reference the new image and improved example references. Also included a code example in the DataTable class docstring.
* Add Divider control example and integration test
Updated Divider documentation to include a new example image and code snippet. Added an integration test for the Divider control and included a corresponding golden image for screenshot comparison.
* Add example and test for Dropdown control
Updated Dropdown documentation to include a new example image and code snippet. Added a screenshot test for the Dropdown control and included the corresponding golden image. Improved clarity and demonstration of basic Dropdown usage.
* Update DropdownM2 docs and add integration test
Updated the DropdownM2 documentation to use a new example image and clarified image/media paths. Added a screenshot integration test and example image for documentation. Included a basic usage example in the DropdownM2 class docstring.
* Add ExpansionPanel example and test
Updated ExpansionPanel documentation to include a code example and image. Added a screenshot test and golden image for ExpansionPanel to integration tests. The example demonstrates basic usage with two panels, one expanded by default.
* Add ExpansionPanelList doc image and test
Added a screenshot image and integration test for ExpansionPanelList documentation. Updated the markdown to reference the new image and improved the example code in the class docstring.
* Add ExpansionTile example and test image
Updated ExpansionTile documentation to include a new example image and code snippet. Added a screenshot test and image for documentation purposes, and adjusted image references in the docs for clarity.
* Update FilledButton docs and add integration test
Improved FilledButton documentation with updated example images and a new screenshot for docs. Added an integration test for FilledButton and included a code example in the class docstring.
* Add FilledIconButton example and integration test
Updated documentation for FilledIconButton with a new example image and code snippet. Added an integration test and corresponding golden image for visual regression testing.
* Add screenshot test and update FilledTonalButton docs
Added a screenshot test and image for FilledTonalButton in integration tests. Updated documentation to reference the new image and improved example references. Also included a code snippet in the FilledTonalButton class docstring.
* Add FilledTonalIconButton example and test
Updated documentation for FilledTonalIconButton with a new example image and code snippet. Added an integration test and corresponding golden image for the example.
* Refactor text style and value handling in DropdownM2
Improves text style logic by separating font size, color, and focused color handling for clarity and correctness. Replaces 'value' with 'initialValue' in DropdownButtonFormField to match updated API usage.
* Add FloatingActionButton doc image and test
Updated documentation for FloatingActionButton to include a new example image and code snippet. Added a screenshot test and corresponding image for documentation purposes.
* Update dropdown material test image
Replaces the golden image for the macOS dropdown material integration test to reflect updated UI or documentation requirements.
* Add GridView example and integration test
Updated GridView documentation to include a new example image and code snippet. Added an integration test for GridView and the corresponding golden image for screenshot testing.
* Update Icon docs and add integration test
Improves the Icon documentation with a new example image and code snippet. Adds an integration test and corresponding golden image for the Icon control to verify its appearance.
* Add example and test for IconButton documentation
Updated IconButton documentation to include a new example image and code snippet. Added a screenshot test and corresponding image for documentation purposes.
* Add image example and update documentation
Added a new image example and corresponding assets for documentation and integration tests. Updated image.md to reference new example images and included a code snippet in image.py for clarity.
* Enable image tests and update golden images
Re-enabled previously skipped image and image_base64 integration tests by removing skip decorators. Updated macOS golden images and added pump_times and pump_duration parameters to improve test reliability.
* Update image test to use online image source
Removed local sample_image.jpg and updated test_image.py to use an online image for testing. Adjusted image properties and screenshot parameters for improved reliability. Updated golden image to reflect new test output.
* Update Image control example in docstring
Revised the example in the Image control docstring to use a remote image URL, adjusted width and height to 100, and added the fit property for clarity.
* Add ListTile doc image and example test
Added a new screenshot image for ListTile documentation and an integration test to generate it. Updated the ListTile documentation to reference the new image and improved the example section. Also included a code snippet in the ListTile class docstring for clarity.
---------
Co-authored-by: Feodor Fitsner <[email protected]>1 parent f5e1581 commit 48044f9
File tree
149 files changed
+1178
-174
lines changed- client
- packages/flet/lib/src/controls
- sdk/python
- examples/controls
- card
- checkbox
- packages/flet
- docs/controls
- datatable
- dropdown
- integration_tests
- controls/core
- golden/macos/image
- examples
- cupertino
- golden/macos
- cupertino_button
- cupertino_checkbox
- cupertino_filled_button
- cupertino_list_tile
- cupertino_radio
- cupertino_segmented_button
- cupertino_slider
- cupertino_sliding_segmented_button
- cupertino_switch
- cupertino_textfield
- cupertino_tinted_button
- material
- golden/macos
- card
- checkbox
- chip
- circle_avatar
- column
- datatable
- divider
- dropdown_m2
- dropdown
- expansion_panel_list
- expansion_panel
- expansion_tile
- filled_button
- filled_icon_button
- filled_tonal_button
- filled_tonal_icon_button
- floating_action_button
- grid_view
- icon_button
- icon
- image
- list_tile
- textfield
- text
- src/flet
- controls
- core
- cupertino
- material
- testing
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
149 files changed
+1178
-174
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
685 | | - | |
| 685 | + | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
| 688 | + | |
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
| 733 | + | |
734 | 734 | | |
735 | 735 | | |
736 | | - | |
| 736 | + | |
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
741 | | - | |
| 741 | + | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
| 744 | + | |
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
| |||
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
789 | | - | |
| 789 | + | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
| 792 | + | |
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| |||
1026 | 1026 | | |
1027 | 1027 | | |
1028 | 1028 | | |
1029 | | - | |
| 1029 | + | |
1030 | 1030 | | |
1031 | 1031 | | |
1032 | | - | |
| 1032 | + | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | | - | |
| 1037 | + | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | | - | |
| 1040 | + | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | 1043 | | |
| |||
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
1053 | | - | |
| 1053 | + | |
1054 | 1054 | | |
1055 | 1055 | | |
1056 | | - | |
| 1056 | + | |
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | | - | |
76 | | - | |
77 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
78 | 90 | | |
79 | 91 | | |
80 | 92 | | |
| |||
113 | 125 | | |
114 | 126 | | |
115 | 127 | | |
116 | | - | |
| 128 | + | |
117 | 129 | | |
118 | 130 | | |
119 | 131 | | |
| |||
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
0 commit comments