skip to Main Content

How to remove or hide overlay – Flutter

I'm new with flutter and dart. I want to remove an overlay. I have tried many answers online but i'm still stuck. Please see my code class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); final String title; @override State<MyHomePage>…

VIEW QUESTION

The method '[]' can't be unconditionally invoked because the receiver can be 'null'. problems with safety null – Flutter

enter image description here this the controller class : i had the same problems with getvehicle so i used as documentSnapshot to resolve it class TripsController { FirebaseFirestore _firestore = FirebaseFirestore.instance; Stream<List<Trips>> getTrips() { return _firestore .collection('trips') .snapshots() .map((snapshot) =>…

VIEW QUESTION

Flutter – I need to display text, but the app doesn't

import 'package:flutter/material.dart'; import 'package:books_finder/books_finder.dart'; String inputText = ''; List<String> infoTitle = []; String infoSubtitle = ""; List<String> infoAuthors = []; class FinderBookSearch extends StatefulWidget { const FinderBookSearch({super.key, required this.title}); final String title; @override State<FinderBookSearch> createState() => _FinderBookSearch(); } class _FinderBookSearch…

VIEW QUESTION

Flutter JSON to object

I am trying to use a file containing JSON data to populate my app, but I have the following error: In my app screen: Class Future<dynamic> has no instance getter 'popularGames' In debug console: Unhandled Exception: type 'int' is not…

VIEW QUESTION
Back To Top
Search