Browse Source

update a colores y se movio el boton de calendario a donde va

Oniel Mendez 3 years ago
parent
commit
78f01f2778

+ 2
- 3
fast_med_flutter/lib/routes/home.dart View File

14
   Widget build(BuildContext context){
14
   Widget build(BuildContext context){
15
     return Scaffold(
15
     return Scaffold(
16
       appBar: AppBar(
16
       appBar: AppBar(
17
+        backgroundColor: Colors.red[300],
17
         title: Text('Bienvenido'),
18
         title: Text('Bienvenido'),
18
         centerTitle: true,
19
         centerTitle: true,
19
       ),
20
       ),
23
           children: [
24
           children: [
24
             newButton(context,'/verOficinas','Ver Oficinas'),
25
             newButton(context,'/verOficinas','Ver Oficinas'),
25
             spaceBetween(),
26
             spaceBetween(),
26
-            newButton(context,'/calendario','Calendario'),
27
-            spaceBetween(),
28
-            newButton(context,'/especialidades','especialidades'),
27
+            newButton(context,'/especialidades','Buscar \nespecialidades'),
29
             spaceBetween(),
28
             spaceBetween(),
30
             newButton(context,'/translation','translation'),
29
             newButton(context,'/translation','translation'),
31
             spaceBetween(),
30
             spaceBetween(),

+ 1
- 1
fast_med_flutter/lib/routes/navigation.dart View File

72
           BottomNavigationBarItem(icon: Icon(Icons.person_rounded),
72
           BottomNavigationBarItem(icon: Icon(Icons.person_rounded),
73
               label: 'Profile'),
73
               label: 'Profile'),
74
           BottomNavigationBarItem(icon: Icon(Icons.event_note_rounded),
74
           BottomNavigationBarItem(icon: Icon(Icons.event_note_rounded),
75
-              label: 'Appointments')
75
+              label: 'Ver Mas')
76
         ],
76
         ],
77
 
77
 
78
       ),
78
       ),

+ 4
- 1
fast_med_flutter/lib/routes/ver_oficina.dart View File

158
     return Scaffold(
158
     return Scaffold(
159
       appBar: AppBar(
159
       appBar: AppBar(
160
         title: Text(name),
160
         title: Text(name),
161
+        backgroundColor: Colors.red[300],
161
         centerTitle: true,
162
         centerTitle: true,
162
       ),
163
       ),
163
       body: Center(
164
       body: Center(
189
                     children: <Widget>[
190
                     children: <Widget>[
190
                       TextButton(
191
                       TextButton(
191
                         child: const Text('Buscar Disponibilidad'),
192
                         child: const Text('Buscar Disponibilidad'),
192
-                        onPressed: () { /* ... */ },
193
+                        onPressed: () {
194
+                          Navigator.pushNamed(context, '/calendario');
195
+                        },
193
                       ),
196
                       ),
194
                       const SizedBox(width: 8),
197
                       const SizedBox(width: 8),
195
                     ],
198
                     ],

+ 3
- 2
fast_med_flutter/lib/routes/ver_oficinas.dart View File

56
       appBar: AppBar(
56
       appBar: AppBar(
57
         title: Text('Oficinas'),
57
         title: Text('Oficinas'),
58
         centerTitle: true,
58
         centerTitle: true,
59
-        backgroundColor: Colors.purple,
59
+        backgroundColor: Colors.red[300],
60
 
60
 
61
       ),
61
       ),
62
       body: ListView.builder(
62
       body: ListView.builder(
63
         itemCount: lista.length,
63
         itemCount: lista.length,
64
         itemBuilder: (context, index){
64
         itemBuilder: (context, index){
65
           return Card(
65
           return Card(
66
-          child: ListTile(
66
+              color: Colors.red[300],
67
+              child: ListTile(
67
             onTap: () {
68
             onTap: () {
68
               Navigator.pushNamed(context, "/ver/oficina", arguments:{
69
               Navigator.pushNamed(context, "/ver/oficina", arguments:{
69
                 'id' : lista[index].id,
70
                 'id' : lista[index].id,

+ 3
- 3
fast_med_flutter/lib/widgets/functions.dart View File

10
     child: Text(text,
10
     child: Text(text,
11
       style: TextStyle(fontSize: 36),
11
       style: TextStyle(fontSize: 36),
12
     ),
12
     ),
13
-    color: Colors.purple,
13
+    color: Colors.red[300],
14
     //shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(50)),
14
     //shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(50)),
15
     padding: EdgeInsets.all(25),
15
     padding: EdgeInsets.all(25),
16
   );
16
   );
26
           print(name);
26
           print(name);
27
         },
27
         },
28
         padding: new EdgeInsets.all(0.0),
28
         padding: new EdgeInsets.all(0.0),
29
-        color: Colors.purple,
29
+        color: Colors.red[300],
30
 
30
 
31
       );
31
       );
32
 }
32
 }
44
           child: Text(text,
44
           child: Text(text,
45
             style: TextStyle(fontSize: 36),
45
             style: TextStyle(fontSize: 36),
46
           ),
46
           ),
47
-          color: Colors.purple,
47
+          color: Colors.red[300],
48
           //shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(50)),
48
           //shape: new RoundedRectangleBorder(borderRadius: new BorderRadius.circular(50)),
49
           padding: EdgeInsets.all(25),
49
           padding: EdgeInsets.all(25),
50
         )
50
         )