ficheros app_bar y bottom_bar creados
This commit is contained in:
@ -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(),
|
||||
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user