Flutter giving a compile time error : The AppBarDesign can't be assigned to the parameter type 'PrefferedSizeWidget'
Flutter giving a compile time error : The AppBarDesign can't be assigned to the parameter type 'PreferredSizeWidget'