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

View File

@ -1,5 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_project/app_bar';
import 'package:flutter_project/bottom_bar';
class MyHomePage extends StatelessWidget {
const MyHomePage({Key? key, required this.title}) : super(key: key);
@ -8,26 +10,8 @@ class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: 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), // Margen superior
child: Image.asset(
'assets/logo-civan.png',
height: 150,
width: 150,
),
),
),
),
),
appBar: const CustomAppBar(),
body: Container(
decoration: const BoxDecoration(
image: DecorationImage(
@ -40,8 +24,7 @@ class MyHomePage extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
InkWell(
onTap: () {
},
onTap: () {},
child: SizedBox(
width: 300.0,
child: Padding(
@ -66,8 +49,7 @@ class MyHomePage extends StatelessWidget {
),
),
InkWell(
onTap: () {
},
onTap: () {},
child: SizedBox(
width: 300.0,
child: Padding(
@ -92,8 +74,7 @@ class MyHomePage extends StatelessWidget {
),
),
InkWell(
onTap: () {
},
onTap: () {},
child: SizedBox(
width: 300.0,
child: Padding(
@ -118,8 +99,7 @@ class MyHomePage extends StatelessWidget {
),
),
InkWell(
onTap: () {
},
onTap: () {},
child: SizedBox(
width: 300.0,
child: Padding(
@ -147,6 +127,8 @@ class MyHomePage extends StatelessWidget {
),
),
),
bottomNavigationBar: const CustomBottomBar(),
);
}
}