Логотип Motion And Haptics

Motion And Haptics

Спільнота
zakariaf
motion-and-haptics

Забезпечує продуманий зворотний зв’язок під час взаємодії замість типових реакцій фреймворку: кожна дія, що фіксує зміни, отримує підтвердження в тому самому кадрі; анімація лише прикрашає стан, а не є самим станом (кінцевий результат однаковий навіть із вимкненою анімацією); каталог ефектів із назвою для кожного визначає тригер, призначення тривалості, тип тактильного відгуку та альтернативу для режиму зменшення руху ще на етапі дизайну; тактильний відгук налаштовується в HapticTheme як відповідність події та інтенсивності й спрацьовує рівно один раз у кадрі фіксації змін (ніколи на кожному кадрі анімації, ніколи для об’єднаного введення та ніколи через heavyImpact у разі помилки) і керується одним центральним перемикачем; кожну анімацію можна перервати, щоб натискання довело її до кінцевого стану; святковий ефект має обмежену тривалість, відтворюється один раз, не зациклюється й не блокує введення; для кожної повторюваної анімації визначено умову зупинки (вихід з екрана, перехід у фоновий режим, зменшення руху); відгук використовує більше ніж один канал, щоб тактильні сигнали й звук зберігалися навіть у режимі зменшення руху. Використовуйте під час додавання чи налаштування анімації, стану успіху або помилки, тактильного відгуку, святкового ефекту чи переходу між екранами.

Add to TypingMind

Огляд

Видавецьzakariaf
РепозиторійFlutter-Skills
Назва навичкиmotion-and-haptics
Зірки
64
Форки
15
Файли в пакеті
1
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 1

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: zakariaf. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Motion And Haptics у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/zakariaf/Flutter-Skills/tree/main/skills/motion-and-haptics
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zakariaf/Flutter-Skills.git /tmp/Flutter-Skills
mkdir -p .claude/skills
cp -r /tmp/Flutter-Skills/skills/motion-and-haptics .claude/skills/motion-and-haptics
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Motion And Haptics в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Motion And Haptics, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Motion And Haptics не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Motion and haptics

What fires, when, exactly once, and how it degrades. Feedback is the layer users feel rather than read — an app whose taps land, whose errors are felt, and whose success is acknowledged reads as finished; the same app with default Material feedback reads as a prototype.

Scope boundary. Motion tokens — duration roles, curve slots, the no-raw-values gate, and resolveMotion collapsing to Duration.zero under reduced motion — are owned by design-system-structure. Painter/ticker mechanics are owned by custom-canvas-and-gestures. Which surface a message uses — loading, empty, error, snackbar, banner, dialog, Undo, and screen-reader announcements — is owned by ui-states-and-feedback. This skill owns the sensory layer those decisions ride on: which moments exist, what each one commits to, how haptics are mapped and fired, and what survives when the animation does not.

