This commit is contained in:
Nikhil
2025-04-07 06:30:11 +05:30
parent bc5564b1dc
commit 713dc85b27
2 changed files with 25 additions and 22 deletions

View File

@@ -54,25 +54,28 @@ class _CodeGenPreviewerState extends State<CodeGenPreviewer> {
} }
return Padding( return Padding(
padding: widget.padding, padding: widget.padding,
child: Scrollbar( child: LayoutBuilder(
thickness: 10, builder: (context, constraints) {
thumbVisibility: true, return Scrollbar(
controller: controllerV, thickness: 10,
child: Scrollbar( thumbVisibility: true,
notificationPredicate: (notification) => notification.depth == 1,
thickness: 10,
thumbVisibility: true,
controller: controllerH,
child: SingleChildScrollView(
controller: controllerV, controller: controllerV,
child: SingleChildScrollView( child: Scrollbar(
scrollDirection: Axis.horizontal, notificationPredicate: (notification) => notification.depth == 1,
thickness: 10,
thumbVisibility: true,
controller: controllerH, controller: controllerH,
child: Column( child: SingleChildScrollView(
children: [ controller: controllerV,
Row( child: IntrinsicHeight(
children: [ child: ConstrainedBox(
SelectionArea( constraints: BoxConstraints(
minHeight: constraints.maxHeight,
),
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
controller: controllerH,
child: SelectionArea(
child: Text.rich( child: Text.rich(
TextSpan( TextSpan(
children: spans, children: spans,
@@ -81,13 +84,13 @@ class _CodeGenPreviewerState extends State<CodeGenPreviewer> {
softWrap: false, softWrap: false,
), ),
), ),
], ),
), ),
], ),
), ),
), ),
), );
), },
), ),
); );
} }

View File

@@ -39,7 +39,7 @@ class DrawerSplitView extends StatelessWidget {
backgroundColor: Theme.of(context).colorScheme.surface, backgroundColor: Theme.of(context).colorScheme.surface,
onDrawerChanged: onDrawerChanged, onDrawerChanged: onDrawerChanged,
onEndDrawerChanged: onEndDrawerChanged, onEndDrawerChanged: onEndDrawerChanged,
drawerEdgeDragWidth: context.width, drawerEdgeDragWidth: 0,
appBar: AppBar( appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.surface, backgroundColor: Theme.of(context).colorScheme.surface,
scrolledUnderElevation: 0, scrolledUnderElevation: 0,