wip: fixed state not updating correctly
This commit is contained in:
9
lib/widget/list_view_util.dart
Normal file
9
lib/widget/list_view_util.dart
Normal 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,
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user