Skip to content

Commit a6e27a1

Browse files
committed
fix: mkdocs warnings
1 parent 60cd168 commit a6e27a1

File tree

14 files changed

+40
-36
lines changed

14 files changed

+40
-36
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,6 @@ class ContainerControl extends StatelessWidget with FletStoreMixin {
199199
container = IgnorePointer(child: container);
200200
}
201201

202-
return ConstrainedControl(
203-
control: control,
204-
child: container,
205-
);
202+
return ConstrainedControl(control: control, child: container);
206203
}
207204
}

packages/flet/lib/src/utils/buttons.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ import 'package:flutter/cupertino.dart';
33
import 'package:flutter/material.dart';
44

55
import '../models/control.dart';
6-
import '../utils/text.dart';
7-
import '../utils/theme.dart';
8-
import '../utils/time.dart';
9-
import '../utils/transforms.dart';
6+
import 'text.dart';
7+
import 'theme.dart';
8+
import 'time.dart';
9+
import 'transforms.dart';
1010
import 'alignment.dart';
1111
import 'borders.dart';
1212
import 'colors.dart';
1313
import 'edge_insets.dart';
14+
import 'geometry.dart';
1415
import 'material_state.dart';
1516
import 'mouse.dart';
1617
import 'numbers.dart';
@@ -60,6 +61,9 @@ ButtonStyle? parseButtonStyle(dynamic value, ThemeData theme,
6061
iconSize: parseWidgetStateDouble(value["icon_size"]),
6162
visualDensity: parseVisualDensity(value["visual_density"]),
6263
mouseCursor: parseWidgetStateMouseCursor(value["mouse_cursor"]),
64+
fixedSize: parseWidgetStateSize(value["fixed_size"]),
65+
maximumSize: parseWidgetStateSize(value["maximum_size"]),
66+
minimumSize: parseWidgetStateSize(value["minimum_size"]),
6367
);
6468
}
6569

