import 'package:flutter/material.dart'; import 'package:flutter_wisetronic/events/eventbus.dart'; import 'package:flutter_wisetronic/events/events.dart'; import 'package:flutter_wisetronic/widgets/general/navigationbar_logo.dart'; class MobileNavigationBar extends StatefulWidget { const MobileNavigationBar({Key key}) : super(key: key); @override State createState() { return MobileNavigationBarState(); } } class MobileNavigationBarState extends State { @override Widget build(BuildContext context) { return Container( padding: EdgeInsets.only(left: 10.0, right: 10.0), height: 80.0, color: Colors.blue, child: Row( mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ IconButton( icon: Icon(Icons.menu), onPressed: () { eventBus.fire(OpenDrawer()); }, ), Container( child: NavigationBarLogo(), padding: EdgeInsets.only(left: 10.0, right: 10.0, top: 5.0, bottom: 5.0), ), Container() ], ), ); // return Stack( // children: [ // Container( // height: 80.0, // color: Colors.blue, // ), // Container( // padding: EdgeInsets.only(left: 10.0, right: 10.0), // height: 80.0, // child: Row( // mainAxisSize: MainAxisSize.max, // mainAxisAlignment: MainAxisAlignment.spaceBetween, // children: [ // IconButton( // icon: Icon(Icons.menu), // onPressed: () { // // }, // ), // Container( // child: NavigationBarLogo(), // padding: EdgeInsets.only(left: 10.0, right: 10.0, top: 5.0, bottom: 5.0), // ), // Container() // ], // ), // ), // ], // ); } }