当前位置:网站首页>Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)

Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)

2022-07-07 11:45: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? VerticalDivider

A thin vertical line , Filled on both sides . In material design language , This represents a separator .

Combat code

 screenshots 2022-07-04 16.00.46.png

import flet
from flet import Container, Page, Row, VerticalDivider, alignment, colors

def main(page: Page):

    page.add(
        Row(
            [
                Container(
                    bgcolor=colors.ORANGE_300,
                    alignment=alignment.center,
                    expand=True,
                ),
                VerticalDivider(),
                Container(
                    bgcolor=colors.BROWN_400,
                    alignment=alignment.center,
                    expand=True,
                ),
                VerticalDivid
原网站

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