cpd_2022_energy/lib/widgets/MyAppBar.dart

25 lines
663 B
Dart

import 'package:flutter/material.dart';
class MyAppBar extends StatelessWidget {
const MyAppBar({required this.title, super.key});
final Widget title;
@override
Widget build(BuildContext context) {
return Container(
height: 56.0,
padding: const EdgeInsets.symmetric(horizontal: 8.0),
decoration: BoxDecoration(color: Colors.blue[500]),
child: Row(
children: [
const IconButton(onPressed: null, icon: Icon(Icons.menu), tooltip: 'Navigation Menu'),
Expanded(child: title),
const IconButton(onPressed: null, icon: Icon(Icons.search), tooltip: 'Search')
],
),
);
}
}