Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)48k · #5152

makepad-reference

Skill này làm gì

Hướng dẫn này giúp khắc phục các lỗi thường gặp khi dùng công cụ Makepad. Nó đưa ra giải pháp nhanh cho các lỗi build, giao diện và cập nhật.

Khi nào nên dùng

  • ✓Khi mã Makepad của bạn không biên dịch được.
  • ✓Khi giao diện người dùng không cập nhật như bạn mong đợi.
  • ✓Khi bạn muốn nhanh chóng tìm cách sửa một lỗi cụ thể.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-reference/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/makepad-reference/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chữ của tôi không hiển thị đúng phông, tôi phải làm gì?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ so sánh mã của bạn với đúng phiên bản Makepad bạn đang dùng để tìm vấn đề. Nó liệt kê các lỗi thường gặp và cách khắc phục.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Makepad Reference

This category provides reference materials for debugging, code quality, and advanced layout patterns.

When to Use

  • You need quick-reference material for common Makepad errors, debugging, or API lookups.
  • The task is diagnostic or reference-oriented rather than writing a focused feature in one subsystem.
  • You want a central starting point before diving into more specialized Makepad skills.

Quick Navigation

Topic File Use When
API Documentation Official docs index, quick API reference Finding detailed API info
Troubleshooting Common errors and fixes Build fails, runtime errors
Code Quality Makepad-aware refactoring Simplifying code safely
Adaptive Layout Desktop/mobile responsive Cross-platform layouts

Common Issues Quick Reference

Error Quick Fix
no matching field: font Use text_style: <THEME_FONT_*>{}
Color parse error Check the installed live-design parser syntax; changing a valid hex color is not a general fix
set_text missing argument Add cx as first argument
UI not updating Call redraw(cx) after changes
Widget not found Check ID spelling, use ids!() for paths

Debug Tips

# Run with line info for better error messages
MAKEPAD=lines cargo run  # Use the project-pinned toolchain; verify this diagnostic flag for its revision
// Add logging
log!("Value: {:?}", my_value);
log!("State: {} / {}", self.counter, self.is_loading);

Resources

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

The navigation table names topics, not bundled reference files. Verify exact Makepad API signatures and the project toolchain before changing code; preserve private values in logs, and test widget updates, input and target layouts rather than assuming a redraw call fixes every issue.

Câu hỏi thường gặp

Makepad là gì?

Makepad là công cụ để xây dựng giao diện người dùng cho ứng dụng.

Làm sao để biết bạn đang dùng phiên bản Makepad nào?

Hướng dẫn gợi ý chạy `MAKEPAD=lines cargo run` để xem thêm chi tiết về phiên bản.

“redraw(cx)” nghĩa là gì?

Đây là lệnh báo cho Makepad biết giao diện cần được cập nhật sau một thay đổi.

Chi tiết

Mô tả gốc của tác giả

Guide to diagnosing Makepad build, widget, redraw and layout issues against the exact runtime revision.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5152
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự