// import 'package:flutter/material.dart'; // import 'package:flutter_svg/svg.dart'; // // import '../utils/colors.dart'; // Assuming AppColors is defined here, including darkPrimaryColor // import '../utils/sized.dart'; // Assuming this provides any necessary sizing constants // import 'custom_text.dart'; // // Widget buildHeader(BuildContext context, String title, bool support) { // final isDarkMode = Theme.of(context).brightness == Brightness.dark; // // // final Color headerBackgroundColor = isDarkMode // ? AppColors.darkPrimaryColor // : AppColors.primaryColor; // // const Color contentColor = AppColors.white; // // final double statusBarHeight = MediaQuery.of(context).padding.top; // // return Stack( // children: [ // // Header background SVG // SvgPicture.asset( // 'assets/images/topcurvehistoryscreen.svg', // fit: BoxFit.cover, // width: MediaQuery.of(context).size.width, // colorFilter: ColorFilter.mode(headerBackgroundColor, BlendMode.srcIn), // ), // Positioned( // top: statusBarHeight + 16.0, // left: 20.0, // child: Row( // crossAxisAlignment: CrossAxisAlignment.center, // children: [ // InkWell( // onTap: () => Navigator.pop(context), // child: const Icon( // Icons.arrow_back, // color: contentColor, // size: 22, // ), // ), // const SizedBox(width: 23), // Txt( // Assuming Txt is your custom text widget // text: title, // style: const TextStyle( // color: contentColor, // fontWeight: FontWeight.bold, // fontSize: 22, // fontFamily: 'Poppins', // ), // ), // ], // ), // ), // // Support Image (if applicable) // support // ? Positioned( // top: statusBarHeight + 10, // right: 10, // child: Center( // child: Image.asset( // 'assets/images/car_beem.png', // height: 80, // ), // ), // ) // : const SizedBox(), // ], // ); // }