wip: fixed state not updating correctly
This commit is contained in:
1 parent
634fe41e78
commit
a33c4ddac5
3 files changed
+60
-56
No files matched your search
@@ -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,
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user