Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples for Flet controls #188

Open
FeodorFitsner opened this issue Jan 21, 2025 · 1 comment
Open

Update examples for Flet controls #188

FeodorFitsner opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@FeodorFitsner
Copy link
Contributor

FeodorFitsner commented Jan 21, 2025

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
@FeodorFitsner
Copy link
Contributor Author

Insert code from GitHub: facebook/docusaurus#9710

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants