refactor: FaiError -> ChainError (SDK stub rename lockstep)
Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
42f271679c
commit
9196251e00
3 changed files with 5 additions and 5 deletions
|
|
@ -1308,7 +1308,7 @@ class _FileList extends StatelessWidget {
|
||||||
if (snap.hasError) {
|
if (snap.hasError) {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.all(FaiSpace.md),
|
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>[];
|
final files = snap.data ?? <_FlowFile>[];
|
||||||
|
|
|
||||||
|
|
@ -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
|
/// widgets Studio ships. The editor brings its own so the
|
||||||
/// package compiles standalone — host-styled variants are
|
/// package compiles standalone — host-styled variants are
|
||||||
/// a future plugin-API extension.
|
/// 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 Object? error;
|
||||||
final bool isError;
|
final bool isError;
|
||||||
final double? maxHeight;
|
final double? maxHeight;
|
||||||
const FaiErrorBox({
|
const ChainErrorBox({
|
||||||
super.key,
|
super.key,
|
||||||
required this.error,
|
required this.error,
|
||||||
this.isError = true,
|
this.isError = true,
|
||||||
|
|
|
||||||
|
|
@ -639,7 +639,7 @@ class _StepState {
|
||||||
/// button cover both keyboard and trackpad operators — the
|
/// button cover both keyboard and trackpad operators — the
|
||||||
/// implicit selection gesture is too easy to miss on a long
|
/// implicit selection gesture is too easy to miss on a long
|
||||||
/// failure message. Matches the visual treatment Studio's
|
/// 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.
|
/// so flow_editor doesn't depend on Studio internals.
|
||||||
class _CopyableErrorBox extends StatefulWidget {
|
class _CopyableErrorBox extends StatefulWidget {
|
||||||
final String text;
|
final String text;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue