mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-19 14:53:44 +00:00
feat: new ui (#1455)
This commit is contained in:
742 files changed
+59951
-5934
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import '../../../api/model/install_extension.dart';
|
||||
|
||||
final pendingExtensionInstallProvider = NotifierProvider<PendingExtensionInstall, InstallExtension?>(
|
||||
PendingExtensionInstall.new,
|
||||
);
|
||||
|
||||
class PendingExtensionInstall extends Notifier<InstallExtension?> {
|
||||
@override
|
||||
InstallExtension? build() => null;
|
||||
|
||||
void set(InstallExtension? install) {
|
||||
state = install;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
state = null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user