Browse Source

neon: set keyboardType for url fields

pull/268/head
Nikolas Rimikis 2 years ago
parent
commit
b3c4aed6b0
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 1
      packages/neon/neon/lib/src/pages/login.dart
  2. 1
      packages/neon/neon_news/lib/dialogs/add_feed.dart

1
packages/neon/neon/lib/src/pages/login.dart

@ -198,6 +198,7 @@ class _LoginPageState extends State<LoginPage> {
decoration: const InputDecoration( decoration: const InputDecoration(
hintText: 'https://...', hintText: 'https://...',
), ),
keyboardType: TextInputType.url,
initialValue: widget.serverURL, initialValue: widget.serverURL,
validator: (final input) => validateHttpUrl( validator: (final input) => validateHttpUrl(
context, context,

1
packages/neon/neon_news/lib/dialogs/add_feed.dart

@ -59,6 +59,7 @@ class _NewsAddFeedDialogState extends State<NewsAddFeedDialog> {
decoration: const InputDecoration( decoration: const InputDecoration(
hintText: 'https://...', hintText: 'https://...',
), ),
keyboardType: TextInputType.url,
validator: (final input) => validateHttpUrl(context, input), validator: (final input) => validateHttpUrl(context, input),
onFieldSubmitted: (final _) { onFieldSubmitted: (final _) {
submit(); submit();

Loading…
Cancel
Save