textfield linecount

This commit is contained in:
Fabian Freund
2025-11-30 08:07:11 +01:00
parent a2f4cf2cb1
commit d7af030147
3 changed files with 13 additions and 1 deletions
@@ -136,7 +136,11 @@ class ContainerSitesScreen extends HookConsumerWidget {
return ListTile( return ListTile(
leading: UrlIcon([site], iconSize: 20), leading: UrlIcon([site], iconSize: 20),
title: Text(site.host), title: Text(
site.host,
maxLines: 3,
overflow: TextOverflow.ellipsis,
),
subtitle: Text(site.toString()), subtitle: Text(site.toString()),
trailing: IconButton( trailing: IconButton(
onPressed: () { onPressed: () {
@@ -52,6 +52,8 @@ class AddFeedDialog extends HookConsumerWidget {
), ),
controller: textController, controller: textController,
keyboardType: TextInputType.url, keyboardType: TextInputType.url,
minLines: 1,
maxLines: 10,
validator: (value) { validator: (value) {
return validateUrl( return validateUrl(
value, value,
@@ -226,6 +226,8 @@ class _FeedEditContent extends HookConsumerWidget {
prefixIcon: Icon(Icons.image), prefixIcon: Icon(Icons.image),
), ),
keyboardType: TextInputType.url, keyboardType: TextInputType.url,
minLines: 1,
maxLines: 10,
controller: iconUrlTextController, controller: iconUrlTextController,
autovalidateMode: AutovalidateMode.onUserInteraction, autovalidateMode: AutovalidateMode.onUserInteraction,
validator: (value) { validator: (value) {
@@ -243,6 +245,8 @@ class _FeedEditContent extends HookConsumerWidget {
prefixIcon: Icon(Icons.link), prefixIcon: Icon(Icons.link),
), ),
keyboardType: TextInputType.url, keyboardType: TextInputType.url,
minLines: 1,
maxLines: 10,
controller: siteLinkTextController, controller: siteLinkTextController,
autovalidateMode: AutovalidateMode.onUserInteraction, autovalidateMode: AutovalidateMode.onUserInteraction,
validator: (value) { validator: (value) {
@@ -268,6 +272,8 @@ class _FeedEditContent extends HookConsumerWidget {
prefixIcon: Icon(MdiIcons.rss), prefixIcon: Icon(MdiIcons.rss),
), ),
keyboardType: TextInputType.url, keyboardType: TextInputType.url,
minLines: 1,
maxLines: 10,
controller: urlTextController, controller: urlTextController,
autovalidateMode: AutovalidateMode.onUserInteraction, autovalidateMode: AutovalidateMode.onUserInteraction,
validator: (value) { validator: (value) {