From 9196251e009e325fb93f91cac6481de04c2e1946 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Sat, 11 Jul 2026 23:14:34 +0200 Subject: [PATCH] refactor: FaiError -> ChainError (SDK stub rename lockstep) Signed-off-by: flemming-it --- lib/src/flow_editor_page.dart | 2 +- lib/src/widgets.dart | 6 +++--- lib/src/widgets/run_tab.dart | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/flow_editor_page.dart b/lib/src/flow_editor_page.dart index c3a316c..a80feaf 100644 --- a/lib/src/flow_editor_page.dart +++ b/lib/src/flow_editor_page.dart @@ -1308,7 +1308,7 @@ class _FileList extends StatelessWidget { if (snap.hasError) { return Padding( padding: const EdgeInsets.all(FaiSpace.md), - child: FaiErrorBox(error: snap.error, isError: true), + child: ChainErrorBox(error: snap.error, isError: true), ); } final files = snap.data ?? <_FlowFile>[]; diff --git a/lib/src/widgets.dart b/lib/src/widgets.dart index 6f6b33f..89bf739 100644 --- a/lib/src/widgets.dart +++ b/lib/src/widgets.dart @@ -1,4 +1,4 @@ -/// Minimal stand-ins for the FaiEmptyState + FaiErrorBox +/// Minimal stand-ins for the FaiEmptyState + ChainErrorBox /// widgets Studio ships. The editor brings its own so the /// package compiles standalone — host-styled variants are /// a future plugin-API extension. @@ -53,11 +53,11 @@ class FaiEmptyState extends StatelessWidget { } } -class FaiErrorBox extends StatelessWidget { +class ChainErrorBox extends StatelessWidget { final Object? error; final bool isError; final double? maxHeight; - const FaiErrorBox({ + const ChainErrorBox({ super.key, required this.error, this.isError = true, diff --git a/lib/src/widgets/run_tab.dart b/lib/src/widgets/run_tab.dart index 5fa692d..692276e 100644 --- a/lib/src/widgets/run_tab.dart +++ b/lib/src/widgets/run_tab.dart @@ -639,7 +639,7 @@ class _StepState { /// button cover both keyboard and trackpad operators — the /// implicit selection gesture is too easy to miss on a long /// failure message. Matches the visual treatment Studio's -/// `FaiErrorBox` uses elsewhere; kept local to this package +/// `ChainErrorBox` uses elsewhere; kept local to this package /// so flow_editor doesn't depend on Studio internals. class _CopyableErrorBox extends StatefulWidget { final String text;