ficheros app_bar y bottom_bar creados

This commit is contained in:
2024-04-29 13:00:21 +02:00
parent dd5be31611
commit 13050116ac
3 changed files with 83 additions and 27 deletions

30
lib/app_bar Normal file
View File

@ -0,0 +1,30 @@
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);
}