PersistentBottomNavBar icon indicating copy to clipboard operation
PersistentBottomNavBar copied to clipboard

"type 'TextStyle' is not a subtype of type 'Color?' in type cast" when assigning textStyle to PersistentBottomNavBarItem

Open andrespd99 opened this issue 4 years ago • 5 comments

I am getting this error when trying to change the textStyle value of PersistentBottomNavBarItems.

image image

As you can see, I am assigning it a type 'TextStyle' value. I can't even declare a new TextStyle directly like shown next:

image

Is this a bug or am I using it unintendedly?

andrespd99 avatar Jun 12 '21 05:06 andrespd99

I've noticed it only happens to style3. You can avoid this error changing styles. Looking up for an update!

andrespd99 avatar Jun 12 '21 05:06 andrespd99

i have the same issue with style 3

AliHoseinpoor avatar Jun 30 '21 09:06 AliHoseinpoor

any updates on this for style3?

evanholt1 avatar Sep 15 '21 13:09 evanholt1

You should remove TextStyle property to solve style 3 issue

Ruslanbek0809 avatar Nov 23 '21 11:11 Ruslanbek0809