I want to develop the banking app in flutter. But I get this error: Null check operator used on a null value I tried "flutter channel stable" but its not work and also tried '!' operator (as you can see in the code) but its not work... :(
Plese help me.. Note: Container widget is very long that's why I didn't choose to copy..
Widget projectWidget() {
return FutureBuilder<List<Histories>>(
future: dbHelper.getHistories(),
builder: (context, snapshot) {
if (snapshot.hasData && snapshot.data!.length > 0) return Container();
return ListView.builder(
itemCount: snapshot.data!.length,
itemBuilder: (context, index) {
Histories histories = snapshot.data![index];
return Container();
},
);
});
}