mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
16 lines
358 B
Dart
16 lines
358 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());
|