diff --git a/lib/module/config/config_edit_page.dart b/lib/module/config/config_edit_page.dart index 199eb33..5fdf103 100644 --- a/lib/module/config/config_edit_page.dart +++ b/lib/module/config/config_edit_page.dart @@ -27,6 +27,7 @@ class _ConfigEditPageState extends ConsumerState { _codeController?.dispose(); super.dispose(); } + @override void initState() { result = widget.content; @@ -91,6 +92,15 @@ class _ConfigEditPageState extends ConsumerState { child: CodeField( controller: _codeController!, expands: true, + wrap: true, + lineNumberStyle: const LineNumberStyle( + width: 0, + margin: 0, + textStyle: TextStyle( + color: Colors.transparent, + fontSize: 0, + ), + ), background: ref.watch(themeProvider).themeColor.settingBgColor(), ), ), diff --git a/lib/module/others/scripts/script_edit_page.dart b/lib/module/others/scripts/script_edit_page.dart index 447337b..dc637db 100644 --- a/lib/module/others/scripts/script_edit_page.dart +++ b/lib/module/others/scripts/script_edit_page.dart @@ -120,6 +120,15 @@ class _ScriptEditPageState extends ConsumerState { child: CodeField( controller: _codeController!, expands: true, + wrap: true, + lineNumberStyle: const LineNumberStyle( + width: 0, + margin: 0, + textStyle: TextStyle( + color: Colors.transparent, + fontSize: 0, + ), + ), background: ref.watch(themeProvider).themeColor.tabBarColor(), ), ),