diff --git a/lib/screens/logbook_photo_edit/screen_logbook_photo_edit.dart b/lib/screens/logbook_photo_edit/screen_logbook_photo_edit.dart index 53d8dae..c4d6ae4 100644 --- a/lib/screens/logbook_photo_edit/screen_logbook_photo_edit.dart +++ b/lib/screens/logbook_photo_edit/screen_logbook_photo_edit.dart @@ -155,7 +155,8 @@ class _NoteListTile extends StatelessWidget { ), child: LightmeterTextField( initialValue: state.note, - maxLength: 500, + maxLength: 256, + maxLines: null, hintText: S.of(context).note, style: Theme.of(context).listTileTheme.titleTextStyle, leading: const Icon(Icons.note_outlined), diff --git a/lib/screens/shared/text_field/widget_text_field.dart b/lib/screens/shared/text_field/widget_text_field.dart index 40eeaa0..f801845 100644 --- a/lib/screens/shared/text_field/widget_text_field.dart +++ b/lib/screens/shared/text_field/widget_text_field.dart @@ -10,6 +10,7 @@ class LightmeterTextField extends StatefulWidget { this.inputFormatters, this.leading, this.maxLength, + this.maxLines = 1, this.onChanged, this.style, this.textAlign = TextAlign.start, @@ -22,6 +23,7 @@ class LightmeterTextField extends StatefulWidget { final List? inputFormatters; final Widget? leading; final int? maxLength; + final int? maxLines; final void Function(String)? onChanged; final TextStyle? style; final TextAlign textAlign; @@ -43,6 +45,7 @@ class _LightmeterTextFieldState extends State { initialValue: widget.initialValue, inputFormatters: widget.inputFormatters, maxLength: widget.maxLength, + maxLines: widget.maxLines, onChanged: widget.onChanged, style: widget.style, textAlign: widget.textAlign,