用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/emavgl/oinkoin --skill markup-text命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Adds a new in-app announcement to Oinkoin using the announcements framework. Use when the user wants to send a user-facing announcement, show a startup dialog, or publish a blog post about a new feature.
Adds a key-value preference to the Oinkoin Flutter app, connects it to the UI and defaults, and integrates safe backup and restore behavior.
Adds consistent, context-aware Talker logging for important Oinkoin operations, diagnostics, warnings, and exceptions.
基于 SOC 职业分类
正在显示 SKILL.md
| name | markup-text |
| description | Adds or updates localized text with reusable inline bold, italic, or underline markup in the Oinkoin Flutter app. |
| argument-hint | [text-or-file] |
Use the shared MarkupText widget when a localized sentence needs part of its text emphasized. Keep the markup in the localized string so translators can reorder the emphasized words naturally.
lib/components/markup_text.dart supports:
<b>...</b> and <strong>...</strong> — bold<i>...</i> and <em>...</em> — italic<u>...</u> — underlineMarkup can be combined and nested where the parser supports it. Text without markup is rendered as ordinary Text.
Store the markup in assets/locales/en-US.json and attach localization directly to the literal:
MarkupText(
"Select the <b>origin</b> wallet".i18n,
style: instructionStyle,
)
Do not localize a conditional expression after choosing the string:
// Avoid this form.
(condition ? "..." : "...").i18n
Prefer .i18n beside each source literal:
final instruction = condition
? MarkupText("Select the <b>origin</b> wallet".i18n)
: MarkupText("Select the <b>destination</b> wallet".i18n);
assets/locales/en-US.json._automated_translation.json with page, component, meaning, and translation notes.python3 scripts/update_en_strings.py when adding a new source string.<b>, <i>, or <u> markers around the translated words; never split the sentence into separate widgets to force English word order.The markup tags are part of the localization key/value and must remain balanced in every locale.
MarkupText merges its supplied style with DefaultTextStyle.of(context).style. Pass only the local visual changes needed by the feature; do not replace the app font family accidentally. The surrounding app typography should remain consistent for both marked and unmarked strings.
Use the same layout and style conventions as neighboring Text widgets. For an instruction or list heading, reuse the existing style rather than creating a new font treatment.
Add or update tests in test/markup_text_test.dart for reusable parser behavior:
TextStyle.For feature-specific markup, add a widget test that verifies the localized sentence and emphasis in each UI state.
.i18n directly._automated_translation.json contains verified context.MarkupText inherits the surrounding typography.