textfield linecount
This commit is contained in:
@@ -136,7 +136,11 @@ class ContainerSitesScreen extends HookConsumerWidget {
|
||||
|
||||
return ListTile(
|
||||
leading: UrlIcon([site], iconSize: 20),
|
||||
title: Text(site.host),
|
||||
title: Text(
|
||||
site.host,
|
||||
maxLines: 3,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
subtitle: Text(site.toString()),
|
||||
trailing: IconButton(
|
||||
onPressed: () {
|
||||
|
||||
@@ -52,6 +52,8 @@ class AddFeedDialog extends HookConsumerWidget {
|
||||
),
|
||||
controller: textController,
|
||||
keyboardType: TextInputType.url,
|
||||
minLines: 1,
|
||||
maxLines: 10,
|
||||
validator: (value) {
|
||||
return validateUrl(
|
||||
value,
|
||||
|
||||
@@ -226,6 +226,8 @@ class _FeedEditContent extends HookConsumerWidget {
|
||||
prefixIcon: Icon(Icons.image),
|
||||
),
|
||||
keyboardType: TextInputType.url,
|
||||
minLines: 1,
|
||||
maxLines: 10,
|
||||
controller: iconUrlTextController,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
validator: (value) {
|
||||
@@ -243,6 +245,8 @@ class _FeedEditContent extends HookConsumerWidget {
|
||||
prefixIcon: Icon(Icons.link),
|
||||
),
|
||||
keyboardType: TextInputType.url,
|
||||
minLines: 1,
|
||||
maxLines: 10,
|
||||
controller: siteLinkTextController,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
validator: (value) {
|
||||
@@ -268,6 +272,8 @@ class _FeedEditContent extends HookConsumerWidget {
|
||||
prefixIcon: Icon(MdiIcons.rss),
|
||||
),
|
||||
keyboardType: TextInputType.url,
|
||||
minLines: 1,
|
||||
maxLines: 10,
|
||||
controller: urlTextController,
|
||||
autovalidateMode: AutovalidateMode.onUserInteraction,
|
||||
validator: (value) {
|
||||
|
||||
Reference in New Issue
Block a user