[Question]How do I implement drag and drop windows for a custom appbar? #1853
-
QuestionHow do I implement drag and drop windows for a custom appbar? Code sampleNo response Error messageNo response ------------------------------------------------------
|
Beta Was this translation helpful? Give feedback.
Answered by
XiEdAotonG
Sep 17, 2023
Replies: 1 comment
-
Set the property title of AppBar to ft WindowDragArea (content=ft. Text ("xxx", size=18), width=500), with sufficient width to achieve ft.AppBar(
title=ft.WindowDragArea(content=ft.Text("XXX"), width=500),
actions=[
ft.IconButton(ft.icons.CLOSE, on_click=lambda _: self.page.window_close(), tooltip="关闭",
icon_size=18),
],
) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
XiEdAotonG
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set the property title of AppBar to ft WindowDragArea (content=ft. Text ("xxx", size=18), width=500), with sufficient width to achieve