メール一覧の行を左にスワイプすると「アーカイブ」「削除」のボタンが出る Swipe Actions にして。端まで引き切ったら削除が即実行されるように。
# Swipe Actions / スワイプで操作ボタンを出す
- id: `swipe_actions` URL: https://uizukan.dev/entry/swipe_actions/
- 種別: アクション / Gestures
- 別名: Swipe to Reveal, Leading/Trailing Swipe Actions, Slidable, Swipe Menu
- 呼び名: Material 3=該当なし(M3 に無い) / Material 2=該当なし(M2 に無い) / Android (Compose)=SwipeToDismissBox(背景に action) / iOS (HIG)=Swipe(reveal actions) / SwiftUI=.swipeActions(edge:) / Web=該当なし(Pointer Events で自作) / Flutter=flutter_slidable(Slidable + ActionPane)
- Flutter: `flutter_slidable(Slidable + ActionPane)`
- 関連: swipe_to_dismiss, list_tile, popup_menu
**説明**: 行をスワイプすると隠れていたボタン群がスライドして出る。iOS メールの標準挙動。端まで引き切ると先頭のアクションが即実行される(full swipe)。
**使いどころ**: 行ごとに 2〜3 個の操作がある一覧(メール、タスク、チャット一覧)。
**AI への伝え方(日本語)**: メール一覧の行を左にスワイプすると「アーカイブ」「削除」のボタンが出る Swipe Actions にして。端まで引き切ったら削除が即実行されるように。
**Prompt (English)**: Add Swipe Actions to the mail list: swiping a row left reveals "Archive" and "Delete" buttons; a full swipe immediately deletes.
詳細プロンプト は Pro
開発者向け Pro(準備中)で、AI が MCP から直接取りに行けるようになります。名前・デモ・プロンプト・Markdown は無料のままです。
Pro の案内を見る
Flutter コード は Pro
開発者向け Pro(準備中)で、AI が MCP から直接取りに行けるようになります。名前・デモ・プロンプト・Markdown は無料のままです。
Pro の案内を見る