diff --git a/lib/widgets/previewer_codegen.dart b/lib/widgets/previewer_codegen.dart index a13df8cc..77f9b33b 100644 --- a/lib/widgets/previewer_codegen.dart +++ b/lib/widgets/previewer_codegen.dart @@ -67,22 +67,20 @@ class _CodeGenPreviewerState extends State { controller: controllerH, child: SingleChildScrollView( controller: controllerV, - child: IntrinsicHeight( - child: ConstrainedBox( - constraints: BoxConstraints( - minHeight: constraints.maxHeight, - ), - child: SingleChildScrollView( - scrollDirection: Axis.horizontal, - controller: controllerH, - child: SelectionArea( - child: Text.rich( - TextSpan( - children: spans, - style: textStyle, - ), - softWrap: false, + child: ConstrainedBox( + constraints: BoxConstraints( + minHeight: constraints.maxHeight, + ), + child: SingleChildScrollView( + scrollDirection: Axis.horizontal, + controller: controllerH, + child: SelectionArea( + child: Text.rich( + TextSpan( + children: spans, + style: textStyle, ), + softWrap: false, ), ), ),