31 lines
798 B
Plaintext
31 lines
798 B
Plaintext
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, 194, 218, 230),
|
|
flexibleSpace: Container(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Center(
|
|
child: Padding(
|
|
padding: const EdgeInsets.only(top: 30.0),
|
|
child: Image.asset(
|
|
'assets/logo-civan.png',
|
|
height: 150,
|
|
width: 150,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
@override
|
|
Size get preferredSize => const Size.fromHeight(kToolbarHeight);
|
|
}
|