APP_NEW/lib/Component/AppBar/company_app_bar.dart
2025-03-11 21:17:14 +08:00

29 lines
687 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:lamiter/Component/logo.dart';
class CompanyAppBar extends StatelessWidget implements PreferredSizeWidget {
final String logo;
CompanyAppBar({
super.key,
required this.logo,
});
// Must be greater than Logo's height
final height = 45.sp;
@override
Widget build(BuildContext context) {
return AppBar(
toolbarHeight: height,
title: Logo(height: 18.sp),
surfaceTintColor: Colors.transparent,
shadowColor: Colors.black,
);
}
@override
Size get preferredSize => Size.fromHeight(height); // + _dividerHeight);
}