Skip to main content

側選單 ApDrawer

提供校務通v3風格側選單,Flutter 原生的 Drawer 封裝

另提供

  • DrawerItem

  • DrawerSubItem

    drawing
使用時必須先完成

ApDrawer#

側選單,通常放在左側

參數名稱型態描述
userInfoUserInfo使用者資訊,會在Header顯示 照片名字學號
onTapHeaderFunction()Header 點擊事件
imageAssetStringHeader 右邊的圖片,使用 Asset Image 載入
widgetsList<Widget>抽屜主體的Widget List,屬於Flutter原生API
imageHeroTagStringHeader 中的圖片支援Flutter Hero,可自訂 Tag 對應畫面的tag,預設為 tag_student_picture
displayPicturebool是否顯示照片,true時顯示 ApIcon.person 的圖案

DrawerItem#

側選單的項目,通常放在側選單中

參數名稱型態描述
iconIconData圖案資料,可使用 Icons 系列
titleString標題
onTapFunction()點擊事件

DrawerSubItem#

側選單的子項目,通常放在側選單項目中

參數名稱型態描述
iconIconData圖案資料,可使用 Icons 系列
titleString標題
onTapFunction()點擊事件