104 lines
2.9 KiB
Dart
104 lines
2.9 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:tm_app/core/constants/assets.dart';
|
|
import 'package:tm_app/core/theme/colors.dart';
|
|
import 'package:tm_app/core/utils/size_config.dart';
|
|
|
|
// PreferredSize tenderMobileAppBar({required String title}) {
|
|
// return PreferredSize(
|
|
// preferredSize: Size.fromHeight(kToolbarHeight.h()),
|
|
// child: Container(
|
|
// color: AppColors.backgroundColor,
|
|
// padding: EdgeInsets.symmetric(horizontal: 24.0.w()),
|
|
// height: 56.0.h(),
|
|
// width: double.infinity,
|
|
// child: Row(
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
// children: [
|
|
// Text(
|
|
// title,
|
|
// style: TextStyle(
|
|
// fontSize: 20,
|
|
// fontWeight: FontWeight.bold,
|
|
// color: AppColors.grey70,
|
|
// ),
|
|
// ),
|
|
// Image.asset(
|
|
// 'assets/icons/tenderLogo.png',
|
|
// width: 59.0.w(),
|
|
// height: 28.0.h(),
|
|
// fit: BoxFit.cover,
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ),
|
|
// );
|
|
// }
|
|
|
|
PreferredSizeWidget tenderMobileAppBar({required String title}) {
|
|
return PreferredSize(
|
|
preferredSize: const Size.fromHeight(56),
|
|
child: AppBar(
|
|
backgroundColor: AppColors.backgroundColor,
|
|
elevation: 0,
|
|
titleSpacing: 0,
|
|
automaticallyImplyLeading: false,
|
|
actions: [
|
|
Image.asset(
|
|
AssetsManager.tenderLogo,
|
|
width: 59.0.w(),
|
|
height: 28.0.h(),
|
|
fit: BoxFit.cover,
|
|
),
|
|
SizedBox(width: 24.0.w()),
|
|
],
|
|
title: Padding(
|
|
padding: EdgeInsetsDirectional.only(start: 24.0.w()),
|
|
child: Text(
|
|
title,
|
|
style: TextStyle(
|
|
color: AppColors.grey70,
|
|
fontWeight: FontWeight.w600,
|
|
fontSize: 20.0.sp(),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
// PreferredSize appBar({required String title, required BuildContext context}) {
|
|
// return PreferredSize(
|
|
// preferredSize: Size.fromHeight(kToolbarHeight.h()),
|
|
// child: Container(
|
|
// color: AppColors.backgroundColor,
|
|
// padding: EdgeInsets.symmetric(horizontal: 24.0.w()),
|
|
// height: 56.0.h(),
|
|
// width: double.infinity,
|
|
// child: Row(
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
// children: [
|
|
// GestureDetector(
|
|
// onTap: () {
|
|
// Navigator.pop(context);
|
|
// },
|
|
// child: SvgPicture.asset(
|
|
// AssetsManager.arrowLeft,
|
|
// width: 24.0.w(),
|
|
// height: 24.0.h(),
|
|
// ),
|
|
// ),
|
|
// SizedBox(width: 2.0.w()),
|
|
// Text(
|
|
// title,
|
|
// style: TextStyle(
|
|
// fontSize: 20,
|
|
// fontWeight: FontWeight.bold,
|
|
// color: AppColors.grey70,
|
|
// ),
|
|
// ),
|
|
// ],
|
|
// ),
|
|
// ),
|
|
// );
|
|
// }
|