wip: fixed state not updating correctly

This commit is contained in:
2024-05-27 22:28:42 +02:00
parent 634fe41e78
commit a33c4ddac5
3 changed files with 60 additions and 56 deletions

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,
);
}