mirrored_repositories/flight-ticket-UI
import 'package:flutter/material.dart';

class CustomAppBar extends StatelessWidget {
 final List<BottomNavigationBarItem> bottomBarItems = [];
 final bottomNavigationBarItemStyle = TextStyle(fontStyle: FontStyle.normal, color: Colors.black);
  CustomAppBar() {
    bottomBarItems.add(
      BottomNavigationBarItem(
        icon: Icon(Icons.home, color: Colors.black,),
        title: Text("Explore", style: bottomNavigationBarItemStyle,)
      )
    );
    bottomBarItems.add(
        BottomNavigationBarItem(
            icon: Icon(Icons.favorite, color: Colors.black,),
            title: Text("WatchList", style: bottomNavigationBarItemStyle,)
        )
    );
    bottomBarItems.add(
        BottomNavigationBarItem(
            icon: Icon(Icons.local_offer, color: Colors.black,),
            title: Text("Deals", style: bottomNavigationBarItemStyle,)
        )
    );
    bottomBarItems.add(
        BottomNavigationBarItem(
            icon: Icon(Icons.notifications, color: Colors.black,),
            title: Text("Notifications", style: bottomNavigationBarItemStyle,)
        )
    );
  }
  @override
  Widget build(BuildContext context) {
    return Material(
      elevation: 15.0,
      child: BottomNavigationBar(
        items: bottomBarItems,
        type: BottomNavigationBarType.fixed,
      ),
    );
  }
}