Non-negotiable rules

  1. Every committing interaction is acknowledged in the same frame it happens. Finger-down shows a press state immediately; the commit's own feedback follows on commit. WHY: a control that waits for an async result before showing anything is indistinguishable from a control that did not register the tap, and the user taps again.

  2. Motion decorates state; it is never the state. The end state must be identical, correct, and reachable with all animations disabled. A selection that only exists while its animation runs, or a value that is only legible mid-transition, is a bug that reduced-motion users hit every time.

  3. Name your moments and design each one deliberately. Every app has a small catalog — press acknowledgment, rejected input, the commit payoff, success, progress or streak increment, and the signature screen transition. Each moment declares five things: its trigger, what changes, which duration role and curve it spends, its haptic slot, and its reduced-motion fallback. A moment left unspecified is not "minimal" — it is the framework default, chosen by nobody. See references/moment-catalog.md.

  4. Every animation declares its reduced-motion behaviour at design time. "It is small, nobody will mind" is not a fallback. The mechanism (resolveMotion → Duration.zero) belongs to design-system-structure; the decision — cross-fade to the end state, appear already-complete, omit the flourish entirely — is made per moment, here, and written down. Feature code never re-reads the platform flag per animation.

  5. Haptics are a map, not scattered calls. A HapticTheme extension maps each event to at most one HapticFeedback verb: selection ≤ selectionClick, commit ≤ lightImpact/mediumImpact, rejection ≤ lightImpact, success ≤ mediumImpact, and heavyImpact reserved for a genuine milestone. A null slot is a declared silence, not an omission. WHY: haptics added ad hoc at call sites always drift upward in intensity until the app buzzes.

  6. Fire one haptic per committed event, on the commit frame. Never inside an animation callback, never per frame, never once per input in a coalesced gesture — a drag emits at most an engage and a commit. WHY: a haptic per frame is a vibration, and a haptic per coalesced input turns a fast gesture into a rattle.

  7. heavyImpact is never the error sound. Escalating intensity for failure punishes the user for a mistake the UI could have prevented. Rejection is acknowledged, not amplified.

  8. One in-app toggle gates every haptic, celebrations included. Platforms have their own coarse system-haptics setting; an app that fires haptics needs its own switch too, and it must be a single central gate rather than a flag each call site remembers to check.

  9. Every animation is interruptible. A tap during a transition or celebration resolves it to its end state immediately. Never block input for the duration of a flourish, and never make the user wait out a success. WHY: the second time a user sees a celebration they want to be past it.

  10. Celebrations have a budget. Bounded element count, bounded time to the next interactive state, originating from the point of action rather than the screen edges, played once, never looped. Failure states get acknowledgment with no shaming motion. WHY: an unbounded celebration is a load screen the user did not ask for.

  11. Every repeating or ambient animation declares a stop condition. It stops when its route is not current, when the app is backgrounded, and under reduced motion. A repeat() with no stop condition is a battery bug that no test will catch and no reviewer will see.

  12. Feedback is redundant across channels. Haptics and sound survive reduced motion precisely because they are the remaining channels — so a state change may never be carried by motion alone. (Color-alone is owned by accessibility-as-code; this is the motion-alone half of the same rule.)

  13. Sound, if any, is the third channel and never the first. Respect the platform's silent behaviour, keep it short, never require it to understand what happened, and gate it behind the same kind of central toggle as haptics.

  14. Transitions follow reading direction; a fixed content surface does not re-mirror. A horizontal push flips under RTL because navigation is directional; a canvas, board, chart, or media surface whose own layout is direction-neutral stays as it is. Direction geometry is owned by i18n-rtl-l10n.

The moment declaration

Write each moment down before implementing it. The table is the specification — an implementation that cannot fill a column has not finished designing that moment.

MomentTriggerWhat changesDuration roleHapticReduced-motion fallback
Presspointer downpress transformshortestselectionClickinstant state, no transform
Rejectinvalid inputbounded shake + messageshort, interruptiblelightImpactmessage only, no shake
Commitstate committedthe transformation itselfmediumlightImpactend state appears instantly
Successtask completeacknowledgment + resultlong, skippablemediumImpactresult appears already complete
Incrementcounter advancesone emphasis pulseshortselectionClick or silencenew value, no pulse
Transitionroute changethe signature transitionmediumnonecross-fade or none

Durations here are roles, not numbers — the numbers are tokens owned by design-system-structure.

Firing a haptic exactly once

dart
// The event map lives in the theme; call sites name an event, never an intensity.
@immutable
class HapticTheme extends ThemeExtension<HapticTheme> {
  const HapticTheme({this.select, this.commit, this.reject, this.success});

  /// A null slot is a DECLARED silence — the design said no haptic here.
  final Future<void> Function()? select;
  final Future<void> Function()? commit;
  final Future<void> Function()? reject;
  final Future<void> Function()? success;
  // copyWith / lerp omitted — see design-system-structure for the ThemeExtension contract.
}

// One central gate; no call site remembers to check the setting.
void fire(WidgetRef ref, Future<void> Function()? slot) {
  if (!ref.read(hapticsEnabledProvider)) return;
  slot?.call();
}

// At the commit — once, on the frame the state actually changed (rules 6, 8).
void onCommit(BuildContext context, WidgetRef ref, EditIntent intent) {
  ref.read(itemsProvider.notifier).apply(intent);          // state first
  fire(ref, Theme.of(context).extension<HapticTheme>()!.commit);
}

