cubetiq-mobile-app/lib/Page1/MyAppBar.dart
2021-01-30 16:18:51 +07:00

51 lines
1.0 KiB
Dart

import 'package:flutter/material.dart';
import 'MyBottomNavigation.dart';
import 'MyMenu.dart';
class MyAppBar extends StatefulWidget {
@override
_MyAppBarState createState() => _MyAppBarState();
}
class _MyAppBarState extends State<MyAppBar> {
@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),
),
),
),
),
);
}
}