MCPcopy Index your code
hub / github.com/flet-dev/flet / Footer

Function Footer

sdk/python/examples/apps/declarative/todo/main.py:221–232  ·  view source on GitHub ↗
(active_tasks_number: int, clear_completed)

Source from the content-addressed store, hash-verified

219
220@ft.component
221def Footer(active_tasks_number: int, clear_completed):
222 return ft.Row(
223 alignment=ft.MainAxisAlignment.SPACE_BETWEEN,
224 vertical_alignment=ft.CrossAxisAlignment.CENTER,
225 controls=[
226 ft.Text(f"{active_tasks_number} items left"),
227 ft.OutlinedButton(
228 content="Clear completed",
229 on_click=clear_completed,
230 ),
231 ],
232 )
233
234
235if __name__ == "__main__":

Callers 1

TodoAppViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected