skip to Main Content

Error Null check operator used on a null value Flutter

I get this error in the StreamBuilder: Here's the code: import 'dart:async'; import 'package:firebase_database/firebase_database.dart'; import 'package:flutter/material.dart'; class NewCauseMenu extends StatefulWidget { String? area; NewCauseMenu(this.area, {super.key}); @override State<NewCauseMenu> createState() => _NewCauseMenuState(); } class _NewCauseMenuState extends State<NewCauseMenu> { final db = FirebaseDatabase.instance;…

VIEW QUESTION

Error while building after updating flutter

After updating Flutter and Dart, building app fails due to following error. Error (Xcode): ../../.pub-cache/hosted/pub.dev/flutter_screenutil-5.6.0/lib/src/screen_util.dar t:58:5: Error: Type 'FlutterWindow' not found. 2 apps have same error, and it worked before updating. Other collaborator also has error after updating, but different…

VIEW QUESTION
Back To Top
Search