skip to Main Content

Android Studio – How to get rid of `Unresolved reference: NavController` error in Android-Kotlin?

Other than the NavController, I am getting the same error for AppCompatActivity(), layoutInflater, and a few more in the below mentioned code. Error: Unresolved reference: NavController and so on... MY Code: package com.example.wordsapp import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.navigation.NavController import…

VIEW QUESTION

Android Studio – A value of type 'bool?' can't be assigned to a variable of type 'bool'. flutter

bool isChecked = false; class _TasksTileState extends State<TasksTile> { bool isChecked = false; @override Widget build(BuildContext context) { print('$isChecked is the value of isChecked'); return CheckboxListTile( title: Text('this is the Task 1.',style: TextStyle( decoration: isChecked? TextDecoration.lineThrough: null, ),), value: isChecked,…

VIEW QUESTION
Back To Top
Search