-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome.dart
158 lines (134 loc) · 4.41 KB
/
Home.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
import 'package:flutter/material.dart';
import 'package:hack_mty/Perfil.dart';
import 'package:hack_mty/chat.dart';
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
toolbarHeight: 50,
backgroundColor: Color(0xFFD9D9D9),
flexibleSpace: Padding(
padding: const EdgeInsets.only(top: 50, left: 50, right: 50),
child: Container(
child: Image.asset(
'assets/Logo_de_Banorte.png', // Ruta de la imagen en assets
width: 150,
height: 400, // Ajusta la imagen para que cubra el ancho de la pantalla
),
),
),
),
body: Stack(
children: [
// Círculo en la parte superior izquierda
Positioned(
top: 600,
left: -600,
child: Container(
width: 1800, // Diámetro del círculo
height: 700, // Diámetro del círculo
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Color(0xFFC90000), // Color del círculo
),
),
),
// Imagen
Positioned(
top: 30,
left: 320,
right: 20,
child: InkWell(
onTap:() => Navigator.push(
context,
MaterialPageRoute(builder: (context) => Perfil()),
),
child: Image.asset(
'assets/iconoUsuario.png', // Ruta de la imagen en assets
width: MediaQuery.of(context).size.width,
// Ajusta la imagen para que cubra el ancho de la pantalla
),
),
),
// Texto sobre el círculo
Positioned(
top: 30, // Ajusta la posición del texto sobre el círculo
left: 30, // Ajusta la posición del texto sobre el círculo
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
SizedBox(height: 50),
Row(children:[
SizedBox(width: 28,),
Text("¡Hola, <nombre>!", style: TextStyle(color: Colors.black,fontSize: 30,fontWeight: FontWeight.bold)),]),
const SizedBox(
height: 50,
),
Container(
child: SizedBox(
width: 300,
height: 50,
child: Transform.translate(
offset: Offset(45.0, 0.0), // Ajusta el valor de '50.0' según tu preferencia
child: Text(
'¿Estás listo para navegar?',
style: TextStyle(
color: Colors.black,
fontSize: 18.0,
fontWeight: FontWeight.bold,
),
),
),
),
),
const SizedBox(
height: 90,
),
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Color(0xFFDB2014),
onPrimary: Colors.black,
elevation: 10,
padding: const EdgeInsets.fromLTRB(90, 70, 100, 50),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30.0),
),
),
onPressed:() => Navigator.push(
context,
MaterialPageRoute(builder: (context) => Chat()),
),
child: const Text(
'Chat general',
style: TextStyle(
color: Colors.white,
fontSize: 20.0,
fontWeight: FontWeight.bold,
),
),
),
),
SizedBox(
height: 100, // Espacio vertical entre los botones
),
],
),
],
),
),
],
),
);
}
void Chat_general() {
}
void Graficas() {
// Your login logic goes here
}
}