Cambio de imagen y funcion launchAemet integrada
This commit is contained in:
@ -1,7 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_project/app_bar';
|
||||
import 'package:flutter_project/bottom_bar';
|
||||
import 'package:flutter_project/contenedores_event.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
|
||||
|
||||
|
||||
class MyHomePage extends StatelessWidget {
|
||||
const MyHomePage({Key? key, required this.title}) : super(key: key);
|
||||
@ -11,13 +15,14 @@ class MyHomePage extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: const CustomAppBar(),
|
||||
|
||||
body: Container(
|
||||
|
||||
decoration: const BoxDecoration(
|
||||
image: DecorationImage(
|
||||
image: AssetImage('assets/logo-fondo.png'),
|
||||
image: AssetImage('assets/logo-sin-texto.png'),
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
|
||||
),
|
||||
child: Center(
|
||||
child: Column(
|
||||
@ -99,7 +104,9 @@ class MyHomePage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
InkWell(
|
||||
onTap: () {},
|
||||
onTap: () {
|
||||
launchAemetURL();
|
||||
},
|
||||
child: SizedBox(
|
||||
width: 300.0,
|
||||
child: Padding(
|
||||
@ -127,8 +134,7 @@ class MyHomePage extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
bottomNavigationBar: const CustomBottomBar(),
|
||||
|
||||
bottomNavigationBar: const CustomBottomBar(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user