Browse Source

Merge pull request #268 from Leptopoda/feature/neon/keyboardType

neon: set keyboardType for url fields
pull/271/head
Kate 2 years ago committed by GitHub
parent
commit
b2471a8990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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