update dependence

This commit is contained in:
quantulr
2023-02-10 00:07:41 +08:00
parent 2aa59649a8
commit bd259d8303
9 changed files with 58 additions and 58 deletions

17
lib/provider/gallery.dart Normal file
View 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());