skip to Main Content

'String' is not a subtype of type 'YoutubePlayerController' – Flutter

Expanded( child: Container( child: SingleChildScrollView(scrollDirection: Axis.vertical, child: StreamBuilder( stream: FirebaseFirestore.instance.collection("videoList").snapshots(), builder: (context,AsyncSnapshot<QuerySnapshot>streamSnapshot){ if(streamSnapshot.hasData){ return ListView.separated( shrinkWrap: true, physics: ScrollPhysics(), scrollDirection: Axis.vertical, clipBehavior: Clip.hardEdge, itemBuilder: (context, index) { DocumentSnapshot _documentSnapshot=streamSnapshot.data!.docs[index]; return ListTile( title: YoutubePlayer( key: ObjectKey(_documentSnapshot["url"]), controller: _documentSnapshot["url"], actionsPadding: const EdgeInsets.only(left:…

VIEW QUESTION

Getting a red squiggly line when I return null with a message 'Null isn't a string' – Flutter

import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:mybankapp/authscreens/loginscreen.dart'; import 'package:mybankapp/colors/colors.dart'; import 'package:mybankapp/routscreens/routwidget.dart'; import 'package:mybankapp/textfontfamily/textfontfamily.dart'; import 'package:mybankapp/welcomescreen/welcomescreen.dart'; class SignUpScreen extends StatefulWidget { @override _SignUpScreenState createState() => _SignUpScreenState(); } class _SignUpScreenState extends State<SignUpScreen> { final _formKey = GlobalKey<FormState>(); late String _name; late…

VIEW QUESTION

Not able to add mocktail to my flutter project

I am trying to add mocktail from pub.dev into pubspec.yaml but not able to add it after updating to flutter 3.3.2. I tried changing the environment parameter to environment: sdk: ">=2.12.0 <3.0.0" dev_dependencies: flutter_test: sdk: flutter flutter_lints: flutter_launcher_icons: ^0.10.0 integration_test:…

VIEW QUESTION
Back To Top
Search