18 lines
417 B
Dart
18 lines
417 B
Dart
![]() |
import 'package:fluent_ui/fluent_ui.dart';
|
||
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||
|
|
||
|
class GalleryUpdateKeyNotifier extends Notifier<GlobalKey> {
|
||
|
@override
|
||
|
GlobalKey build() {
|
||
|
return GlobalKey();
|
||
|
}
|
||
|
|
||
|
void updateGallery() {
|
||
|
state = GlobalKey();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
final galleryUpdateKeyProvider =
|
||
|
NotifierProvider<GalleryUpdateKeyNotifier, GlobalKey>(
|
||
|
() => GalleryUpdateKeyNotifier());
|