Skip to content

Commit e4b928c

Browse files
authored
fix: Various typos (#5698)
* python examples * python packages * others
1 parent f6ceea6 commit e4b928c

File tree

29 files changed

+47
-47
lines changed

29 files changed

+47
-47
lines changed

.github/scripts/patch_toml_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# ///
44

55
"""
6-
Patchs a TOML file (e.g. pyproject.toml) to:
6+
Patches a TOML file (e.g. pyproject.toml) to:
77
- Set `[project].version` to a given value.
88
- Update selected dependencies in `[project].dependencies` to the same version.
99

client/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ post_install do |installer|
4040

4141
target.build_configurations.each do |config|
4242
# You can remove unused permissions here
43-
# for more infomation: https://github.com/Baseflow/flutter-permission-handler/blob/main/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h
43+
# for more information: https://github.com/Baseflow/flutter-permission-handler/blob/main/permission_handler_apple/ios/Classes/PermissionHandlerEnums.h
4444
# e.g. when you don't need camera permission, just add 'PERMISSION_CAMERA=0'
4545
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
4646
'$(inherited)',

packages/flet/lib/src/controls/cupertino_segmented_button.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class _CupertinoSegmentedButtonControlState
3333
"CupertinoSegmentedButton must have at minimum two visible controls");
3434
}
3535

36-
var segmnetedButton = CupertinoSegmentedControl(
36+
var segmentedButton = CupertinoSegmentedControl(
3737
groupValue: selectedIndex,
3838
borderColor: widget.control.getColor("border_color", context),
3939
selectedColor: widget.control.getColor("selected_color", context),
@@ -55,6 +55,6 @@ class _CupertinoSegmentedButtonControlState
5555
},
5656
);
5757

58-
return LayoutControl(control: widget.control, child: segmnetedButton);
58+
return LayoutControl(control: widget.control, child: segmentedButton);
5959
}
6060
}

sdk/python/examples/apps/controls-gallery/examples/input/checkbox/03_checkbox_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def example():
4141
visual_density=ft.VisualDensity.COMFORTABLE,
4242
mouse_cursor=ft.MouseCursor.CONTEXT_MENU,
4343
on_change=lambda e: print("Changed!"),
44-
on_blur=lambda e: print("Blured!"),
44+
on_blur=lambda e: print("Blurred!"),
4545
on_focus=lambda e: print("Focused!"),
4646
badge=ft.Badge(
4747
label="1", offset=ft.Offset(-15, -25), alignment=ft.Alignment(0, 0)

sdk/python/examples/apps/icons-cupertino-browser/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def display_icons(search_term: str):
102102

103103
for batch in batches(search_icons(search_term.upper()), 200):
104104
for icon_name in batch:
105-
# HOT GLUE - primitive text in replace to diplay & copy correctly.
105+
# HOT GLUE - primitive text in replace to display & copy correctly.
106106
icon_key = f"CupertinoIcons.{icon_name.upper()}".replace(
107107
"cupertino_".upper(), ""
108108
)
@@ -116,7 +116,7 @@ def display_icons(search_term: str):
116116
size=30,
117117
),
118118
Text(
119-
# HOT GLUE - primitive text in replace to diplay & copy correctly.
119+
# HOT GLUE - primitive text in replace to display & copy correctly.
120120
value=f"{icon_name}".replace(
121121
"cupertino_", ""
122122
),

sdk/python/examples/controls/container/nested_themes_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def main(page: ft.Page):
2525
theme=ft.Theme(color_scheme=ft.ColorScheme(primary=ft.Colors.PINK)),
2626
content=ft.Row(
2727
controls=[
28-
ft.Button("Inherited theme with primary color overriden"),
28+
ft.Button("Inherited theme with primary color overridden"),
2929
ft.TextButton("Button 2"),
3030
]
3131
),

sdk/python/examples/tutorials/solitaire/solitaire-classes/card.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CARD_WIDTH = 70
2-
CARD_HEIGTH = 100
2+
CARD_HEIGHT = 100
33
DROP_PROXIMITY = 20
44

55
import flet as ft
@@ -19,7 +19,7 @@ def __init__(self, solitaire, color):
1919
self.solitaire = solitaire
2020
self.color = color
2121
self.content = ft.Container(
22-
bgcolor=self.color, width=CARD_WIDTH, height=CARD_HEIGTH
22+
bgcolor=self.color, width=CARD_WIDTH, height=CARD_HEIGHT
2323
)
2424

2525
def move_on_top(self):

sdk/python/examples/tutorials/solitaire/solitaire-drag-and-drop/step3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import flet as ft
22

3-
# Adding secord card. Now the one of the cards will not be on top of stack when being dragged
3+
# Adding second card. Now the one of the cards will not be on top of stack when being dragged
44
# move_on_top function to move the card on top on_pan_start event
55

66

sdk/python/examples/tutorials/solitaire/solitaire-fanned-piles/card.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CARD_WIDTH = 70
2-
CARD_HEIGTH = 100
2+
CARD_HEIGHT = 100
33
DROP_PROXIMITY = 30
44
CARD_OFFSET = 20
55

@@ -21,7 +21,7 @@ def __init__(self, solitaire, color):
2121
self.card_offset = CARD_OFFSET
2222
self.color = color
2323
self.content = ft.Container(
24-
bgcolor=self.color, width=CARD_WIDTH, height=CARD_HEIGTH
24+
bgcolor=self.color, width=CARD_WIDTH, height=CARD_HEIGHT
2525
)
2626
self.draggable_pile = [self]
2727

@@ -63,7 +63,7 @@ def get_draggable_pile(self):
6363
"""returns list of cards that will be dragged together, starting with the current card"""
6464
if self.slot is not None:
6565
self.draggable_pile = self.slot.pile[self.slot.pile.index(self) :]
66-
else: # slot == None when the cards are dealed and need to be place in slot for the first time
66+
else: # slot == None when the cards are dealt and need to be place in slot for the first time
6767
self.draggable_pile = [self]
6868

6969
def start_drag(self, e: ft.DragStartEvent):

sdk/python/examples/tutorials/solitaire/solitaire-final-part1/card.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import flet as ft
22

33
CARD_WIDTH = 70
4-
CARD_HEIGTH = 100
4+
CARD_HEIGHT = 100
55
DROP_PROXIMITY = 30
66
CARD_OFFSET = 20
77

@@ -25,7 +25,7 @@ def __init__(self, solitaire, suite, rank):
2525
self.slot = None
2626
self.content = ft.Container(
2727
width=CARD_WIDTH,
28-
height=CARD_HEIGTH,
28+
height=CARD_HEIGHT,
2929
border_radius=ft.border_radius.all(6),
3030
content=ft.Image(src="/images/card_back.png"),
3131
)
@@ -95,7 +95,7 @@ def get_draggable_pile(self):
9595
and self.slot != self.solitaire.waste
9696
):
9797
self.draggable_pile = self.slot.pile[self.slot.pile.index(self) :]
98-
else: # slot == None when the cards are dealed and need to be place in slot for the first time
98+
else: # slot == None when the cards are dealt and need to be place in slot for the first time
9999
self.draggable_pile = [self]
100100

101101
def start_drag(self, e: ft.DragStartEvent):

0 commit comments

Comments
 (0)