mirror of
https://github.com/foss42/apidash.git
synced 2025-05-17 22:36:16 +08:00
Merge pull request #787 from badnikhil/resolve-issue-672
fixed codepane horizontal scroll
This commit is contained in:
@ -54,40 +54,41 @@ class _CodeGenPreviewerState extends State<CodeGenPreviewer> {
|
||||
}
|
||||
return Padding(
|
||||
padding: widget.padding,
|
||||
child: Scrollbar(
|
||||
thickness: 10,
|
||||
thumbVisibility: true,
|
||||
controller: controllerV,
|
||||
child: Scrollbar(
|
||||
notificationPredicate: (notification) => notification.depth == 1,
|
||||
thickness: 10,
|
||||
thumbVisibility: true,
|
||||
controller: controllerH,
|
||||
child: SingleChildScrollView(
|
||||
child: LayoutBuilder(
|
||||
builder: (context, constraints) {
|
||||
return Scrollbar(
|
||||
thickness: 10,
|
||||
thumbVisibility: true,
|
||||
controller: controllerV,
|
||||
child: SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
child: Scrollbar(
|
||||
notificationPredicate: (notification) => notification.depth == 1,
|
||||
thickness: 10,
|
||||
thumbVisibility: true,
|
||||
controller: controllerH,
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
SelectionArea(
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
children: spans,
|
||||
style: textStyle,
|
||||
),
|
||||
softWrap: false,
|
||||
),
|
||||
),
|
||||
],
|
||||
child: SingleChildScrollView(
|
||||
controller: controllerV,
|
||||
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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ class DrawerSplitView extends StatelessWidget {
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
onDrawerChanged: onDrawerChanged,
|
||||
onEndDrawerChanged: onEndDrawerChanged,
|
||||
drawerEdgeDragWidth: context.width,
|
||||
drawerEdgeDragWidth: 80,
|
||||
appBar: AppBar(
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
scrolledUnderElevation: 0,
|
||||
|
Reference in New Issue
Block a user