mirror of
https://github.com/foss42/apidash.git
synced 2025-07-02 05:57:55 +08:00
feat: add padding to scripts pane ui
This commit is contained in:
@ -23,17 +23,15 @@ class _ScriptsEditorPaneState extends ConsumerState<ScriptsEditorPane> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final settings = ref.watch(settingsProvider);
|
||||
return Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(9),
|
||||
color: Theme.of(context).colorScheme.surfaceContainerLowest,
|
||||
),
|
||||
return Padding(
|
||||
padding: kPt5o10,
|
||||
child: CodeTheme(
|
||||
data: CodeThemeData(
|
||||
styles: settings.isDark ? monokaiTheme : xcodeTheme,
|
||||
),
|
||||
child: SingleChildScrollView(
|
||||
child: CodeField(
|
||||
minLines: 35,
|
||||
readOnly: widget.readOnly,
|
||||
smartDashesType: SmartDashesType.enabled,
|
||||
smartQuotesType: SmartQuotesType.enabled,
|
||||
@ -50,6 +48,13 @@ class _ScriptsEditorPaneState extends ConsumerState<ScriptsEditorPane> {
|
||||
textStyle: kCodeStyle.copyWith(
|
||||
fontSize: Theme.of(context).textTheme.bodyMedium?.fontSize,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(9),
|
||||
border: Border.all(
|
||||
color: Theme.of(context).colorScheme.surfaceContainerHighest,
|
||||
),
|
||||
color: Theme.of(context).colorScheme.surfaceContainerLowest,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user