have app bar in app bar code example
Example: flutter appbar widget
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text('AppBar Title', textAlign: TextAlign.center),
),
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text('AppBar Title', textAlign: TextAlign.center),
),