Answers for "The argument type 'AppBarContent' can't be assigned to the parameter type 'Widget'."

0

The argument type 'AppBarContent' can't be assigned to the parameter type 'Widget'.

class ApplicationToolbar extends StatelessWidget with PreferredSizeWidget{
  @override
  Widget build(BuildContext context) {
    return AppBar( ... );
  }

  @override
  Size get preferredSize => Size.fromHeight(kToolbarHeight);
}
Posted by: Guest on August-14-2021

Code answers related to "The argument type 'AppBarContent' can't be assigned to the parameter type 'Widget'."

Browse Popular Code Answers by Language