mirror of
https://github.com/immich-app/immich.git
synced 2024-12-22 01:47:08 +02:00
18 lines
363 B
Dart
18 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(),
|
|
);
|