Initial upload: immich-tv-viewer
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
# Immich TV Viewer - V2.3.1 Fix maxPages
|
||||
|
||||
Projet cible :
|
||||
|
||||
D:\07-Logiciels\17-IMMICH-TV\immich_tv_viewer
|
||||
|
||||
## Fichiers modifiés / ajoutés
|
||||
|
||||
- lib/main.dart
|
||||
- android/app/src/main/kotlin/com/example/immich_tv_viewer/MainActivity.kt
|
||||
- README_V2_3_1_FIX_MAXPAGES.txt
|
||||
|
||||
## Correction
|
||||
|
||||
Corrige l'erreur Dart :
|
||||
|
||||
```text
|
||||
The argument type 'int?' can't be assigned to the parameter type 'int'
|
||||
```
|
||||
|
||||
Cause :
|
||||
|
||||
- `getRandomTimelinePhotos({int? maxPages})`
|
||||
- appelait `getAllTimelinePhotos(maxPages: maxPages)`
|
||||
- mais `getAllTimelinePhotos` attendait encore un `int`
|
||||
|
||||
Correction :
|
||||
|
||||
- `getAllTimelinePhotos({int? maxPages})`
|
||||
- si `maxPages == null`, l'app charge toutes les pages jusqu'à `nextPage == null`
|
||||
|
||||
## Fonctionnalités conservées
|
||||
|
||||
- Menu Photos
|
||||
- Menu Explorer
|
||||
- Menu Surprends-moi
|
||||
- Zapping automatique après 1 minute dans la visionneuse
|
||||
- Zapping aléatoire toutes les 10 secondes
|
||||
- Écran gardé allumé via `FLAG_KEEP_SCREEN_ON`
|
||||
|
||||
## Important
|
||||
|
||||
Dans `lib/main.dart`, remplace :
|
||||
|
||||
```dart
|
||||
const String immichApiKey = 'COLLE_TA_CLE_API_ICI';
|
||||
```
|
||||
|
||||
par ta vraie clé API.
|
||||
|
||||
## Test
|
||||
|
||||
```powershell
|
||||
cd D:\07-Logiciels\17-IMMICH-TV\immich_tv_viewer
|
||||
flutter run -d 192.168.1.8:5555
|
||||
```
|
||||
Reference in New Issue
Block a user