Skip to content

Commit d7af030

Browse files
committed
textfield linecount
1 parent a2f4cf2 commit d7af030

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

app/lib/features/geckoview/features/tabs/presentation/screens/container_sites.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ class ContainerSitesScreen extends HookConsumerWidget {
136136

137137
return ListTile(
138138
leading: UrlIcon([site], iconSize: 20),
139-
title: Text(site.host),
139+
title: Text(
140+
site.host,
141+
maxLines: 3,
142+
overflow: TextOverflow.ellipsis,
143+
),
140144
subtitle: Text(site.toString()),
141145
trailing: IconButton(
142146
onPressed: () {

app/lib/features/web_feed/presentation/add_feed_dialog.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class AddFeedDialog extends HookConsumerWidget {
5252
),
5353
controller: textController,
5454
keyboardType: TextInputType.url,
55+
minLines: 1,
56+
maxLines: 10,
5557
validator: (value) {
5658
return validateUrl(
5759
value,

app/lib/features/web_feed/presentation/screens/feed_edit.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ class _FeedEditContent extends HookConsumerWidget {
226226
prefixIcon: Icon(Icons.image),
227227
),
228228
keyboardType: TextInputType.url,
229+
minLines: 1,
230+
maxLines: 10,
229231
controller: iconUrlTextController,
230232
autovalidateMode: AutovalidateMode.onUserInteraction,
231233
validator: (value) {
@@ -243,6 +245,8 @@ class _FeedEditContent extends HookConsumerWidget {
243245
prefixIcon: Icon(Icons.link),
244246
),
245247
keyboardType: TextInputType.url,
248+
minLines: 1,
249+
maxLines: 10,
246250
controller: siteLinkTextController,
247251
autovalidateMode: AutovalidateMode.onUserInteraction,
248252
validator: (value) {
@@ -268,6 +272,8 @@ class _FeedEditContent extends HookConsumerWidget {
268272
prefixIcon: Icon(MdiIcons.rss),
269273
),
270274
keyboardType: TextInputType.url,
275+
minLines: 1,
276+
maxLines: 10,
271277
controller: urlTextController,
272278
autovalidateMode: AutovalidateMode.onUserInteraction,
273279
validator: (value) {

0 commit comments

Comments
 (0)