mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 10:56:47 +01:00
c1253663b7
* refactor(mobile): services and provider * providers
17 lines
363 B
Dart
17 lines
363 B
Dart
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
|
|
class AlbumTitleNotifier extends StateNotifier<String> {
|
|
AlbumTitleNotifier() : super("");
|
|
|
|
setAlbumTitle(String title) {
|
|
state = title;
|
|
}
|
|
|
|
clearAlbumTitle() {
|
|
state = "";
|
|
}
|
|
}
|
|
|
|
final albumTitleProvider = StateNotifierProvider<AlbumTitleNotifier, String>(
|
|
(ref) => AlbumTitleNotifier(),
|
|
);
|