Skip to content

Commit

Permalink
fix: Fix issue of todo textfield if todo is very long
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaegel committed Mar 18, 2024
1 parent 873b151 commit b5f4171
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/presentation/login/states/login_state.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:equatable/equatable.dart';

// Keep 'offline' for backward compatibility.
// @todo: Keep 'offline' for backward compatibility.
enum Backend { none, local, offline, webdav }

sealed class LoginState extends Equatable {
Expand Down
2 changes: 2 additions & 0 deletions lib/presentation/todo/widgets/todo_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class _TodoStringTextFieldState extends State<TodoStringTextField> {
enableSuggestions: false,
enableIMEPersonalizedLearning: false,
keyboardType: TextInputType.text,
minLines: 1,
maxLines: 3,
inputFormatters: [
FilteringTextInputFormatter.deny(RegExp(r'\n')),
],
Expand Down

0 comments on commit b5f4171

Please sign in to comment.