-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-assistIssues with analysis server assistsIssues with analysis server assiststype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
@override
Widget build(BuildContext context, WidgetRef ref) {
LutPreviewFail? lutPreviewFail = _lutPreviewResult.lutPreviewFail;
if (lutPreviewFail != null) {
return Tooltip( // extract widget
message: lutPreviewFail.stdout +
lutPreviewFail.stderr +
lutPreviewFail.exitCode.toString(),
child: const _NoImagePlaceholderWidget(),
);
}extracted widget:
class LutPreviewFailWidget extends StatelessWidget {
const LutPreviewFailWidget({
super.key,
required this.lutPreviewFail,
});
final LutPreviewFail? lutPreviewFail;
@override
Widget build(BuildContext context) {
return Tooltip(
message: lutPreviewFail.stdout +
lutPreviewFail.stderr +
lutPreviewFail.exitCode.toString(),
child: const _NoImagePlaceholderWidget(),
);
}
}expected code:
class LutPreviewFailWidget extends StatelessWidget {
const LutPreviewFailWidget({
super.key,
required this.lutPreviewFail,
});
final LutPreviewFail lutPreviewFail;
@override
Widget build(BuildContext context) {
return Tooltip(
message: lutPreviewFail.stdout +
lutPreviewFail.stderr +
lutPreviewFail.exitCode.toString(),
child: const _NoImagePlaceholderWidget(),
);
}
}FMorschel and stephane-archer
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-assistIssues with analysis server assistsIssues with analysis server assiststype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)