当前位置:网站首页>Fleet tutorial 14 basic introduction to listtile (tutorial includes source code)

Fleet tutorial 14 basic introduction to listtile (tutorial includes source code)

2022-07-07 11:54:00 Knowledge fatness

Flet What is it?

Flet It's a framework , Make it easy for you to build real-time in your favorite language Web、 Mobile and desktop applications , And share them safely with your team . No front-end experience .

What is? ListTile

 screenshots 2022-07-04 15.37.43.png

Single fixed height row , Usually contains some text as well as leading or trailing icons .

Combat code

import flet
from flet import (
    Card,
    Column,
    Container,
    Icon,
    Image,
    ListTile,
    PopupMenuButton,
    PopupMenuItem,
    Text,
    icons,
    padding,
)

def main(page):
    page.title = "ListTile Examples"
    page.add(
        Card(
            content=Container(
                width=500,
                content=Column(
                    [
                        ListTile(
                            title=Text("One-line list tile"),
                        ),
                        ListTile(title=Text("One-line dense list tile"
原网站

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