Flet Documentation
optimized for AI
Flet is a framework that allows building web, desktop and mobile applications in Python. Also available as an mcp server.
Introduction to Flet
Build multi-platform apps in Python. Easily build realtime web, mobile and desktop apps in pure Python. No frontend experience required.
All-in-one Documentation
Download or copy the entire Flet documentation as a single minified file.
# FLET COMPACT DOCUMENTATION Full documentation coming soon...
MCP Server Access
Expose these documentation modules directly to your AI agents (Claude Desktop, Cursor, etc.) via the Model Context Protocol.
Add to your config
{
"mcpServers": {
"smoldoc": {
"command": "npx",
"args": ["@smoldoc/mcp-server", "--docs", "flet"]
}
}
}
This allows your agent to perform semantic search across the entire library and pull in exactly the context it needs to write Flet code for you.
Documentation Index
| Module | Description | Size |
|---|---|---|
| Others | Index | 5kb |
| Setups | Contributing | 16kb |
| Controls | Ads | 23kb |
| Controls | Bannerad | 27kb |
| Controls | Basead | 31kb |
| Controls | Interstitialad | 23kb |
| Controls | Nativead | 5kb |
| Types | Adrequest | 27kb |
| Types | Paidadrequest | 22kb |
| Types | Precisiontype | 25kb |
| Others | Api reference | 18kb |
| Controls | Audio | 53kb |
| Types | Audiodurationchangeevent | 20kb |
| Types | Audiopositionchangeevent | 20kb |
| Types | Audiostate | 24kb |
| Types | Audiostatechangeevent | 20kb |
| Types | Releasemode | 23kb |
| Services | Audiorecorder | 42kb |
| Types | Androidaudiosource | 34kb |
| Types | Androidrecorderconfiguration | 29kb |
| Audio | 30kb | |
| Types | Audiorecorderconfiguration | 39kb |
| Types | Audiorecorderstate | 23kb |
| Types | Audiorecorderstatechangeevent | 21kb |
| Types | Inputdevice | 22kb |
| Types | Iosaudiocategoryoption | 32kb |
| Types | Iosrecorderconfiguration | 26kb |
| Controls | Charts | 15kb |
| Controls | Barchart | 69kb |
| Controls | Candlestickchart | 76kb |
| Controls | Linechart | 90kb |
| Controls | Matplotlibchart | 58kb |
| Controls | Piechart | 51kb |
| Controls | Plotlychart | 30kb |
| Controls | Radarchart | 58kb |
| Controls | Scatterchart | 73kb |
| Types | Barchartevent | 28kb |
| Types | Barchartgroup | 29kb |
| Types | Barchartrod | 50kb |
| Types | Barchartrodstackitem | 31kb |
| Charts | 27kb | |
| Types | Barcharttooltip | 54kb |
| Types | Barcharttooltipdirection | 26kb |
| Types | Candlestickchartevent | 25kb |
| Types | Candlestickchartspot | 38kb |
| Types | Candlestickchartspottooltip | 28kb |
| Types | Candlestickcharttooltip | 53kb |
| Types | Chartaxis | 37kb |
| Types | Chartaxislabel | 27kb |
| Types | Chartcirclepoint | 34kb |
| Charts | 31kb | |
| Types | Chartdatapointtooltip | 33kb |
| Types | Charteventtype | 41kb |
| Types | Chartgridlines | 33kb |
| Types | Chartpointline | 32kb |
| Types | Chartpointshape | 22kb |
| Charts | 34kb | |
| Types | Horizontalalignment | 26kb |
| Charts | 70kb | |
| Types | Linechartdatapoint | 41kb |
| Types | Linechartdatapointtooltip | 27kb |
| Types | Linechartevent | 25kb |
| Types | Linecharteventspot | 27kb |
| Types | Linecharttooltip | 53kb |
| Types | Piechartevent | 27kb |
| Types | Piechartsection | 41kb |
| Types | Radarchartevent | 28kb |
| Types | Radarcharttitle | 30kb |
| Types | Radardataset | 35kb |
| Types | Radardatasetentry | 24kb |
| Types | Radarshape | 24kb |
| Types | Scatterchartevent | 25kb |
| Types | Scatterchartspot | 47kb |
| Types | Scatterchartspottooltip | 30kb |
| Types | Scattercharttooltip | 49kb |
| Setups | Flet cli | 15kb |
| Cli | Flet build | 42kb |
| Cli | Flet create | 16kb |
| Cli | Flet debug | 42kb |
| Cli | Flet devices | 17kb |
| Cli | Flet doctor | 14kb |
| Cli | Flet emulators | 16kb |
| Cli | Flet pack | 22kb |
| Cli | Flet publish | 20kb |
| Cli | Flet run | 18kb |
| Cli | Flet serve | 15kb |
| Controls | Controls | 24kb |
| Controls | Adaptivecontrol | 17kb |
| Controls | Alertdialog | 88kb |
| Controls | Animatedswitcher | 47kb |
| Controls | Appbar | 83kb |
| Controls | Autocomplete | 31kb |
| Controls | Autofillgroup | 21kb |
| Controls | Banner | 52kb |
| Controls | Basecontrol | 22kb |
| Controls | Basepage | 92kb |
| Controls | Bottomappbar | 45kb |
| Controls | Bottomsheet | 47kb |
| Controls | Button | 66kb |
| Controls | Card | 36kb |
| Controls | Checkbox | 80kb |
| Controls | Chip | 100kb |
| Controls | Circleavatar | 47kb |
| Controls | Column | 64kb |
| Controls | Container | 123kb |
| Controls | Contextmenu | 59kb |
| Controls | 32kb | |
| Controls | Cupertinoactionsheetaction | 24kb |
| Controls | Cupertinoactivityindicator | 26kb |
| Controls | Cupertinoalertdialog | 37kb |
| Controls | Cupertinoappbar | 56kb |
| Controls | Cupertinobottomsheet | 28kb |
| Controls | Cupertinobutton | 64kb |
| Controls | Cupertinocheckbox | 70kb |
| Controls | Cupertinocontextmenuaction | 25kb |
| Controls | Cupertinodatepicker | 64kb |
| Controls | Cupertinodialogaction | 25kb |
| Controls | Cupertinofilledbutton | 16kb |
| Controls | Cupertinolisttile | 57kb |
| Controls | Cupertinonavigationbar | 44kb |
| Controls | Cupertinopicker | 51kb |
| Controls | Cupertinoradio | 44kb |
| Controls | Cupertinosegmentedbutton | 50kb |
| Controls | Cupertinoslider | 48kb |
| Controls | Cupertinoslidingsegmentedbutton | 38kb |
| Controls | Cupertinoswitch | 72kb |
| Controls | Cupertinotextfield | 63kb |
| Controls | Cupertinotimerpicker | 42kb |
| Controls | Cupertinotintedbutton | 14kb |
| Controls | Datacell | 46kb |
| Controls | Datacolumn | 23kb |
| Controls | Datarow | 30kb |
| Controls | Datepicker | 69kb |
| Controls | Daterangepicker | 68kb |
| Controls | Dialogcontrol | 18kb |
| Controls | Dismissible | 62kb |
| Controls | Divider | 35kb |
| Controls | Draggable | 50kb |
| Controls | Dragtarget | 28kb |
| Controls | Dropdownm2 | 63kb |
| Controls | Dropdownoption | 25kb |
| Controls | Expansionpanel | 27kb |
| Controls | Expansionpanellist | 43kb |
| Controls | Expansiontile | 140kb |
| Controls | Filledbutton | 16kb |
| Controls | Fillediconbutton | 14kb |
| Controls | Filledtonalbutton | 16kb |
| Controls | Filledtonaliconbutton | 14kb |
| Controls | Fletapp | 26kb |
| Controls | Floatingactionbutton | 62kb |
| Controls | Formfieldcontrol | 111kb |
| Controls | Gesturedetector | 241kb |
| Controls | Gridview | 40kb |
| Controls | Icon | 40kb |
| Controls | Iconbutton | 76kb |
| Controls | Image | 76kb |
| Controls | Interactiveviewer | 70kb |
| Controls | Keyboardlistener | 29kb |
| Controls | Layoutcontrol | 70kb |
| Controls | Listtile | 92kb |
| Controls | Listview | 50kb |
| Controls | Markdown | 65kb |
| Controls | Menubar | 34kb |
| Controls | Menuitembutton | 49kb |
| Controls | Mergesemantics | 15kb |
| Controls | Multiview | 15kb |
| Controls | Navigationbardestination | 23kb |
| Controls | Navigationdrawerdestination | 22kb |
| Controls | Navigationraildestination | 27kb |
| Controls | Outlinedbutton | 53kb |
| Controls | Outlinediconbutton | 14kb |
| Controls | Page | 128kb |
| Controls | Pagelet | 47kb |
| Controls | Placeholder | 26kb |
| Controls | Popupmenubutton | 75kb |
| Controls | Progressbar | 47kb |
| Controls | Progressring | 47kb |
| Controls | Radio | 52kb |
| Controls | Radiogroup | 19kb |
| Controls | Rangeslider | 57kb |
| Controls | Reorderabledraghandle | 23kb |
| Controls | Reorderablelistview | 72kb |
| Controls | Responsiverow | 64kb |
| Controls | Row | 59kb |
| Controls | Safearea | 29kb |
| Controls | Screenshot | 21kb |
| Controls | Scrollablecontrol | 30kb |
| Controls | Searchbar | 109kb |
| Controls | Segment | 19kb |
| Controls | Segmentedbutton | 45kb |
| Controls | Selectionarea | 23kb |
| Controls | Semantics | 105kb |
| Controls | Service | 14kb |
| Controls | Shadermask | 144kb |
| Controls | Shimmer | 44kb |
| Controls | Slider | 73kb |
| Controls | Snackbar | 84kb |
| Controls | Stack | 35kb |
| Controls | Submenubutton | 60kb |
| Controls | Switch | 76kb |
[Others] -> Index | Size: 5kb [Setups] -> Contributing | Size: 16kb [Controls] -> Ads | Size: 23kb [Controls] -> Bannerad | Size: 27kb [Controls] -> Basead | Size: 31kb [Controls] -> Interstitialad | Size: 23kb [Controls] -> Nativead | Size: 5kb [Types] -> Adrequest | Size: 27kb [Types] -> Paidadrequest | Size: 22kb [Types] -> Precisiontype | Size: 25kb [Others] -> Api reference | Size: 18kb [Controls] -> Audio | Size: 53kb [Types] -> Audiodurationchangeevent | Size: 20kb [Types] -> Audiopositionchangeevent | Size: 20kb [Types] -> Audiostate | Size: 24kb [Types] -> Audiostatechangeevent | Size: 20kb [Types] -> Releasemode | Size: 23kb [Services] -> Audiorecorder | Size: 42kb [Types] -> Androidaudiosource | Size: 34kb [Types] -> Androidrecorderconfiguration | Size: 29kb [Audio] -> | Size: 30kb [Types] -> Audiorecorderconfiguration | Size: 39kb [Types] -> Audiorecorderstate | Size: 23kb [Types] -> Audiorecorderstatechangeevent | Size: 21kb [Types] -> Inputdevice | Size: 22kb [Types] -> Iosaudiocategoryoption | Size: 32kb [Types] -> Iosrecorderconfiguration | Size: 26kb [Controls] -> Charts | Size: 15kb [Controls] -> Barchart | Size: 69kb [Controls] -> Candlestickchart | Size: 76kb [Controls] -> Linechart | Size: 90kb [Controls] -> Matplotlibchart | Size: 58kb [Controls] -> Piechart | Size: 51kb [Controls] -> Plotlychart | Size: 30kb [Controls] -> Radarchart | Size: 58kb [Controls] -> Scatterchart | Size: 73kb [Types] -> Barchartevent | Size: 28kb [Types] -> Barchartgroup | Size: 29kb [Types] -> Barchartrod | Size: 50kb [Types] -> Barchartrodstackitem | Size: 31kb [Charts] -> | Size: 27kb [Types] -> Barcharttooltip | Size: 54kb [Types] -> Barcharttooltipdirection | Size: 26kb [Types] -> Candlestickchartevent | Size: 25kb [Types] -> Candlestickchartspot | Size: 38kb [Types] -> Candlestickchartspottooltip | Size: 28kb [Types] -> Candlestickcharttooltip | Size: 53kb [Types] -> Chartaxis | Size: 37kb [Types] -> Chartaxislabel | Size: 27kb [Types] -> Chartcirclepoint | Size: 34kb [Charts] -> | Size: 31kb [Types] -> Chartdatapointtooltip | Size: 33kb [Types] -> Charteventtype | Size: 41kb [Types] -> Chartgridlines | Size: 33kb [Types] -> Chartpointline | Size: 32kb [Types] -> Chartpointshape | Size: 22kb [Charts] -> | Size: 34kb [Types] -> Horizontalalignment | Size: 26kb [Charts] -> | Size: 70kb [Types] -> Linechartdatapoint | Size: 41kb [Types] -> Linechartdatapointtooltip | Size: 27kb [Types] -> Linechartevent | Size: 25kb [Types] -> Linecharteventspot | Size: 27kb [Types] -> Linecharttooltip | Size: 53kb [Types] -> Piechartevent | Size: 27kb [Types] -> Piechartsection | Size: 41kb [Types] -> Radarchartevent | Size: 28kb [Types] -> Radarcharttitle | Size: 30kb [Types] -> Radardataset | Size: 35kb [Types] -> Radardatasetentry | Size: 24kb [Types] -> Radarshape | Size: 24kb [Types] -> Scatterchartevent | Size: 25kb [Types] -> Scatterchartspot | Size: 47kb [Types] -> Scatterchartspottooltip | Size: 30kb [Types] -> Scattercharttooltip | Size: 49kb [Setups] -> Flet cli | Size: 15kb [Cli] -> Flet build | Size: 42kb [Cli] -> Flet create | Size: 16kb [Cli] -> Flet debug | Size: 42kb [Cli] -> Flet devices | Size: 17kb [Cli] -> Flet doctor | Size: 14kb [Cli] -> Flet emulators | Size: 16kb [Cli] -> Flet pack | Size: 22kb [Cli] -> Flet publish | Size: 20kb [Cli] -> Flet run | Size: 18kb [Cli] -> Flet serve | Size: 15kb [Controls] -> Controls | Size: 24kb [Controls] -> Adaptivecontrol | Size: 17kb [Controls] -> Alertdialog | Size: 88kb [Controls] -> Animatedswitcher | Size: 47kb [Controls] -> Appbar | Size: 83kb [Controls] -> Autocomplete | Size: 31kb [Controls] -> Autofillgroup | Size: 21kb [Controls] -> Banner | Size: 52kb [Controls] -> Basecontrol | Size: 22kb [Controls] -> Basepage | Size: 92kb [Controls] -> Bottomappbar | Size: 45kb [Controls] -> Bottomsheet | Size: 47kb [Controls] -> Button | Size: 66kb [Controls] -> Card | Size: 36kb [Controls] -> Checkbox | Size: 80kb [Controls] -> Chip | Size: 100kb [Controls] -> Circleavatar | Size: 47kb [Controls] -> Column | Size: 64kb [Controls] -> Container | Size: 123kb [Controls] -> Contextmenu | Size: 59kb [Controls] -> | Size: 32kb [Controls] -> Cupertinoactionsheetaction | Size: 24kb [Controls] -> Cupertinoactivityindicator | Size: 26kb [Controls] -> Cupertinoalertdialog | Size: 37kb [Controls] -> Cupertinoappbar | Size: 56kb [Controls] -> Cupertinobottomsheet | Size: 28kb [Controls] -> Cupertinobutton | Size: 64kb [Controls] -> Cupertinocheckbox | Size: 70kb [Controls] -> Cupertinocontextmenuaction | Size: 25kb [Controls] -> Cupertinodatepicker | Size: 64kb [Controls] -> Cupertinodialogaction | Size: 25kb [Controls] -> Cupertinofilledbutton | Size: 16kb [Controls] -> Cupertinolisttile | Size: 57kb [Controls] -> Cupertinonavigationbar | Size: 44kb [Controls] -> Cupertinopicker | Size: 51kb [Controls] -> Cupertinoradio | Size: 44kb [Controls] -> Cupertinosegmentedbutton | Size: 50kb [Controls] -> Cupertinoslider | Size: 48kb [Controls] -> Cupertinoslidingsegmentedbutton | Size: 38kb [Controls] -> Cupertinoswitch | Size: 72kb [Controls] -> Cupertinotextfield | Size: 63kb [Controls] -> Cupertinotimerpicker | Size: 42kb [Controls] -> Cupertinotintedbutton | Size: 14kb [Controls] -> Datacell | Size: 46kb [Controls] -> Datacolumn | Size: 23kb [Controls] -> Datarow | Size: 30kb [Controls] -> Datepicker | Size: 69kb [Controls] -> Daterangepicker | Size: 68kb [Controls] -> Dialogcontrol | Size: 18kb [Controls] -> Dismissible | Size: 62kb [Controls] -> Divider | Size: 35kb [Controls] -> Draggable | Size: 50kb [Controls] -> Dragtarget | Size: 28kb [Controls] -> Dropdownm2 | Size: 63kb [Controls] -> Dropdownoption | Size: 25kb [Controls] -> Expansionpanel | Size: 27kb [Controls] -> Expansionpanellist | Size: 43kb [Controls] -> Expansiontile | Size: 140kb [Controls] -> Filledbutton | Size: 16kb [Controls] -> Fillediconbutton | Size: 14kb [Controls] -> Filledtonalbutton | Size: 16kb [Controls] -> Filledtonaliconbutton | Size: 14kb [Controls] -> Fletapp | Size: 26kb [Controls] -> Floatingactionbutton | Size: 62kb [Controls] -> Formfieldcontrol | Size: 111kb [Controls] -> Gesturedetector | Size: 241kb [Controls] -> Gridview | Size: 40kb [Controls] -> Icon | Size: 40kb [Controls] -> Iconbutton | Size: 76kb [Controls] -> Image | Size: 76kb [Controls] -> Interactiveviewer | Size: 70kb [Controls] -> Keyboardlistener | Size: 29kb [Controls] -> Layoutcontrol | Size: 70kb [Controls] -> Listtile | Size: 92kb [Controls] -> Listview | Size: 50kb [Controls] -> Markdown | Size: 65kb [Controls] -> Menubar | Size: 34kb [Controls] -> Menuitembutton | Size: 49kb [Controls] -> Mergesemantics | Size: 15kb [Controls] -> Multiview | Size: 15kb [Controls] -> Navigationbardestination | Size: 23kb [Controls] -> Navigationdrawerdestination | Size: 22kb [Controls] -> Navigationraildestination | Size: 27kb [Controls] -> Outlinedbutton | Size: 53kb [Controls] -> Outlinediconbutton | Size: 14kb [Controls] -> Page | Size: 128kb [Controls] -> Pagelet | Size: 47kb [Controls] -> Placeholder | Size: 26kb [Controls] -> Popupmenubutton | Size: 75kb [Controls] -> Progressbar | Size: 47kb [Controls] -> Progressring | Size: 47kb [Controls] -> Radio | Size: 52kb [Controls] -> Radiogroup | Size: 19kb [Controls] -> Rangeslider | Size: 57kb [Controls] -> Reorderabledraghandle | Size: 23kb [Controls] -> Reorderablelistview | Size: 72kb [Controls] -> Responsiverow | Size: 64kb [Controls] -> Row | Size: 59kb [Controls] -> Safearea | Size: 29kb [Controls] -> Screenshot | Size: 21kb [Controls] -> Scrollablecontrol | Size: 30kb [Controls] -> Searchbar | Size: 109kb [Controls] -> Segment | Size: 19kb [Controls] -> Segmentedbutton | Size: 45kb [Controls] -> Selectionarea | Size: 23kb [Controls] -> Semantics | Size: 105kb [Controls] -> Service | Size: 14kb [Controls] -> Shadermask | Size: 144kb [Controls] -> Shimmer | Size: 44kb [Controls] -> Slider | Size: 73kb [Controls] -> Snackbar | Size: 84kb [Controls] -> Stack | Size: 35kb [Controls] -> Submenubutton | Size: 60kb [Controls] -> Switch | Size: 76kb