当前位置:网站首页>Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)

Flet tutorial 04 basic introduction to filledtonalbutton (tutorial includes source code)

2022-07-04 20:42:00 Knowledge fatness

What is? FilledTonalButton

Fill tone button yes FilledButton and OutlinedButton Alternate middle zone between buttons . They are useful when lower priority buttons need a little more emphasis than the Outline gives , For example, in the induction process “ next step ”. The hue button uses auxiliary color mapping .

Combat code

 Please add a picture description

import flet
from flet import FilledTonalButton, Page


def main(page: Page):
    page.title = "Basic filled buttons"
    page.add(
        FilledTonalButton(text="Filled tonal button"),
        FilledTonalButton("Disabled button", disabled=True),
        FilledTonalButton("Button with icon", icon="add"),
    )

flet.app(target=main)
原网站

版权声明
本文为[Knowledge fatness]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041848591431.html