Skip to content

Commit f57dace

Browse files
committed
initial commit
1 parent cbdae3a commit f57dace

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

  • sdk/python/packages/flet/src/flet/controls/material

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ class AppBar(AdaptiveControl):
2020
A material design app bar.
2121
2222
Raises:
23-
AssertionError: If [`elevation`][(c).] or [`elevation_on_scroll`][(c).] is negative.
24-
AssertionError: If [`toolbar_opacity`][(c).] is not between `0.0` and `1.0` inclusive.
25-
""" # noqa: E501
23+
AssertionError: If [`elevation`][(c).] or [`elevation_on_scroll`][(c).]
24+
is negative.
25+
AssertionError: If [`toolbar_opacity`][(c).] is not between `0.0`
26+
and `1.0` inclusive.
27+
"""
2628

2729
leading: Optional[Control] = None
2830
"""
29-
A control to display before the toolbar's [`title`][flet.AppBar.title].
31+
A control to display before the toolbar's [`title`][(c).].
3032
31-
Typically an [`Icon`][flet.Icon] or [`IconButton`][flet.IconButton] control.
33+
Typically an [`Icon`][(p).] or [`IconButton`][(p).] control.
3234
"""
3335

3436
leading_width: Optional[Number] = None
@@ -42,7 +44,7 @@ class AppBar(AdaptiveControl):
4244
if it is `None`.
4345
4446
- If `True` and `leading` is `None`, this app bar will automatically determine
45-
an appropriate leading control.
47+
an appropriate leading control.
4648
- If `False` and `leading` is `None`, the space is allocated to the
4749
[`title`][flet.AppBar.title].
4850
- If a `leading` control is provided, this parameter has no effect.
@@ -66,8 +68,9 @@ class AppBar(AdaptiveControl):
6668
"""
6769
Whether the [`title`][flet.AppBar.title] should be centered.
6870
69-
Default value is defined by [`AppBarTheme.center_title`][flet.AppBarTheme.center_title]
70-
""" # noqa: E501
71+
Default value is defined by
72+
[`AppBarTheme.center_title`][flet.AppBarTheme.center_title]
73+
"""
7174

7275
toolbar_height: Optional[Number] = None
7376
"""

0 commit comments

Comments
 (0)