'The argument type 'Text' can't be assigned to the parameter type 'String'

I'm getting this issue after after updating from old version (Title) to Label in the bottom nav bar. Here's a sample of the code:

BottomNavigationBarItem(
            icon: Icon(iconname.shop),
            label: Text(
              'Store',
              style: tabLinkStyle,
            )),


Solution 1:[1]

label is accepting String?, not a widget, so your code should be as following:

BottomNavigationBarItem(
          icon: Icon(conname.shop),
          label: 'Store',
        ),

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 anilcngz