29 lines
687 B
Dart
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);
|
|
}
|