mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 02:18:50 -07:00
c1253663b7
* refactor(mobile): services and provider * providers
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(),
|
|
);
|