import 'package:flutter/material.dart';

class CustomAppBar extends StatelessWidget implements PreferredSizeWidget {
  const CustomAppBar({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return AppBar(
      title: const Text(''),
      centerTitle: true,
      backgroundColor: Color.fromARGB(255, 78, 169, 6),
      flexibleSpace: Container(
        padding: const EdgeInsets.all(8.0),
        child: Center(
          child: Padding(
            padding: const EdgeInsets.only(top: 10.0),
            child: Image.asset(
              'assets/logo-civan.png',
              height: 200,
              width: 200,
            ),
          ),
        ),
      ),
    );
  }

  @override
  Size get preferredSize => const Size.fromHeight(kToolbarHeight);
}
