title: How to create a custom AppBar widget?
body: <p>I'm new to flutter. I'm trying to create a custom appbar widget and importing the widget in pages.</p>
  <p>But I was unable to create the widget.</p>
  <pre><code>import 'package:flutter/material.dart';
   
   class AppBar extends StatelessWidget{
    @override
    Widget build(BuildContext context){
  return AppBar(
    title: Text('Ordering'),
    actions: &lt;Widget&gt;[
      IconButton(
        onPressed: _incrementCounter,
        icon: Icon(Icons.add),
      ),
      BadgeIconButton(
        itemCount: _counter,
        badgeColor: Color.fromRGBO(37, 134, 16, 1.0),
        badgeTextColor: Colors.white,
        icon: Icon(Icons.shopping_cart, size: 30.0,),
        onPressed: () {}
      ),
    ],
  );
  </code></pre>
  <p>}
  }'</p>