import 'package:flutter/material.dart'; import 'MyBottomNavigation.dart'; import 'MyMenu.dart'; class MyAppBar extends StatefulWidget { @override _MyAppBarState createState() => _MyAppBarState(); } class _MyAppBarState extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: buildAppBar, body: MyBody(), bottomNavigationBar: MyBottom(), ); } get buildAppBar { return AppBar( backgroundColor: Color.fromRGBO(255,255,255, 1), centerTitle: true, title: Text("Simons's BBQ Team",style: TextStyle( color: Color.fromRGBO(58, 47, 214, 1),fontSize: 20 ), ), bottom: PreferredSize( preferredSize: Size.fromHeight((20.0), ),child: Padding( padding: const EdgeInsets.all(9.0), child: Text("Cubetiqs Solution", style: TextStyle ( color: Color.fromRGBO(58, 47, 214, 1), ), ), ), ), ); } }