本程式採用MVVM架構夠進行開發,將UI層和資料層分離,增加可讀性和可維護性。
亮點:
- 使用
Card
Compose 元件製作卡片效果 - 性別選擇用
SingleChoiceSegmentedButtonRow
進行開發 - 文字輸入框使用
OutlinedTextField
,並撰寫一個MyOutlinedTextField
元件方便相同樣式的元件重複使用 - UI 整體設計遵循 Material 3(盡力,美感不太好)
OutlinedTextField
內建效果會將 placeholder 往上移動(含動畫)- 鍵盤為數字鍵盤