mirrored_repositories/Evira_Ecommerce/lib/feature/product/presentation
import 'package:flutter/material.dart';
import 'package:evira_shop/core/asset_constants.dart' as asset;

PreferredSize DefaultAppBar(
  String title,
) {
  return PreferredSize(
      child: SafeArea(
        child: AppBar(
          elevation: 0,
          primary: false,
          automaticallyImplyLeading: false,
          backgroundColor: Colors.transparent,
          titleSpacing: 10,
          title: Row(
            children: [
              IconButton(
                onPressed: () {},
                icon: Image.asset(asset.logo1),
              ),
              Text(
                title,
                style: const TextStyle(
                    color: Colors.black, fontFamily: 'Ubuntu', fontSize: 23),
              )
            ],
          ),
          actions: [
            IconButton(
                onPressed: () {},
                icon: Icon(
                  Icons.search,
                  color: Colors.black54,
                  size: 30,
                ))
          ],
        ),
      ),
      preferredSize: const Size.fromHeight(60));
}
