_CastError – Null check operator used on a null value

Issue I get this error when I run my flutter App. I’ve not been able to figure out why this error keeps occurring. Error: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The following _CastError was thrown building RawGestureDetector-[LabeledGlobalKey#3c378](state: RawGestureDetectorState#d987a(gestures: ,

Continue reading

LateInitializationError: Field '_youtubePlayerController@341268173' has not been initialized

Issue I am using youtubePlayer for showing yotube videos in my app but i got error like "LateInitializationError: Field ‘_youtubePlayerController@341268173’ has not been initialized." Following are my code: import ‘dart:convert’; import ‘package:flutter/material.dart’; import ‘package:mahuva_azadari/Models/LinkModel.dart’; import ‘package:youtube_player_flutter/youtube_player_flutter.dart’; import ‘package:http/http.dart’ as http;

Continue reading