The name parameter 'Child' isn't defined for BottomAppBar() widget

I'm currently trying to construct a bottom app bar for my flutter. I am new to the BottomAppBar widget and as I concurrently referred to the documentation while making the code, I've stumbled upon this error.

The following image shows the error


1 answer

  • answered 2019-08-13 05:15 Sunny

    The issue is that your class name the same as the widget name BottomAppBar

    You need to change the class name to

    class BottomAppBarImpl extends StatelessWidget{
    /// Put Your code Here it starts working fine