I'm new to flutter development.
I've been trying to add SizedBox() but I'm getting the following Error at compile time
The argument type 'SizedBox' can't be assigned to the parameter type 'String?'.
Parameter text[No errors were shown with SizedBox() then, but text parameter itself] was migrated to label as suggested by Flutter.
Here is my code which throws the error.
BottomNavigationBarItem(
label: const SizedBox()
),