The argument type 'ResponsiveAppBar' can't be assigned to the parameter type 'PreferredSizeWidget?'.dart(argument_type_not_assignable)
Scaffold(
appBar: PreferredSize(
preferredSize: const Size.fromHeight(100),
child: Container(color: Colors.red),
),
)