line wrapping

This commit is contained in:
randogoth 2025-02-22 17:18:47 +02:00
parent 7bd690a807
commit be43333da6
2 changed files with 80 additions and 6 deletions

View file

@ -8,6 +8,7 @@ import 'package:path/path.dart' as path;
import 'themes/day.dart';
import 'themes/night.dart';
import 'themes/markdown.dart';
import 'codefield.dart';
class NoteEditorScreen extends StatefulWidget {
final File note;
@ -204,12 +205,13 @@ class _NoteEditorScreenState extends State<NoteEditorScreen> {
child: CodeTheme(
data: CodeThemeData(
styles: widget.isDarkMode ? nightTheme : dayTheme),
child: CodeField(
gutterStyle: GutterStyle.none,
controller: _controller,
expands: true,
textStyle: TextStyle(
fontSize: _fontSize,
child: SingleChildScrollView(
child: WrappedCodeField(
wrap: true,
controller: _controller,
textStyle: TextStyle(
fontSize: _fontSize,
),
),
),
),