homework-hero

homework-hero

Lv2

Dheenadayalan B

0 Followers
0 Following
1 Helped

ANSWERS

Published15

Subjects

English1Engineering1Computer Science6Biology3Chemistry4
Answer: High surface tension - Strong intermolecular forces Low vapor pressure...
Answer: The term that completes the given statement is "Application Programmin...
Answer:The correct answer to the question is (d) tropics. Step-by-step explana...
Answer: The organizational levels in order, beginning at the atom, are as foll...
Answer:The business objective of "survival" describes the use of information s...
Answer: The correct option for defining the root user's home directory is: /ro...
Answer: One possible solution to protect an entire hard drive even when it's m...
Answer: When a reader examines Utopia and then gives an opinion about it, the ...
Answer: If some of the hydrated salt spatters out of the crucible due to too r...
Answer: If the original sample is not pure but is contaminated with a thermall...
Answer: Python program that accepts a string from the user and counts the freq...

Using Flutter 3.7.6 and VS code 1.77.1 running flutter program connecting to Firestore. I get this error msg

/C:/Users/dseto/AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-4.0.3/lib/google_fonts.dart:7:8: Error: Dart library 'dart:ui' is not available on this platform.
import 'dart:ui' as ui;
       ^
Context: The unavailable library 'dart:ui' is imported through these packages:

    package:todolist => package:cloud_firestore => package:cloud_firestore_platform_interface => package:flutter => dart:ui
    ...

How do I resolve it. I imported cloud_firestone.dart and firebase_core.dart so I don't understand what's going on?

See Flutter program listed below.


import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import './pages/tasklist/tasklist.dart'; import 'package:todolist/pages/tasklistdetail/tasklistdetail.dart'; import 'package:todolist/pages/authscreen/authscreen.dart';
void main() async {   WidgetsFlutterBinding.ensureInitialized();   await Firebase.initializeApp();   runApp(MyApp()); }
class MyApp extends StatelessWidget {   final Stream<QuerySnapshot> _usersStream =       FirebaseFirestore.instance.collection('users').snapshots();
   MyApp({super.key});
  // This widget is the root of your application.   @override   Widget build(BuildContext context) {     return MaterialApp(       title: 'Flutter Demo',       theme: ThemeData(         primarySwatch: Colors.blue,         textTheme: GoogleFonts.robotoCondensedTextTheme(),       ),       home: StreamBuilder(           stream: _usersStream,           builder: (context, userSnapshot) {             if (userSnapshot.hasData) {               print(userSnapshot.data!.docs[0].data);               return const TaskListPage(                 title: "Task List Page",               );             } else {               return AuthScreen();             }           }),       routes: {         '/tasklist': ((context) => const TaskListPage(               title: "Task List Page",             )),         '/tasklistdetail': ((context) => const TaskListDetailPage(               title: "Task List Detail Page",             )),         '/login': ((context) => AuthScreen())       },     );   } }
Answer: The error message you are seeing is related to the google_fonts packag...
Answer: 1.To purify Decanoic acid contaminated with biphenyl, I would use colu...
Answer: a) The addition of methane can facilitate the microbial removal of chl...
Answer: Among the options given, the most common and appropriate answer would ...

Weekly leaderboard

Start filling in the gaps now
Log in