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