-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
279 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ class LoginForm extends HookConsumerWidget { | |
Widget build(BuildContext context, WidgetRef ref) { | ||
final usernameController = useTextEditingController(text: '[email protected]'); | ||
final passwordController = useTextEditingController(text: 'password'); | ||
final serverEndpointController = useTextEditingController(text: 'http://192.168.1.103:2283'); | ||
final serverEndpointController = useTextEditingController(text: 'http://192.168.1.216:2283'); | ||
|
||
return Center( | ||
child: ConstrainedBox( | ||
|
@@ -124,7 +124,8 @@ class LoginButton extends ConsumerWidget { | |
if (isAuthenicated) { | ||
// Resume backup (if enable) then navigate | ||
ref.watch(backupProvider.notifier).resumeBackup(); | ||
AutoRouter.of(context).pushNamed("/home-page"); | ||
// AutoRouter.of(context).pushNamed("/home-page"); | ||
AutoRouter.of(context).pushNamed("/tab-controller-page"); | ||
} else { | ||
ImmichToast.show( | ||
context: context, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'dart:convert'; | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:immich_mobile/shared/services/network.service.dart'; | ||
|
||
class SearchService { | ||
final NetworkService _networkService = NetworkService(); | ||
|
||
Future<List<String>?> getUserSuggestedSearchTerms() async { | ||
try { | ||
var res = await _networkService.getRequest(url: "asset/searchTerm"); | ||
List<dynamic> decodedData = jsonDecode(res.toString()); | ||
|
||
return List.from(decodedData); | ||
} catch (e) { | ||
debugPrint("[ERROR] [getUserSuggestedSearchTerms] ${e.toString()}"); | ||
return []; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.