Dart 控件
https://api.flutter.dev/flutter/widgets/widgets-library.html
Accessibility
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
ExcludeSemantics | https://api.flutter.dev/flutter/widgets/ExcludeSemantics-class.html | 刪除其子代的所有語義的小部件。這可以用來隱藏子窗口小部件巴席,否則會被報告赢赊,但這只會讓人困惑奔穿。例如挖炬,Material Components芯片小部件隱藏化身琢歇,因為它與芯片標(biāo)簽是冗余的育韩。 |
MergeSemantics | https://api.flutter.dev/flutter/widgets/MergeSemantics-class.html | 合并其子代語義的小部件擦酌。 |
Semantics | https://api.flutter.dev/flutter/widgets/Semantics-class.html | 一個小部件宵晚,用小部件含義的描述對小部件樹進行注釋垂攘。可訪問性工具淤刃、搜索引擎和其他語義分析軟件用于確定應(yīng)用程序的含義晒他。 |
Animation and Motion
Assets, Images, and Icons
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
AssetBundle | https://api.flutter.dev/flutter/services/AssetBundle-class.html | 資產(chǎn)包包含應(yīng)用程序可以使用的資源臭埋,如圖像和字符串踪央。對這些資源的訪問是異步的,因此可以通過網(wǎng)絡(luò)(例如瓢阴,從NetworkAssetBundle)或本地文件系統(tǒng)透明地加載它們畅蹂,而不會阻塞應(yīng)用程序的用戶界面。 |
Icon | https://api.flutter.dev/flutter/widgets/Icon-class.html | 材質(zhì)設(shè)計圖標(biāo)荣恐。 |
Image | https://api.flutter.dev/flutter/widgets/Image-class.html | 顯示圖像的小部件喷好。 |
RawImage | https://api.flutter.dev/flutter/widgets/RawImage-class.html | 直接顯示dart:ui.Image的小部件居触。 |
Async
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
FutureBuilder | https://api.flutter.dev/flutter/widgets/FutureBuilder-class.html | 基于與未來交互的最新快照構(gòu)建自身的小部件差凹。 |
StreamBuilder | https://api.flutter.dev/flutter/widgets/StreamBuilder-class.html | 基于與流交互的最新快照構(gòu)建自身的小部件尸疆。 |
Basics
Cupertino (iOS-style widgets)
Input
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Autocomplete | https://api.flutter.dev/flutter/material/Autocomplete-class.html | 通過輸入一些文本并從選項列表中進行選擇,幫助用戶進行選擇的小部件魔市。 |
Form | https://api.flutter.dev/flutter/widgets/Form-class.html | 用于將多個表單字段小部件(例如TextField小部件)組合在一起的可選容器恋日。 |
FormField | https://api.flutter.dev/flutter/widgets/FormField-class.html | 單個表單字段膀篮。此小部件維護表單字段的當(dāng)前狀態(tài),以便在UI中直觀地反映更新和驗證錯誤岂膳。 |
RawKeyboardListener | https://api.flutter.dev/flutter/widgets/RawKeyboardListener-class.html | 每當(dāng)用戶按下或釋放鍵盤上的鍵時調(diào)用回調(diào)的小部件誓竿。 |
Interaction Models
組件名稱名字 | 視頻URL | 組件英文描述 |
---|
Touch interactions
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
AbsorbPointer | https://api.flutter.dev/flutter/widgets/AbsorbPointer-class.html | 在命中測試期間吸收指針的小部件。如果為true谈截,此小部件通過終止自身的命中測試來防止其子樹接收指針事件筷屡。在布局過程中,它仍然會消耗空間簸喂,并像往常一樣繪制其子對象毙死。它只是防止其子級成為定位事件的目標(biāo),因為它從RenderBox.hitTest返回true喻鳄。 |
Dismissible | https://api.flutter.dev/flutter/widgets/Dismissible-class.html | 一種小部件扼倘,可通過沿指示方向拖動來解除。將此小部件向相反方向拖動或投擲會導(dǎo)致子部件滑出視圖除呵。在幻燈片動畫之后再菊,如果resizeDuration為非null,則Dismissible小部件會在resizeDuration期間將其高度(或?qū)挾妊赵耘cDismissive方向垂直的為準(zhǔn))動畫設(shè)置為零纠拔。 |
DragTarget | https://api.flutter.dev/flutter/widgets/DragTarget-class.html | 當(dāng)可拖動小部件被丟棄時接收數(shù)據(jù)的小部件。當(dāng)在拖動目標(biāo)上拖動拖動表時泛豪,將詢問拖動目標(biāo)是否接受拖動表所承載的數(shù)據(jù)稠诲。如果用戶確實將可拖動對象放置在拖動目標(biāo)的頂部(并且拖動目標(biāo)已指示它將接受可拖動對象的數(shù)據(jù)),則會要求拖動目標(biāo)接受可拖動對象的數(shù)據(jù)诡曙。 |
Draggable | https://api.flutter.dev/flutter/widgets/Draggable-class.html | 可以從拖動到拖動目標(biāo)的小部件臀叙。當(dāng)可拖動小部件識別拖動手勢的開始時,它會顯示一個反饋小部件价卤,在屏幕上跟蹤用戶的手指匹耕。如果用戶在DragTarget上抬起手指,則該目標(biāo)將有機會接受DragTable攜帶的數(shù)據(jù)荠雕。 |
DraggableScrollableSheet | https://api.flutter.dev/flutter/widgets/DraggableScrollableSheet-class.html | 一種可滾動文件的容器,通過調(diào)整可滾動文件的大小直到達到限制驶赏,然后滾動來響應(yīng)拖動手勢炸卑。 |
GestureDetector | https://api.flutter.dev/flutter/widgets/GestureDetector-class.html | 檢測手勢的小部件。嘗試識別與其非空回調(diào)相對應(yīng)的手勢煤傍。如果這個小部件有一個子部件盖文,它將根據(jù)該子部件的大小調(diào)整行為。如果它沒有子對象蚯姆,則會成長為適合父對象五续。 |
IgnorePointer | https://api.flutter.dev/flutter/widgets/IgnorePointer-class.html | 在命中測試期間不可見的小部件洒敏。如果忽略為true,則此小部件(及其子樹)對命中測試不可見疙驾。在布局過程中凶伙,它仍然會消耗空間,并像往常一樣繪制其子對象它碎。它不能成為定位事件的目標(biāo)函荣,因為它從RenderBox.hitTest返回false。 |
InteractiveViewer | https://api.flutter.dev/flutter/widgets/InteractiveViewer-class.html | 一個小部件扳肛,可與子部件進行平移和縮放交互傻挂。 |
LongPressDraggable | https://api.flutter.dev/flutter/widgets/LongPressDraggable-class.html | 從長按開始,使其子項可拖動挖息。 |
Scrollable | https://api.flutter.dev/flutter/widgets/Scrollable-class.html | Scrollable實現(xiàn)了可滾動小部件的交互模型金拒,包括手勢識別,但對實際顯示子對象的視口的構(gòu)造方式?jīng)]有意見套腹。 |
Routing
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Hero | https://api.flutter.dev/flutter/widgets/Hero-class.html | 將其子對象標(biāo)記為英雄動畫候選對象的小部件绪抛。 |
Navigator | https://api.flutter.dev/flutter/widgets/Navigator-class.html | 使用堆棧規(guī)程管理一組子小部件的小部件。許多應(yīng)用程序在其小部件層次結(jié)構(gòu)的頂部附近有一個導(dǎo)航器沉迹,可以使用覆蓋顯示其邏輯歷史睦疫,最近訪問的頁面可視地顯示在舊頁面的頂部。使用此模式鞭呕,導(dǎo)航器可以通過在覆蓋中移動窗口小部件蛤育,直觀地從一個頁面過渡到另一個頁面。類似地葫松,導(dǎo)航器可以通過將對話框小部件定位在當(dāng)前頁面上方來顯示對話框瓦糕。 |
Layout
組件名稱名字 | 視頻URL | 組件英文描述 |
---|
Single-child layout widgets
Multi-child layout widgets
Sliver widgets
Material Components
組件名稱名字 | 視頻URL | 組件英文描述 |
---|
App structure and navigation
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Appbar | https://api.flutter.dev/flutter/material/AppBar-class.html | 材質(zhì)設(shè)計應(yīng)用程序欄。應(yīng)用程序欄由工具欄和其他可能的小部件組成纽谒,如選項卡欄和FlexibleSpaceBar证膨。 |
BottomNavigationBar | https://api.flutter.dev/flutter/material/BottomNavigationBar-class.html | 底部導(dǎo)航欄可以輕松地在一次點擊中瀏覽和切換頂級視圖。BottomNavigationBar小部件實現(xiàn)此組件鼓黔。 |
Drawer | https://api.flutter.dev/flutter/material/Drawer-class.html | 從腳手架邊緣水平滑入的材質(zhì)設(shè)計面板央勒,用于顯示應(yīng)用程序中的導(dǎo)航鏈接。 |
MaterialApp | https://api.flutter.dev/flutter/material/MaterialApp-class.html | 一個方便的小部件澳化,它封裝了實現(xiàn)材質(zhì)設(shè)計的應(yīng)用程序通常需要的許多小部件崔步。 |
Scaffold | https://api.flutter.dev/flutter/material/Scaffold-class.html | 實現(xiàn)了可視化的物料布局設(shè)計。此類提供了用于顯示抽屜缎谷、快餐店和底頁的API井濒。 |
SliverAppBar | https://api.flutter.dev/flutter/material/SliverAppBar-class.html | 與CustomScrollView集成的材質(zhì)設(shè)計應(yīng)用程序欄。 |
TabBar | https://api.flutter.dev/flutter/material/TabBar-class.html | 顯示水平行選項卡的材質(zhì)設(shè)計小部件。 |
TabBarView | https://api.flutter.dev/flutter/material/TabBarView-class.html | 顯示與當(dāng)前所選選項卡相對應(yīng)的小部件的頁面視圖瑞你。通常與選項卡欄結(jié)合使用酪惭。 |
TabController | https://api.flutter.dev/flutter/material/TabController-class.html | 在選項卡欄和選項卡欄視圖之間協(xié)調(diào)選項卡選擇。 |
TabPageSelector | https://api.flutter.dev/flutter/material/TabPageSelector-class.html | 顯示一行小圓形指示器者甲,每個選項卡一個春感。所選選項卡的指示器將高亮顯示。通常與TabBarView結(jié)合使用虏缸。 |
WidgetsApp | https://api.flutter.dev/flutter/widgets/WidgetsApp-class.html | 一個方便類鲫懒,它封裝了應(yīng)用程序通常需要的許多小部件。 |
Buttons
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
DropdownButton | https://api.flutter.dev/flutter/material/DropdownButton-class.html | 顯示當(dāng)前選定的項目和箭頭刽辙,箭頭打開用于選擇其他項目的菜單窥岩。 |
ElevatedButton | https://api.flutter.dev/flutter/material/ElevatedButton-class.html | 一種材料設(shè)計的按鈕。一種填充按鈕扫倡,按下時其材料會升高谦秧。 |
FloatingActionButton | https://api.flutter.dev/flutter/material/FloatingActionButton-class.html | 浮動操作按鈕是一個圓形圖標(biāo)按鈕,它懸停在內(nèi)容上撵溃,以提升應(yīng)用程序中的主要操作疚鲤。浮動操作按鈕最常用于Scaffold.floatingActionButton字段。 |
IconButton | https://api.flutter.dev/flutter/material/IconButton-class.html | 圖標(biāo)按鈕是打印在材質(zhì)小部件上的圖片缘挑,通過填充顏色(墨水)對觸摸作出反應(yīng)集歇。 |
OutlinedButton | https://api.flutter.dev/flutter/material/OutlinedButton-class.html | 一種材料設(shè)計的輪廓按鈕,本質(zhì)上是一個帶有輪廓邊框的文本按鈕语淘。 |
PopupMenuButton | https://api.flutter.dev/flutter/material/PopupMenuButton-class.html | 按下時顯示菜單诲宇,由于選擇了某個項目而取消菜單時調(diào)用onSelected。 |
TextButton | https://api.flutter.dev/flutter/material/TextButton-class.html | 材質(zhì)設(shè)計文本按鈕惶翻。沒有邊框輪廓的簡單平面按鈕姑蓝。 |
Input and selections
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Checkbox | https://api.flutter.dev/flutter/material/Checkbox-class.html | 復(fù)選框允許用戶從集合中選擇多個選項。復(fù)選框小部件實現(xiàn)了這個組件吕粗。 |
Date & Time Pickers | https://api.flutter.dev/flutter/material/showDatePicker.html | 日期選擇器使用對話框窗口在手機上選擇單個日期纺荧。時間選擇器使用對話框在手機上選擇單個時間(小時:分鐘格式)。 |
Radio | https://api.flutter.dev/flutter/material/Radio-class.html | 單選按鈕允許用戶從集合中選擇一個選項颅筋。如果您認(rèn)為用戶需要并排查看所有可用選項宙暇,請使用單選按鈕進行獨占選擇。 |
Slider | https://api.flutter.dev/flutter/material/Slider-class.html | 滑塊允許用戶通過移動滑塊拇指從一系列值中進行選擇议泵。 |
Switch | https://api.flutter.dev/flutter/material/Switch-class.html | 打開/關(guān)閉開關(guān)切換單個設(shè)置選項的狀態(tài)占贫。Switch小部件實現(xiàn)了這個組件。 |
TextField | https://api.flutter.dev/flutter/material/TextField-class.html | 觸摸文本字段將放置光標(biāo)并顯示鍵盤先口。TextField小部件實現(xiàn)了這個組件型奥。 |
Dialogs, alerts, and panels
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
AlertDialog | https://api.flutter.dev/flutter/material/AlertDialog-class.html | 警報是需要確認(rèn)的緊急中斷瞳收,用于通知用戶有關(guān)情況。AlertDialog小部件實現(xiàn)此組件厢汹。 |
BottomSheet | https://api.flutter.dev/flutter/material/BottomSheet-class.html | 底部紙張從屏幕底部向上滑動缎讼,以顯示更多內(nèi)容】咏常可以調(diào)用showBottomSheet()來實現(xiàn)持久的底部工作表,也可以調(diào)用showModalBottomSheet()來實現(xiàn)模式的底部工作表卧惜。 |
ExpansionPanel | https://api.flutter.dev/flutter/material/ExpansionPanel-class.html | 擴展面板包含創(chuàng)建流厘灼,并允許對元素進行輕量級編輯。ExpansionPanel小部件實現(xiàn)此組件咽瓷。 |
SimpleDialog | https://api.flutter.dev/flutter/material/SimpleDialog-class.html | 簡單對話框可以提供有關(guān)列表項的其他詳細(xì)信息或操作设凹。例如,它們可以顯示頭像圖標(biāo)茅姜,以澄清潛臺詞或正交動作(例如添加帳戶)闪朱。 |
SnackBar | https://api.flutter.dev/flutter/material/SnackBar-class.html | 帶有可選操作的輕量級消息,簡要顯示在屏幕底部钻洒。 |
Information displays
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Card | https://api.flutter.dev/flutter/material/Card-class.html | 材料設(shè)計卡奋姿。卡片有略微圓角和陰影素标。 |
Chip | https://api.flutter.dev/flutter/material/Chip-class.html | 一種材料設(shè)計芯片称诗。芯片在小塊中表示復(fù)雜的實體,例如觸點头遭。 |
CircularProgressIndicator | https://api.flutter.dev/flutter/material/CircularProgressIndicator-class.html | 物料設(shè)計循環(huán)進度指示器寓免,旋轉(zhuǎn)以指示應(yīng)用程序正忙。 |
DataTable | https://api.flutter.dev/flutter/material/DataTable-class.html | 數(shù)據(jù)表顯示原始數(shù)據(jù)集计维。它們通常出現(xiàn)在桌面企業(yè)產(chǎn)品中袜香。DataTable小部件實現(xiàn)了這個組件。 |
GridView | https://api.flutter.dev/flutter/widgets/GridView-class.html | 網(wǎng)格列表由以垂直和水平布局排列的單元格的重復(fù)模式組成鲫惶。GridView小部件實現(xiàn)了這個組件蜈首。 |
Icon | https://api.flutter.dev/flutter/widgets/Icon-class.html | 材質(zhì)設(shè)計圖標(biāo)。 |
Image | https://api.flutter.dev/flutter/widgets/Image-class.html | 顯示圖像的小部件剑按。 |
LinearProgressIndicator | https://api.flutter.dev/flutter/material/LinearProgressIndicator-class.html | 材質(zhì)設(shè)計線性進度指示器疾就,也稱為進度條。 |
Tooltip | https://api.flutter.dev/flutter/material/Tooltip-class.html | 工具提示提供有助于解釋按鈕功能或其他用戶界面操作的文本標(biāo)簽艺蝴。將按鈕包裝在工具提示小部件中猬腰,以在小部件長按(或用戶采取其他適當(dāng)操作)時顯示標(biāo)簽。 |
Layout
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Divider | https://api.flutter.dev/flutter/material/Divider-class.html | 一條一個邏輯像素厚的水平線猜敢,兩邊都有填充姑荷。 |
ListTile | https://api.flutter.dev/flutter/material/ListTile-class.html | 一個固定高度的行盒延,通常包含一些文本以及前導(dǎo)或尾隨圖標(biāo)。 |
Stepper | https://api.flutter.dev/flutter/material/Stepper-class.html | 材料設(shè)計步進程序小部件鼠冕,顯示一系列步驟的進度添寺。 |
Painting and effects
Scrolling
Styling
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
MediaQuery | https://api.flutter.dev/flutter/widgets/MediaQuery-class.html | 建立子樹,媒體查詢在其中解析為給定數(shù)據(jù)旭绒。 |
Padding | https://api.flutter.dev/flutter/widgets/Padding-class.html | 通過給定的填充插入其子項的小部件鸟妙。 |
Theme | https://api.flutter.dev/flutter/material/Theme-class.html | 將主題應(yīng)用于子代小部件。主題描述應(yīng)用程序的顏色和排版選擇挥吵。 |
Text
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
DefaultTextStyle | https://api.flutter.dev/flutter/widgets/DefaultTextStyle-class.html | 要應(yīng)用于沒有顯式樣式的子體文本小部件的文本樣式重父。 |
RichText | https://api.flutter.dev/flutter/widgets/RichText-class.html | RichText小部件顯示使用多種不同樣式的文本。要顯示的文本使用TextSpan對象樹進行描述忽匈,每個對象都具有用于該子樹的關(guān)聯(lián)樣式房午。根據(jù)布局約束的不同,文本可能會跨多行中斷丹允,也可能全部顯示在同一行上郭厌。 |
Text | https://api.flutter.dev/flutter/widgets/Text-class.html | 具有單一樣式的一系列文本。 |
Accessibility
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
ExcludeSemantics | https://api.flutter.dev/flutter/widgets/ExcludeSemantics-class.html | A widget that drops all the semantics of its descendants. This can be used to hide subwidgets that would otherwise be reported but that would only be confusing. For example, the Material Components Chip widget hides the avatar since it is redundant with the chip label. |
MergeSemantics | https://api.flutter.dev/flutter/widgets/MergeSemantics-class.html | A widget that merges the semantics of its descendants. |
Semantics | https://api.flutter.dev/flutter/widgets/Semantics-class.html | A widget that annotates the widget tree with a description of the meaning of the widgets. Used by accessibility tools, search engines, and other semantic analysis software to determine the meaning of the application. |
Animation and Motion
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
AnimatedAlign | https://api.flutter.dev/flutter/widgets/AnimatedAlign-class.html | Animated version of Align which automatically transitions the child's position over a given duration whenever the given alignment changes. |
AnimatedBuilder | https://api.flutter.dev/flutter/widgets/AnimatedBuilder-class.html | A general-purpose widget for building animations. AnimatedBuilder is useful for more complex widgets that wish to include animation as part of a larger build function. To use AnimatedBuilder, simply construct the widget and pass it a builder function. |
AnimatedContainer | https://api.flutter.dev/flutter/widgets/AnimatedContainer-class.html | A container that gradually changes its values over a period of time. |
AnimatedCrossFade | https://api.flutter.dev/flutter/widgets/AnimatedCrossFade-class.html | A widget that cross-fades between two given children and animates itself between their sizes. |
AnimatedDefaultTextStyle | https://api.flutter.dev/flutter/widgets/AnimatedDefaultTextStyle-class.html | Animated version of DefaultTextStyle which automatically transitions the default text style (the text style to apply to descendant Text widgets without explicit style) over a given duration whenever the given style changes. |
AnimatedListState | https://api.flutter.dev/flutter/widgets/AnimatedListState-class.html | The state for a scrolling container that animates items when they are inserted or removed. |
AnimatedModalBarrier | https://api.flutter.dev/flutter/widgets/AnimatedModalBarrier-class.html | A widget that prevents the user from interacting with widgets behind itself. |
AnimatedOpacity | https://api.flutter.dev/flutter/widgets/AnimatedOpacity-class.html | Animated version of Opacity which automatically transitions the child's opacity over a given duration whenever the given opacity changes. |
AnimatedPhysicalModel | https://api.flutter.dev/flutter/widgets/AnimatedPhysicalModel-class.html | Animated version of PhysicalModel. |
AnimatedPositioned | https://api.flutter.dev/flutter/widgets/AnimatedPositioned-class.html | Animated version of Positioned which automatically transitions the child's position over a given duration whenever the given position changes. |
AnimatedSize | https://api.flutter.dev/flutter/widgets/AnimatedSize-class.html | Animated widget that automatically transitions its size over a given duration whenever the given child's size changes. |
AnimatedWidget | https://api.flutter.dev/flutter/widgets/AnimatedWidget-class.html | A widget that rebuilds when the given Listenable changes value. |
AnimatedWidgetBaseState | https://api.flutter.dev/flutter/widgets/AnimatedWidgetBaseState-class.html | A base class for widgets with implicit animations. |
DecoratedBoxTransition | https://api.flutter.dev/flutter/widgets/DecoratedBoxTransition-class.html | Animated version of a DecoratedBox that animates the different properties of its Decoration. |
FadeTransition | https://api.flutter.dev/flutter/widgets/FadeTransition-class.html | Animates the opacity of a widget. |
Hero | https://api.flutter.dev/flutter/widgets/Hero-class.html | A widget that marks its child as being a candidate for hero animations. |
PositionedTransition | https://api.flutter.dev/flutter/widgets/PositionedTransition-class.html | Animated version of Positioned which takes a specific Animation to transition the child's position from a start position to and end position over the lifetime of the animation. |
RotationTransition | https://api.flutter.dev/flutter/widgets/RotationTransition-class.html | Animates the rotation of a widget. |
ScaleTransition | https://api.flutter.dev/flutter/widgets/ScaleTransition-class.html | Animates the scale of transformed widget. |
SizeTransition | https://api.flutter.dev/flutter/widgets/SizeTransition-class.html | Animates its own size and clips and aligns the child. |
SlideTransition | https://api.flutter.dev/flutter/widgets/SlideTransition-class.html | Animates the position of a widget relative to its normal position. |
Assets, Images, and Icons
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
AssetBundle | https://api.flutter.dev/flutter/services/AssetBundle-class.html | Asset bundles contain resources, such as images and strings, that can be used by an application. Access to these resources is asynchronous so that they can be transparently loaded over a network (e.g., from a NetworkAssetBundle) or from the local file system without blocking the application's user interface. |
Icon | https://api.flutter.dev/flutter/widgets/Icon-class.html | A Material Design icon. |
Image | https://api.flutter.dev/flutter/widgets/Image-class.html | A widget that displays an image. |
RawImage | https://api.flutter.dev/flutter/widgets/RawImage-class.html | A widget that displays a dart:ui.Image directly. |
Async
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
FutureBuilder | https://api.flutter.dev/flutter/widgets/FutureBuilder-class.html | Widget that builds itself based on the latest snapshot of interaction with a Future. |
StreamBuilder | https://api.flutter.dev/flutter/widgets/StreamBuilder-class.html | Widget that builds itself based on the latest snapshot of interaction with a Stream. |
Basics
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Appbar | https://api.flutter.dev/flutter/material/AppBar-class.html | A Material Design app bar. An app bar consists of a toolbar and potentially other widgets, such as a TabBar and a FlexibleSpaceBar. |
Column | https://api.flutter.dev/flutter/widgets/Column-class.html | Layout a list of child widgets in the vertical direction. |
Container | https://api.flutter.dev/flutter/widgets/Container-class.html | A convenience widget that combines common painting, positioning, and sizing widgets. |
ElevatedButton | https://api.flutter.dev/flutter/material/ElevatedButton-class.html | A Material Design elevated button. A filled button whose material elevates when pressed. |
FlutterLogo | https://api.flutter.dev/flutter/material/FlutterLogo-class.html | The Flutter logo, in widget form. This widget respects the IconTheme. |
Icon | https://api.flutter.dev/flutter/widgets/Icon-class.html | A Material Design icon. |
Image | https://api.flutter.dev/flutter/widgets/Image-class.html | A widget that displays an image. |
Placeholder | https://api.flutter.dev/flutter/widgets/Placeholder-class.html | A widget that draws a box that represents where other widgets will one day be added. |
Row | https://api.flutter.dev/flutter/widgets/Row-class.html | Layout a list of child widgets in the horizontal direction. |
Scaffold | https://api.flutter.dev/flutter/material/Scaffold-class.html | Implements the basic Material Design visual layout structure. This class provides APIs for showing drawers, snack bars, and bottom sheets. |
Text | https://api.flutter.dev/flutter/widgets/Text-class.html | A run of text with a single style. |
Cupertino (iOS-style widgets)
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
CupertinoActionSheet | https://api.flutter.dev/flutter/cupertino/CupertinoActionSheet-class.html | An iOS-style modal bottom action sheet to choose an option among many. |
CupertinoActivityIndicator | https://api.flutter.dev/flutter/cupertino/CupertinoActivityIndicator-class.html | An iOS-style activity indicator. Displays a circular 'spinner'. |
CupertinoAlertDialog | https://api.flutter.dev/flutter/cupertino/CupertinoAlertDialog-class.html | An iOS-style alert dialog. |
CupertinoButton | https://api.flutter.dev/flutter/cupertino/CupertinoButton-class.html | An iOS-style button. |
CupertinoContextMenu | https://api.flutter.dev/flutter/cupertino/CupertinoContextMenu-class.html | An iOS-style full-screen modal route that opens when the child is long-pressed. Used to display relevant actions for your content. |
CupertinoDatePicker | https://api.flutter.dev/flutter/cupertino/CupertinoDatePicker-class.html | An iOS-style date or date and time picker. |
CupertinoDialog | https://api.flutter.dev/flutter/cupertino/CupertinoDialog-class.html | An iOS-style dialog. |
CupertinoDialogAction | https://api.flutter.dev/flutter/cupertino/CupertinoDialogAction-class.html | A button typically used in a CupertinoAlertDialog. |
CupertinoFullscreenDialogTransition | https://api.flutter.dev/flutter/cupertino/CupertinoFullscreenDialogTransition-class.html | An iOS-style transition used for summoning fullscreen dialogs. |
CupertinoNavigationBar | https://api.flutter.dev/flutter/cupertino/CupertinoNavigationBar-class.html | An iOS-style top navigation bar. Typically used with CupertinoPageScaffold. |
CupertinoPageScaffold | https://api.flutter.dev/flutter/cupertino/CupertinoPageScaffold-class.html | Basic iOS style page layout structure. Positions a navigation bar and content on a background. |
CupertinoPageTransition | https://api.flutter.dev/flutter/cupertino/CupertinoPageTransition-class.html | Provides an iOS-style page transition animation. |
CupertinoPicker | https://api.flutter.dev/flutter/cupertino/CupertinoPicker-class.html | An iOS-style picker control. Used to select an item in a short list. |
CupertinoPopupSurface | https://api.flutter.dev/flutter/cupertino/CupertinoPopupSurface-class.html | Rounded rectangle surface that looks like an iOS popup surface, such as an alert dialog or action sheet. |
CupertinoScrollbar | https://api.flutter.dev/flutter/cupertino/CupertinoScrollbar-class.html | An iOS-style scrollbar that indicates which portion of a scrollable widget is currently visible. |
CupertinoSearchTextField | https://api.flutter.dev/flutter/cupertino/CupertinoSearchTextField-class.html | An iOS-style search field. |
CupertinoSegmentedControl | https://api.flutter.dev/flutter/cupertino/CupertinoSegmentedControl-class.html | An iOS-style segmented control. Used to select mutually exclusive options in a horizontal list. |
CupertinoSlider | https://api.flutter.dev/flutter/cupertino/CupertinoSlider-class.html | Used to select from a range of values. |
CupertinoSlidingSegmentedControl | https://api.flutter.dev/flutter/cupertino/CupertinoSlidingSegmentedControl-class.html | An iOS-13-style segmented control. Used to select mutually exclusive options in a horizontal list. |
CupertinoSliverNavigationBar | https://api.flutter.dev/flutter/cupertino/CupertinoSliverNavigationBar-class.html | An iOS-styled navigation bar with iOS-11-style large titles using slivers. |
CupertinoSwitch | https://api.flutter.dev/flutter/cupertino/CupertinoSwitch-class.html | An iOS-style switch. Used to toggle the on/off state of a single setting. |
CupertinoTabBar | https://api.flutter.dev/flutter/cupertino/CupertinoTabBar-class.html | An iOS-style bottom tab bar. Typically used with CupertinoTabScaffold. |
CupertinoTabScaffold | https://api.flutter.dev/flutter/cupertino/CupertinoTabScaffold-class.html | Tabbed iOS app structure. Positions a tab bar on top of tabs of content. |
CupertinoTabView | https://api.flutter.dev/flutter/cupertino/CupertinoTabView-class.html | Root content of a tab that supports parallel navigation between tabs. Typically used with CupertinoTabScaffold. |
CupertinoTextField | https://api.flutter.dev/flutter/cupertino/CupertinoTextField-class.html | An iOS-style text field. |
CupertinoTimerPicker | https://api.flutter.dev/flutter/cupertino/CupertinoTimerPicker-class.html | An iOS-style countdown timer picker. |
Input
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Autocomplete | https://api.flutter.dev/flutter/material/Autocomplete-class.html | A widget for helping the user make a selection by entering some text and choosing from among a list of options. |
Form | https://api.flutter.dev/flutter/widgets/Form-class.html | An optional container for grouping together multiple form field widgets (e.g. TextField widgets). |
FormField | https://api.flutter.dev/flutter/widgets/FormField-class.html | A single form field. This widget maintains the current state of the form field, so that updates and validation errors are visually reflected in the UI. |
RawKeyboardListener | https://api.flutter.dev/flutter/widgets/RawKeyboardListener-class.html | A widget that calls a callback whenever the user presses or releases a key on a keyboard. |
Interaction Models
組件名稱名字 | 視頻URL | 組件英文描述 |
---|
Touch interactions
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
AbsorbPointer | https://api.flutter.dev/flutter/widgets/AbsorbPointer-class.html | A widget that absorbs pointers during hit testing. When absorbing is true, this widget prevents its subtree from receiving pointer events by terminating hit testing at itself. It still consumes space during layout and paints its child as usual. It just prevents its children from being the target of located events, because it returns true from RenderBox.hitTest. |
Dismissible | https://api.flutter.dev/flutter/widgets/Dismissible-class.html | A widget that can be dismissed by dragging in the indicated direction. Dragging or flinging this widget in the DismissDirection causes the child to slide out of view. Following the slide animation, if resizeDuration is non-null, the Dismissible widget animates its height (or width, whichever is perpendicular to the dismiss direction) to zero over the resizeDuration. |
DragTarget | https://api.flutter.dev/flutter/widgets/DragTarget-class.html | A widget that receives data when a Draggable widget is dropped. When a draggable is dragged on top of a drag target, the drag target is asked whether it will accept the data the draggable is carrying. If the user does drop the draggable on top of the drag target (and the drag target has indicated that it will accept the draggable's data), then the drag target is asked to accept the draggable's data. |
Draggable | https://api.flutter.dev/flutter/widgets/Draggable-class.html | A widget that can be dragged from to a DragTarget. When a draggable widget recognizes the start of a drag gesture, it displays a feedback widget that tracks the user's finger across the screen. If the user lifts their finger while on top of a DragTarget, that target is given the opportunity to accept the data carried by the draggable. |
DraggableScrollableSheet | https://api.flutter.dev/flutter/widgets/DraggableScrollableSheet-class.html | A container for a Scrollable that responds to drag gestures by resizing the scrollable until a limit is reached, and then scrolling. |
GestureDetector | https://api.flutter.dev/flutter/widgets/GestureDetector-class.html | A widget that detects gestures. Attempts to recognize gestures that correspond to its non-null callbacks. If this widget has a child, it defers to that child for its sizing behavior. If it does not have a child, it grows to fit the parent instead. |
IgnorePointer | https://api.flutter.dev/flutter/widgets/IgnorePointer-class.html | A widget that is invisible during hit testing. When ignoring is true, this widget (and its subtree) is invisible to hit testing. It still consumes space during layout and paints its child as usual. It just cannot be the target of located events, because it returns false from RenderBox.hitTest. |
InteractiveViewer | https://api.flutter.dev/flutter/widgets/InteractiveViewer-class.html | A widget that enables pan and zoom interactions with its child. |
LongPressDraggable | https://api.flutter.dev/flutter/widgets/LongPressDraggable-class.html | Makes its child draggable starting from long press. |
Scrollable | https://api.flutter.dev/flutter/widgets/Scrollable-class.html | Scrollable implements the interaction model for a scrollable widget, including gesture recognition, but does not have an opinion about how the viewport, which actually displays the children, is constructed. |
Routing
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Hero | https://api.flutter.dev/flutter/widgets/Hero-class.html | A widget that marks its child as being a candidate for hero animations. |
Navigator | https://api.flutter.dev/flutter/widgets/Navigator-class.html | A widget that manages a set of child widgets with a stack discipline. Many apps have a navigator near the top of their widget hierarchy to display their logical history using an Overlay with the most recently visited pages visually on top of the older pages. Using this pattern lets the navigator visually transition from one page to another by moving the widgets around in the overlay. Similarly, the navigator can be used to show a dialog by positioning the dialog widget above the current page. |
Layout
組件名稱名字 | 視頻URL | 組件英文描述 |
---|
Single-child layout widgets
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Align | https://api.flutter.dev/flutter/widgets/Align-class.html | A widget that aligns its child within itself and optionally sizes itself based on the child's size. |
AspectRatio | https://api.flutter.dev/flutter/widgets/AspectRatio-class.html | A widget that attempts to size the child to a specific aspect ratio. |
Baseline | https://api.flutter.dev/flutter/widgets/Baseline-class.html | A widget that positions its child according to the child's baseline. |
Center | https://api.flutter.dev/flutter/widgets/Center-class.html | A widget that centers its child within itself. |
ConstrainedBox | https://api.flutter.dev/flutter/widgets/ConstrainedBox-class.html | A widget that imposes additional constraints on its child. |
Container | https://api.flutter.dev/flutter/widgets/Container-class.html | A convenience widget that combines common painting, positioning, and sizing widgets. |
CustomSingleChildLayout | https://api.flutter.dev/flutter/widgets/CustomSingleChildLayout-class.html | A widget that defers the layout of its single child to a delegate. |
Expanded | https://api.flutter.dev/flutter/widgets/Expanded-class.html | A widget that expands a child of a Row, Column, or Flex. |
FittedBox | https://api.flutter.dev/flutter/widgets/FittedBox-class.html | Scales and positions its child within itself according to fit. |
FractionallySizedBox | https://api.flutter.dev/flutter/widgets/FractionallySizedBox-class.html | A widget that sizes its child to a fraction of the total available space. For more details about the layout algorithm, see RenderFractionallySizedOverflowBox. |
IntrinsicHeight | https://api.flutter.dev/flutter/widgets/IntrinsicHeight-class.html | A widget that sizes its child to the child's intrinsic height. |
IntrinsicWidth | https://api.flutter.dev/flutter/widgets/IntrinsicWidth-class.html | A widget that sizes its child to the child's intrinsic width. |
LimitedBox | https://api.flutter.dev/flutter/widgets/LimitedBox-class.html | A box that limits its size only when it's unconstrained. |
Offstage | https://api.flutter.dev/flutter/widgets/Offstage-class.html | A widget that lays the child out as if it was in the tree, but without painting anything, without making the child available for hit testing, and without taking any room in the parent. |
OverflowBox | https://api.flutter.dev/flutter/widgets/OverflowBox-class.html | A widget that imposes different constraints on its child than it gets from its parent, possibly allowing the child to overflow the parent. |
Padding | https://api.flutter.dev/flutter/widgets/Padding-class.html | A widget that insets its child by the given padding. |
SizedBox | https://api.flutter.dev/flutter/widgets/SizedBox-class.html | A box with a specified size. If given a child, this widget forces its child to have a specific width and/or height (assuming values are permitted by this widget's parent). If either the width or height is null, this widget will size itself to match the child's size in that dimension. |
SizedOverflowBox | https://api.flutter.dev/flutter/widgets/SizedOverflowBox-class.html | A widget that is a specific size but passes its original constraints through to its child, which will probably overflow. |
Transform | https://api.flutter.dev/flutter/widgets/Transform-class.html | A widget that applies a transformation before painting its child. |
Multi-child layout widgets
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Column | https://api.flutter.dev/flutter/widgets/Column-class.html | Layout a list of child widgets in the vertical direction. |
CustomMultiChildLayout | https://api.flutter.dev/flutter/widgets/CustomMultiChildLayout-class.html | A widget that uses a delegate to size and position multiple children. |
Flow | https://api.flutter.dev/flutter/widgets/Flow-class.html | A widget that implements the flow layout algorithm. |
GridView | https://api.flutter.dev/flutter/widgets/GridView-class.html | A grid list consists of a repeated pattern of cells arrayed in a vertical and horizontal layout. The GridView widget implements this component. |
IndexedStack | https://api.flutter.dev/flutter/widgets/IndexedStack-class.html | A Stack that shows a single child from a list of children. |
LayoutBuilder | https://api.flutter.dev/flutter/widgets/LayoutBuilder-class.html | Builds a widget tree that can depend on the parent widget's size. |
ListBody | https://api.flutter.dev/flutter/widgets/ListBody-class.html | A widget that arranges its children sequentially along a given axis, forcing them to the dimension of the parent in the other axis. |
ListView | https://api.flutter.dev/flutter/widgets/ListView-class.html | A scrollable, linear list of widgets. ListView is the most commonly used scrolling widget. It displays its children one after another in the scroll direction. In the cross axis, the children are required to fill the ListView. |
Row | https://api.flutter.dev/flutter/widgets/Row-class.html | Layout a list of child widgets in the horizontal direction. |
Stack | https://api.flutter.dev/flutter/widgets/Stack-class.html | This class is useful if you want to overlap several children in a simple way, for example having some text and an image, overlaid with a gradient and a button attached to the bottom. |
Table | https://api.flutter.dev/flutter/widgets/Table-class.html | A widget that uses the table layout algorithm for its children. |
Wrap | https://api.flutter.dev/flutter/widgets/Wrap-class.html | A widget that displays its children in multiple horizontal or vertical runs. |
Sliver widgets
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
CupertinoSliverNavigationBar | https://api.flutter.dev/flutter/cupertino/CupertinoSliverNavigationBar-class.html | An iOS-styled navigation bar with iOS-11-style large titles using slivers. |
CustomScrollView | https://api.flutter.dev/flutter/widgets/CustomScrollView-class.html | A ScrollView that creates custom scroll effects using slivers. |
SliverAppBar | https://api.flutter.dev/flutter/material/SliverAppBar-class.html | A material design app bar that integrates with a CustomScrollView. |
SliverChildBuilderDelegate | https://api.flutter.dev/flutter/widgets/SliverChildBuilderDelegate-class.html | A delegate that supplies children for slivers using a builder callback. |
SliverChildListDelegate | https://api.flutter.dev/flutter/widgets/SliverChildListDelegate-class.html | A delegate that supplies children for slivers using an explicit list. |
SliverFixedExtentList | https://api.flutter.dev/flutter/widgets/SliverFixedExtentList-class.html | A sliver that places multiple box children with the same main axis extent in a linear array. |
SliverGrid | https://api.flutter.dev/flutter/widgets/SliverGrid-class.html | A sliver that places multiple box children in a two dimensional arrangement. |
SliverList | https://api.flutter.dev/flutter/widgets/SliverList-class.html | A sliver that places multiple box children in a linear array along the main axis. |
SliverPadding | https://api.flutter.dev/flutter/widgets/SliverPadding-class.html | A sliver that applies padding on each side of another sliver. |
SliverPersistentHeader | https://api.flutter.dev/flutter/widgets/SliverPersistentHeader-class.html | A sliver whose size varies when the sliver is scrolled to the edge of the viewport opposite the sliver's GrowthDirection. |
SliverToBoxAdapter | https://api.flutter.dev/flutter/widgets/SliverToBoxAdapter-class.html | A sliver that contains a single box widget. |
Material Components
組件名稱名字 | 視頻URL | 組件英文描述 |
---|
App structure and navigation
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Appbar | https://api.flutter.dev/flutter/material/AppBar-class.html | A Material Design app bar. An app bar consists of a toolbar and potentially other widgets, such as a TabBar and a FlexibleSpaceBar. |
BottomNavigationBar | https://api.flutter.dev/flutter/material/BottomNavigationBar-class.html | Bottom navigation bars make it easy to explore and switch between top-level views in a single tap. The BottomNavigationBar widget implements this component. |
Drawer | https://api.flutter.dev/flutter/material/Drawer-class.html | A Material Design panel that slides in horizontally from the edge of a Scaffold to show navigation links in an application. |
MaterialApp | https://api.flutter.dev/flutter/material/MaterialApp-class.html | A convenience widget that wraps a number of widgets that are commonly required for applications implementing Material Design. |
Scaffold | https://api.flutter.dev/flutter/material/Scaffold-class.html | Implements the basic Material Design visual layout structure. This class provides APIs for showing drawers, snack bars, and bottom sheets. |
SliverAppBar | https://api.flutter.dev/flutter/material/SliverAppBar-class.html | A material design app bar that integrates with a CustomScrollView. |
TabBar | https://api.flutter.dev/flutter/material/TabBar-class.html | A Material Design widget that displays a horizontal row of tabs. |
TabBarView | https://api.flutter.dev/flutter/material/TabBarView-class.html | A page view that displays the widget which corresponds to the currently selected tab. Typically used in conjunction with a TabBar. |
TabController | https://api.flutter.dev/flutter/material/TabController-class.html | Coordinates tab selection between a TabBar and a TabBarView. |
TabPageSelector | https://api.flutter.dev/flutter/material/TabPageSelector-class.html | Displays a row of small circular indicators, one per tab. The selected tab's indicator is highlighted. Often used in conjunction with a TabBarView. |
WidgetsApp | https://api.flutter.dev/flutter/widgets/WidgetsApp-class.html | A convenience class that wraps a number of widgets that are commonly required for an application. |
Buttons
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
DropdownButton | https://api.flutter.dev/flutter/material/DropdownButton-class.html | Shows the currently selected item and an arrow that opens a menu for selecting another item. |
ElevatedButton | https://api.flutter.dev/flutter/material/ElevatedButton-class.html | A Material Design elevated button. A filled button whose material elevates when pressed. |
FloatingActionButton | https://api.flutter.dev/flutter/material/FloatingActionButton-class.html | A floating action button is a circular icon button that hovers over content to promote a primary action in the application. Floating action buttons are most commonly used in the Scaffold.floatingActionButton field. |
IconButton | https://api.flutter.dev/flutter/material/IconButton-class.html | An icon button is a picture printed on a Material widget that reacts to touches by filling with color (ink). |
OutlinedButton | https://api.flutter.dev/flutter/material/OutlinedButton-class.html | A Material Design outlined button, essentially a TextButton with an outlined border. |
PopupMenuButton | https://api.flutter.dev/flutter/material/PopupMenuButton-class.html | Displays a menu when pressed and calls onSelected when the menu is dismissed because an item was selected. |
TextButton | https://api.flutter.dev/flutter/material/TextButton-class.html | A Material Design text button. A simple flat button without a border outline. |
Input and selections
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Checkbox | https://api.flutter.dev/flutter/material/Checkbox-class.html | Checkboxes allow the user to select multiple options from a set. The Checkbox widget implements this component. |
Date & Time Pickers | https://api.flutter.dev/flutter/material/showDatePicker.html | Date pickers use a dialog window to select a single date on mobile. Time pickers use a dialog to select a single time (in the hours:minutes format) on mobile. |
Radio | https://api.flutter.dev/flutter/material/Radio-class.html | Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive selection if you think that the user needs to see all available options side-by-side. |
Slider | https://api.flutter.dev/flutter/material/Slider-class.html | Sliders let users select from a range of values by moving the slider thumb. |
Switch | https://api.flutter.dev/flutter/material/Switch-class.html | On/off switches toggle the state of a single settings option. The Switch widget implements this component. |
TextField | https://api.flutter.dev/flutter/material/TextField-class.html | Touching a text field places the cursor and displays the keyboard. The TextField widget implements this component. |
Dialogs, alerts, and panels
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
AlertDialog | https://api.flutter.dev/flutter/material/AlertDialog-class.html | Alerts are urgent interruptions requiring acknowledgement that inform the user about a situation. The AlertDialog widget implements this component. |
BottomSheet | https://api.flutter.dev/flutter/material/BottomSheet-class.html | Bottom sheets slide up from the bottom of the screen to reveal more content. You can call showBottomSheet() to implement a persistent bottom sheet or showModalBottomSheet() to implement a modal bottom sheet. |
ExpansionPanel | https://api.flutter.dev/flutter/material/ExpansionPanel-class.html | Expansion panels contain creation flows and allow lightweight editing of an element. The ExpansionPanel widget implements this component. |
SimpleDialog | https://api.flutter.dev/flutter/material/SimpleDialog-class.html | Simple dialogs can provide additional details or actions about a list item. For example they can display avatars icons clarifying subtext or orthogonal actions (such as adding an account). |
SnackBar | https://api.flutter.dev/flutter/material/SnackBar-class.html | A lightweight message with an optional action which briefly displays at the bottom of the screen. |
Information displays
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Card | https://api.flutter.dev/flutter/material/Card-class.html | A Material Design card. A card has slightly rounded corners and a shadow. |
Chip | https://api.flutter.dev/flutter/material/Chip-class.html | A Material Design chip. Chips represent complex entities in small blocks, such as a contact. |
CircularProgressIndicator | https://api.flutter.dev/flutter/material/CircularProgressIndicator-class.html | A material design circular progress indicator, which spins to indicate that the application is busy. |
DataTable | https://api.flutter.dev/flutter/material/DataTable-class.html | Data tables display sets of raw data. They usually appear in desktop enterprise products. The DataTable widget implements this component. |
GridView | https://api.flutter.dev/flutter/widgets/GridView-class.html | A grid list consists of a repeated pattern of cells arrayed in a vertical and horizontal layout. The GridView widget implements this component. |
Icon | https://api.flutter.dev/flutter/widgets/Icon-class.html | A Material Design icon. |
Image | https://api.flutter.dev/flutter/widgets/Image-class.html | A widget that displays an image. |
LinearProgressIndicator | https://api.flutter.dev/flutter/material/LinearProgressIndicator-class.html | A material design linear progress indicator, also known as a progress bar. |
Tooltip | https://api.flutter.dev/flutter/material/Tooltip-class.html | Tooltips provide text labels that help explain the function of a button or other user interface action. Wrap the button in a Tooltip widget to show a label when the widget long pressed (or when the user takes some other appropriate action). |
Layout
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
Divider | https://api.flutter.dev/flutter/material/Divider-class.html | A one logical pixel thick horizontal line, with padding on either side. |
ListTile | https://api.flutter.dev/flutter/material/ListTile-class.html | A single fixed-height row that typically contains some text as well as a leading or trailing icon. |
Stepper | https://api.flutter.dev/flutter/material/Stepper-class.html | A Material Design stepper widget that displays progress through a sequence of steps. |
Painting and effects
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
BackdropFilter | https://api.flutter.dev/flutter/widgets/BackdropFilter-class.html | A widget that applies a filter to the existing painted content and then paints a child. This effect is relatively expensive, especially if the filter is non-local, such as a blur. |
ClipOval | https://api.flutter.dev/flutter/widgets/ClipOval-class.html | A widget that clips its child using an oval. |
ClipPath | https://api.flutter.dev/flutter/widgets/ClipPath-class.html | A widget that clips its child using a path. |
ClipRect | https://api.flutter.dev/flutter/widgets/ClipRect-class.html | A widget that clips its child using a rectangle. |
CustomPaint | https://api.flutter.dev/flutter/widgets/CustomPaint-class.html | A widget that provides a canvas on which to draw during the paint phase. |
DecoratedBox | https://api.flutter.dev/flutter/widgets/DecoratedBox-class.html | A widget that paints a Decoration either before or after its child paints. |
FractionalTranslation | https://api.flutter.dev/flutter/widgets/FractionalTranslation-class.html | A widget that applies a translation expressed as a fraction of the box's size before painting its child. |
Opacity | https://api.flutter.dev/flutter/widgets/Opacity-class.html | A widget that makes its child partially transparent. |
RotatedBox | https://api.flutter.dev/flutter/widgets/RotatedBox-class.html | A widget that rotates its child by a integral number of quarter turns. |
Transform | https://api.flutter.dev/flutter/widgets/Transform-class.html | A widget that applies a transformation before painting its child. |
Scrolling
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
CustomScrollView | https://api.flutter.dev/flutter/widgets/CustomScrollView-class.html | A ScrollView that creates custom scroll effects using slivers. |
DraggableScrollableSheet | https://api.flutter.dev/flutter/widgets/DraggableScrollableSheet-class.html | A container for a Scrollable that responds to drag gestures by resizing the scrollable until a limit is reached, and then scrolling. |
GridView | https://api.flutter.dev/flutter/widgets/GridView-class.html | A grid list consists of a repeated pattern of cells arrayed in a vertical and horizontal layout. The GridView widget implements this component. |
ListView | https://api.flutter.dev/flutter/widgets/ListView-class.html | A scrollable, linear list of widgets. ListView is the most commonly used scrolling widget. It displays its children one after another in the scroll direction. In the cross axis, the children are required to fill the ListView. |
NestedScrollView | https://api.flutter.dev/flutter/widgets/NestedScrollView-class.html | A scrolling view inside of which can be nested other scrolling views, with their scroll positions being intrinsically linked. |
NotificationListener | https://api.flutter.dev/flutter/widgets/NotificationListener-class.html | A widget that listens for Notifications bubbling up the tree. |
PageView | https://api.flutter.dev/flutter/widgets/PageView-class.html | A scrollable list that works page by page. |
RefreshIndicator | https://api.flutter.dev/flutter/material/RefreshIndicator-class.html | A Material Design pull-to-refresh wrapper for scrollables. |
ReorderableListView | https://api.flutter.dev/flutter/material/ReorderableListView-class.html | A list whose items the user can interactively reorder by dragging. |
ScrollConfiguration | https://api.flutter.dev/flutter/widgets/ScrollConfiguration-class.html | Controls how Scrollable widgets behave in a subtree. |
Scrollable | https://api.flutter.dev/flutter/widgets/Scrollable-class.html | Scrollable implements the interaction model for a scrollable widget, including gesture recognition, but does not have an opinion about how the viewport, which actually displays the children, is constructed. |
Scrollbar | https://api.flutter.dev/flutter/material/Scrollbar-class.html | A Material Design scrollbar. A scrollbar indicates which portion of a Scrollable widget is actually visible. |
SingleChildScrollView | https://api.flutter.dev/flutter/widgets/SingleChildScrollView-class.html | A box in which a single widget can be scrolled. This widget is useful when you have a single box that will normally be entirely visible, for example a clock face in a time picker, but you need to make sure it can be scrolled if the container gets too small in one axis (the scroll direction). |
Styling
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
MediaQuery | https://api.flutter.dev/flutter/widgets/MediaQuery-class.html | Establishes a subtree in which media queries resolve to the given data. |
Padding | https://api.flutter.dev/flutter/widgets/Padding-class.html | A widget that insets its child by the given padding. |
Theme | https://api.flutter.dev/flutter/material/Theme-class.html | Applies a theme to descendant widgets. A theme describes the colors and typographic choices of an application. |
Text
組件名稱名字 | 視頻URL | 組件英文描述 |
---|---|---|
DefaultTextStyle | https://api.flutter.dev/flutter/widgets/DefaultTextStyle-class.html | The text style to apply to descendant Text widgets without explicit style. |
RichText | https://api.flutter.dev/flutter/widgets/RichText-class.html | The RichText widget displays text that uses multiple different styles. The text to display is described using a tree of TextSpan objects, each of which has an associated style that is used for that subtree. The text might break across multiple lines or might all be displayed on the same line depending on the layout constraints. |
Text | https://api.flutter.dev/flutter/widgets/Text-class.html | A run of text with a single style. |