sdk/python/packages/flet-cli/src/flet_cli/cli.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ def set_default_subparser(
2121
This should be called after setting up the argument parser but before
2222
`parse_args()`.
2323
24-
Parameters:
25-
- name (str): The name of the default subparser to use.
26-
- args (list, optional): A list of arguments passed to `parse_args()`. Defaults
27-
to None.
28-
- index (int): Position in `sys.argv` where the default subparser should be
29-
inserted. Defaults to 0.
24+
Args:
25+
name: The name of the default subparser to use.
26+
args: A list of arguments passed to `parse_args()`.
27+
index: Position in `sys.argv` where the default subparser should be
28+
inserted.
3029
"""
3130

3231
# exit if help or version flags are present

sdk/python/packages/flet/src/flet/controls/core/text_span.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class TextSpan(Control):
4747
"""
4848
The URL to open when this button is clicked.
4949
50-
Additionally, if [`on_click`][ft.TextSpan.on_click] event callback is provided,
50+
Additionally, if [`on_click`][flet.TextSpan.on_click] event callback is provided,
5151
it is fired after that.
5252
"""
5353

@@ -61,18 +61,20 @@ class TextSpan(Control):
6161

6262
spell_out: Optional[bool] = None
6363
"""
64-
Whether the assistive technologies should spell out this text character by character.
64+
Whether the assistive technologies should spell out this text
65+
character by character.
6566
66-
If the text is 'hello world', setting this to true causes the assistive technologies,
67-
such as VoiceOver or TalkBack, to pronounce 'h-e-l-l-o-space-w-o-r-l-d' instead of complete words.
67+
If the text is 'hello world', setting this to true causes the assistive
68+
technologies, such as VoiceOver or TalkBack, to pronounce
69+
'h-e-l-l-o-space-w-o-r-l-d' instead of complete words.
6870
This is useful for texts, such as passwords or verification codes.
6971
7072
If this span contains other text span children, they also inherit the property from
7173
this span unless explicitly set.
7274
73-
If the property is not set, this text span inherits the spell out setting from its parent.
74-
If this text span does not have a parent or the parent does not have a spell out setting,
75-
this text span does not spell out the text by default.
75+
If the property is not set, this text span inherits the spell out setting
76+
from its parent. If this text span does not have a parent or the parent does
77+
not have a spell out setting, this text span does not spell out the text by default.
7678
"""
7779

7880
on_click: Optional[ControlEventHandler["TextSpan"]] = None

sdk/python/packages/flet/src/flet/controls/cupertino/cupertino_button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class CupertinoButton(ConstrainedControl):
110110
"""
111111
The URL to open when this button is clicked.
112112
113-
Additionally, if [`on_click`][ft.CupertinoButton.on_click] event callback is
113+
Additionally, if [`on_click`][flet.CupertinoButton.on_click] event callback is
114114
provided, it is fired after that.
115115
"""
116116

sdk/python/packages/flet/src/flet/controls/cupertino/cupertino_list_tile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class CupertinoListTile(ConstrainedControl):
7878
"""
7979
The URL to open when this button is clicked.
8080
81-
Additionally, if [`on_click`][ft.CupertinoListTile.on_click] event callback is
81+
Additionally, if [`on_click`][flet.CupertinoListTile.on_click] event callback is
8282
provided, it is fired after that.
8383
"""
8484

sdk/python/packages/flet/src/flet/controls/material/container.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ class Container(ConstrainedControl, AdaptiveControl):
103103
"""
104104
Defines how the [`content`][flet.Container.content] of the container is clipped.
105105
106-
Defaults to `ClipBehavior.ANTI_ALIAS` if [`border_radius`][flet.Container.border_radius] is not `None`;
106+
Defaults to `ClipBehavior.ANTI_ALIAS` if
107+
[`border_radius`][flet.Container.border_radius] is not `None`;
107108
otherwise `ClipBehavior.NONE`.
108109
"""
109110

@@ -180,7 +181,7 @@ class Container(ConstrainedControl, AdaptiveControl):
180181
"""
181182
The URL to open when this container is clicked.
182183
183-
Additionally, if [`on_click`][ft.Container.on_click] event callback is provided,
184+
Additionally, if [`on_click`][flet.Container.on_click] event callback is provided,
184185
it is fired after that.
185186
"""
186187

@@ -241,7 +242,8 @@ def main(page: ft.Page):
241242
theme_mode: Optional[ThemeMode] = None
242243
"""
243244
"Resets" parent theme and creates a new, unique scheme for all
244-
controls inside the container. Otherwise the styles defined in container's [`theme`][flet.Container.theme]
245+
controls inside the container. Otherwise the styles defined in
246+
container's [`theme`][flet.Container.theme]
245247
property override corresponding styles from the parent, inherited theme.
246248
247249
Defaults to `ThemeMode.SYSTEM`.
@@ -321,8 +323,8 @@ def on_tap_down(e: ft.ContainerTapEvent):
321323
"""
322324
Called when a mouse pointer enters or exists the container area.
323325
324-
The `data` property of the event handler argument is `True` when the cursor enters and
325-
`False` when it exits.
326+
The `data` property of the event handler argument is `True`
327+
when the cursor enters and `False` when it exits.
326328
327329
Example:
328330
A container changing its background color on mouse hover:

sdk/python/packages/flet/src/flet/controls/material/elevated_button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ElevatedButton(ConstrainedControl, AdaptiveControl):
102102
"""
103103
The URL to open when this button is clicked.
104104
105-
Additionally, if [`on_click`][ft.ElevatedButton.on_click] event callback is
105+
Additionally, if [`on_click`][flet.ElevatedButton.on_click] event callback is
106106
provided, it is fired after that.
107107
"""
108108

sdk/python/packages/flet/src/flet/controls/material/floating_action_button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class FloatingActionButton(ConstrainedControl):
144144
"""
145145
The URL to open when this button is clicked.
146146
147-
Additionally, if [`on_click`][ft.FloatingActionButton.on_click] event callback
147+
Additionally, if [`on_click`][flet.FloatingActionButton.on_click] event callback
148148
is provided, it is fired after that.
149149
"""
150150

sdk/python/packages/flet/src/flet/controls/material/icon_button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def toggle_icon_button(e):
197197
"""
198198
The URL to open when this button is clicked.
199199
200-
Additionally, if [`on_click`][ft.IconButton.on_click] event callback is provided,
200+
Additionally, if [`on_click`][flet.IconButton.on_click] event callback is provided,
201201
it is fired after that.
202202
"""
203203

0 commit comments

Comments
 (0)