Files
pipelines/app/lib/features/chat/chat_run_opener.dart
T
alan f02ff56dfe App: dark-aware HTML views, run cards, changed/missing file notes, one card width, dense diff rows
show_html documents that declare dark support follow the app theme; others
stay light. Tool description and skill docs say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 19:54:58 +00:00

18 lines
614 B
Dart

import 'package:flutter/widgets.dart';
/// Opens a run's detail from inside a chat (a `show_run` card). The app shell
/// provides it above every chat surface; without one a run card is not
/// activatable.
class ChatRunOpener extends InheritedWidget {
const ChatRunOpener({super.key, required this.openRun, required super.child});
final ValueChanged<int> openRun;
static ValueChanged<int>? maybeOf(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<ChatRunOpener>()?.openRun;
@override
bool updateShouldNotify(ChatRunOpener oldWidget) =>
openRun != oldWidget.openRun;
}