Skip to content

Commit

Permalink
Revert "feat: added autocomplete options to url input"
Browse files Browse the repository at this point in the history
  • Loading branch information
jdk-21 authored Nov 2, 2024
1 parent 18184d2 commit 6598677
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 201 deletions.
92 changes: 0 additions & 92 deletions lib/components/custom_autocomplete_options.dart

This file was deleted.

100 changes: 0 additions & 100 deletions lib/components/url_autocomplete_field.dart

This file was deleted.

5 changes: 0 additions & 5 deletions lib/providers/url_autocomplete_provider.dart

This file was deleted.

12 changes: 9 additions & 3 deletions lib/screens/login_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:go_router/go_router.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:jellyflix/components/url_autocomplete_field.dart';
import 'package:jellyflix/models/screen_paths.dart';
import 'package:jellyflix/models/user.dart';
import 'package:jellyflix/providers/auth_provider.dart';
Expand Down Expand Up @@ -57,7 +56,15 @@ class LoginScreen extends HookConsumerWidget {
const SizedBox(height: 20),
Padding(
padding: const EdgeInsets.symmetric(vertical: 10.0),
child: UrlFieldInput(serverAddress: serverAddress),
child: TextField(
controller: serverAddress,
decoration: InputDecoration(
border: const OutlineInputBorder(),
labelText:
AppLocalizations.of(context)!.serverAddress,
hintText: 'http://',
),
),
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 10.0),
Expand Down Expand Up @@ -259,4 +266,3 @@ class LoginScreen extends HookConsumerWidget {
.trim();
}
}

1 change: 0 additions & 1 deletion lib/screens/player_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ class _PlayerSreenState extends ConsumerState<PlayerScreen> {
);
});

if (!context.mounted) return;
player.stream.error.listen((error) {
if (mounted) {
showDialog(
Expand Down

0 comments on commit 6598677

Please sign in to comment.