From b3c4aed6b01cb5db8ea88bf6fec496d32eaef0b8 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Fri, 21 Apr 2023 11:24:35 +0200 Subject: [PATCH] neon: set keyboardType for url fields --- packages/neon/neon/lib/src/pages/login.dart | 1 + packages/neon/neon_news/lib/dialogs/add_feed.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/neon/neon/lib/src/pages/login.dart b/packages/neon/neon/lib/src/pages/login.dart index 42de3d24..e3eaab4f 100644 --- a/packages/neon/neon/lib/src/pages/login.dart +++ b/packages/neon/neon/lib/src/pages/login.dart @@ -198,6 +198,7 @@ class _LoginPageState extends State { decoration: const InputDecoration( hintText: 'https://...', ), + keyboardType: TextInputType.url, initialValue: widget.serverURL, validator: (final input) => validateHttpUrl( context, diff --git a/packages/neon/neon_news/lib/dialogs/add_feed.dart b/packages/neon/neon_news/lib/dialogs/add_feed.dart index 32aac9de..bfc2c036 100644 --- a/packages/neon/neon_news/lib/dialogs/add_feed.dart +++ b/packages/neon/neon_news/lib/dialogs/add_feed.dart @@ -59,6 +59,7 @@ class _NewsAddFeedDialogState extends State { decoration: const InputDecoration( hintText: 'https://...', ), + keyboardType: TextInputType.url, validator: (final input) => validateHttpUrl(context, input), onFieldSubmitted: (final _) { submit();