update dependence
This commit is contained in:
17
lib/provider/gallery.dart
Normal file
17
lib/provider/gallery.dart
Normal file
@ -0,0 +1,17 @@
|
||||
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());
|
Reference in New Issue
Block a user