wip: fixed state not updating correctly

This commit is contained in:
MineTec committed 2024-05-27 22:28:42 +02:00
1 parent 634fe41e78
commit a33c4ddac5
3 files changed
+60 -56

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import 'package:flutter/material.dart';
class ListViewUtil {
static ListView fromList<T>(List<T>? items, Widget Function(T item) map) => ListView.builder(
itemCount: items?.length ?? 0,
itemBuilder: (context, index) => items != null ? map(items[index]) : null,
);
}