Never call HapticFeedback.* from an AnimationController listener, an onEnd callback, or a per-item loop — those are the three places a single event becomes a burst.

Anti-patterns

  • A control with no press state — every "did that register?" double-tap starts here.
  • State that only exists while an animation runs — turn animations off and the app must still be correct and legible.
  • An animation with no designed reduced-motion behaviour, or feature code re-reading the platform flag per animation.
  • HapticFeedback.mediumImpact() sprinkled at call sites — map events to slots once; ad-hoc haptics only ever escalate.
  • A haptic in an animation listener, an onEnd, or per item in a coalesced gesture — one per committed event, on the commit frame.
  • heavyImpact for an error — acknowledge failure, do not punish it.
  • An un-skippable celebration, or blocked input during a flourish — a tap resolves it instantly.
  • A looping celebration, edge-spawned particles, or an unbounded element count — budget it.
  • A "sad" failure animation — the user already knows.
  • repeat() with no stop condition — it must stop off-route, backgrounded, and under reduced motion.
  • Sound as the only signal, or sound that ignores the platform's silent behaviour.
  • A mirrored content surface under RTL — navigation direction flips, a direction-neutral canvas does not.

Definition of done

  • Every committing interaction acknowledges within the same frame.
  • Every moment touched has a filled-in declaration row: trigger, change, duration role, haptic slot, reduced-motion fallback.
  • The end state is identical and reachable with animations disabled; nothing is motion-only.
  • Haptics come from the HapticTheme map, are at or below the intensity ceiling for their event, fire once per committed event on the commit frame, and are gated by one central toggle.
  • null haptic slots are deliberate silences, recorded as such.
  • Every animation is interruptible; a tap resolves it to its end state; input is never blocked.
  • Celebrations are bounded, originate from the point of action, play once, and never loop.
  • Every repeating animation has an explicit stop condition for off-route, backgrounded, and reduced motion.
  • Sound (if any) is redundant, short, silent-mode-aware, and centrally gated.
  • Transitions respect reading direction; direction-neutral content surfaces are not re-mirrored.

Related skills

  • See design-system-structure for the motion tokens, curve slots, and the resolveMotion helper this skill spends — including the three animations Material mounts by default.
  • See custom-canvas-and-gestures for driving canvas animation from an AnimationController as repaint: and for RepaintBoundary placement.
  • See ui-states-and-feedback for the state a moment is feedback about — loading/empty/error rendering, the snackbar/banner/dialog ladder, Undo, and SemanticsService.announce.
  • See accessibility-as-code for the color-alone rule this skill's motion-alone rule mirrors, and for reading platform accessibility flags.
  • See flutter-performance for disposal, boundary budgeting, and profile-mode measurement of anything that feels heavy.
  • See i18n-rtl-l10n for directional geometry under RTL.
  • See design-review-workflow for the end-of-build pass where every declared moment is verified on video with reduced motion on and off.

References

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Motion And Haptics?

Забезпечує продуманий зворотний зв’язок під час взаємодії замість типових реакцій фреймворку: кожна дія, що фіксує зміни, отримує підтвердження в тому самому кадрі; анімація лише прикрашає стан, а не є самим станом (кінцевий результат однаковий навіть із вимкненою анімацією); каталог ефектів із назвою для кожного визначає тригер, призначення тривалості, тип тактильного відгуку та альтернативу для режиму зменшення руху ще на етапі дизайну; тактильний відгук налаштовується в HapticTheme як відповідність події та інтенсивності й спрацьовує рівно один раз у кадрі фіксації змін (ніколи на кожном...

Навіщо використовувати Motion And Haptics у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Motion And Haptics — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Motion And Haptics у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/zakariaf/Flutter-Skills/tree/main/skills/motion-and-haptics. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Motion And Haptics?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Motion And Haptics?

Зі скількома забажаєте. У TypingMind ви можете використовувати Motion And Haptics із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Motion And Haptics?

Так. На GitHub цю навичку публікує zakariaf за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