flutter-theming

โดย flutter

โยกย้ายแอป Flutter จาก Material 2 ไปยัง Material 3 ด้วยการอัปเดตคอมโพเนนต์และธีมแบบอัตโนมัติ ระบุและแทนที่คอมโพเนนต์ Material 2 ที่เลิกใช้แล้ว (FlatButton, RaisedButton, BottomNavigationBar, Drawer) ด้วยคอมโพเนนต์ที่เทียบเท่าใน Material 3 โดยใช้แผนผังการตัดสินใจ แปลงคุณสมบัติธีมแบบเก่าเป็น ColorScheme ของ Material 3 และลบการอ้างอิงสีเน้นที่เลิกใช้แล้ว (accentColor, accentColorBrightness ฯลฯ) ปรับธีมคอมโพเนนต์ทั้งหมดให้เป็นมาตรฐานโดยใช้คลาส *ThemeData และตรวจสอบให้แน่ใจว่าใช้ useMaterial3:...

npx skills add https://github.com/flutter/skills --skill flutter-theming

Skills เพิ่มเติมจาก flutter

adding-release-notes
flutter
เพิ่มคำอธิบายการเปลี่ยนแปลงที่ผู้ใช้เห็นลงในบันทึกประจำรุ่นของ DevTools ใช้เมื่อบันทึกการปรับปรุง การแก้ไข หรือฟีเจอร์ใหม่ในไฟล์ NEXT_RELEASE_NOTES.md
official
dart-modern-features
flutter
เพื่อหาผู้สมัครสำหรับการปรับปรุงให้ทันสมัย:
official
api-review
flutter
ตรวจสอบโค้ดที่ระบุเทียบกับแนวทาง API Design มาตรฐาน ใช้สกิลนี้เมื่อผู้ใช้ขอให้รีวิว API หรือตรวจสอบโค้ดตามแนวทาง API design…
official
code-documentation
flutter
Guide for writing effective code documentation, including docstrings, JSDoc, dartdoc, and implementation comments. Use this skill when writing new code, adding…
official
dart-add-unit-test
flutter
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code remains…
official
dart-build-cli-app
flutter
โครงสร้างจุดเริ่มต้น, รหัสออกจากโปรแกรม, สคริปต์ข้ามแพลตฟอร์ม ใช้เมื่อสร้างยูทิลิตี้คำสั่ง, สคริปต์, หรือแอปพลิเคชัน
official
dart-collect-coverage
flutter
เก็บข้อมูลความครอบคลุมโดยใช้แพ็กเกจ coverage และสร้างรายงาน LCOV
official
dart-fix-runtime-errors
flutter
ใช้ get_runtime_errors และ lsp เพื่อดึง stack trace ที่ใช้งานอยู่ ค้นหาบรรทัดที่เกิดข้อผิดพลาด ใช้การแก้ไข และตรวจสอบผลลัพธ์ผ่าน hot_reload
official