Issue
In the Container widget, I have tried implementing many flutter icons and all are working well except for the cell_tower_rounded
. This is an icon that is as well supported by icons Null safety.Kindly help why is this cell_tower icon not working while the rest are just ok.
My editor underlines it in red and the error is undefined_getter
Container(padding,child,childred[
buildMenuItem(
text: 'Connection Status',
icon: Icons.cell_tower_rounded,
onClicked: () => selectedItem(context, 0),
]),
Solution
Thank you for your contributions, But well, I figured it out and found a fix. The problem was that my Flutter Version
was out of date. Most of the latest icons are not easily supported in previous flutter versions.
I was using Flutter: 2.8.2
while at the time of release of cell_tower_rounded
icon, flutter version was at Flutter: 2.10.2
.
Incase you are experiencing a unique problem with some widgets, packages or icons, simple run: $ flutter upgrade
in your project directory.
You'll probably also need to update your Kotlin Version in the android/build.gradle
to the latest one.Find the latest Kotlin version here:
Today(as at the time of this post), the latest one is version 1.6.0, so kindly update like this:
buildscript {
ext.kotlin_version = '1.6.0'
Answered By - Jacob Okello Okomo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.