mirror of
https://github.com/foss42/apidash.git
synced 2025-05-21 16:26:37 +08:00
Merge pull request #787 from badnikhil/resolve-issue-672
fixed codepane horizontal scroll
This commit is contained in:
@ -54,7 +54,9 @@ class _CodeGenPreviewerState extends State<CodeGenPreviewer> {
|
|||||||
}
|
}
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: widget.padding,
|
padding: widget.padding,
|
||||||
child: Scrollbar(
|
child: LayoutBuilder(
|
||||||
|
builder: (context, constraints) {
|
||||||
|
return Scrollbar(
|
||||||
thickness: 10,
|
thickness: 10,
|
||||||
thumbVisibility: true,
|
thumbVisibility: true,
|
||||||
controller: controllerV,
|
controller: controllerV,
|
||||||
@ -65,14 +67,14 @@ class _CodeGenPreviewerState extends State<CodeGenPreviewer> {
|
|||||||
controller: controllerH,
|
controller: controllerH,
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
controller: controllerV,
|
controller: controllerV,
|
||||||
|
child: ConstrainedBox(
|
||||||
|
constraints: BoxConstraints(
|
||||||
|
minHeight: constraints.maxHeight,
|
||||||
|
),
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
controller: controllerH,
|
controller: controllerH,
|
||||||
child: Column(
|
child: SelectionArea(
|
||||||
children: [
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
SelectionArea(
|
|
||||||
child: Text.rich(
|
child: Text.rich(
|
||||||
TextSpan(
|
TextSpan(
|
||||||
children: spans,
|
children: spans,
|
||||||
@ -81,13 +83,12 @@ class _CodeGenPreviewerState extends State<CodeGenPreviewer> {
|
|||||||
softWrap: false,
|
softWrap: false,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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: 80,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
scrolledUnderElevation: 0,
|
scrolledUnderElevation: 0,
|
||||||
|
Reference in New Issue
Block a user