summaryrefslogtreecommitdiff
path: root/lib/widgets/notifying_list_widget.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/notifying_list_widget.dart')
-rw-r--r--lib/widgets/notifying_list_widget.dart27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/widgets/notifying_list_widget.dart b/lib/widgets/notifying_list_widget.dart
new file mode 100644
index 0000000..7fdc2b1
--- /dev/null
+++ b/lib/widgets/notifying_list_widget.dart
@@ -0,0 +1,27 @@
+// Copyright (C) 2025, uvok cheetah
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+import 'package:flutter/material.dart';
+
+abstract class NotifyingListWidget<T> extends StatefulWidget {
+ final List<T> items;
+ final ValueChanged<T?> onItemSelected;
+
+ const NotifyingListWidget({
+ super.key,
+ required this.items,
+ required this.onItemSelected,
+ });
+}