Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Update examples for Flet controls #188

Description

@FeodorFitsner

Eliminate discrepancy between examples in this repository and flet.dev docs.

  1. Go to website "docs/controls".
  2. Check if example from a website is working. If it's working then replace or add example in "examples" repository with the one from docs.
  3. Adjust code for the recent "standards":
  • import flet as ft
  • replace deprecations
  • replace string values with enums (colors, icons, alignments, etc.)
  • remove "Python" code tab (import TabItem from '@theme/TabItem';, <Tabs groupId="language">, etc.)
  1. Replace actual code on a website with a snippet retrieving code from GitHub: See docs/controls/snackbar.md for example.
  2. If there are "extra" samples for the control in "examples" repository then make sure they are working with the latest Flet.
    The list of controls:
  • Ads
  • AlertDialog
  • AnimatedSwitcher
  • AppBar
  • Audio
  • AudioRecorder
  • AutoComplete
  • AutoFillGroup
  • Banner
  • BannerAd
  • BarChart
  • BottomAppBar
  • BottomSheet
  • Buttons
  • Canvas
  • Card
  • CheckBox
  • Chip
  • CircleAvatar
  • Column
  • Container
  • CupertinoActionSheet
  • CupertinoActionSheetAction
  • CupertinoActivityIndicator
  • CupertinoAlertDialog
  • CupertinoAppBar
  • CupertinoBottomSheet
  • CupertinoButton
  • CupertinoCheckBox
  • CupertinoContextMenu
  • CupertinoContextMenuAction
  • CupertinoDatePicker
  • CupertinoDialogAction
  • CupertinoFilledButton
  • CupertinoListTile
  • CupertinoNavigationBar
  • CupertinoPicker
  • CupertinoRadio
  • CupertinoSegmentedButton
  • CupertinoSlider
  • CupertinoSlidingSegmentedButton
  • CupertinoSwitch
  • CupertinoTextField
  • CupertinoTimerPicker
  • DataTable
  • DatePicker
  • Dismissible
  • Divider
  • Draggable
  • DragTarget
  • Dropdown
  • ElevatedButton
  • ExpansionPanel
  • ExpansionTile
  • FilePicker
  • FilledButton
  • FilledTonalButton
  • Flashlight
  • FletApp
  • FloatingActionButton
  • GeoLocator
  • GestureDetector
  • GridView
  • HapticFeedback
  • Icon
  • IconButton
  • Image
  • InteractiveViewer
  • InterstitialAd
  • LineChart
  • ListTile
  • ListView
  • Lottie
  • Map
  • MapCircleLayer
  • MapMarkerLayer
  • MapPolygonLayer
  • MapPolylineLayer
  • MapRichAttribution
  • MapSimpleAttribution
  • MapTextSourceAttribution
  • MapTileLayer
  • Markdown
  • MatplotlibChart
  • MenuBar
  • MenuItemButton
  • MergeSemantics
  • NavigationBar
  • NavigationDrawer
  • NavigationRail
  • OutlinedButton
  • Page
  • Pagelet
  • PermissionHandler
  • PieChart
  • Placeholder
  • PlotlyChart
  • PopupMenuButton
  • ProgressBar
  • ProgressRing
  • Radio
  • RangeSlider
  • ResponsiveRow
  • Rive
  • Row
  • SafeArea
  • SearchBar
  • SegmentedButton
  • SelectionArea
  • Semantics
  • SemanticsService
  • ShaderMask
  • ShakeDetector
  • Slider
  • SnackBar
  • Stack
  • SubmenuButton
  • Switch
  • Tabs
  • Text
  • TextButton
  • TextField
  • TimePicker
  • TransparentPointer
  • VerticalDivider
  • Video
  • View
  • WebView
  • WindowDragArea

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions