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,6 +14,7 @@ class _HomeState extends State<Home>{
14 14
   Widget build(BuildContext context){
15 15
     return Scaffold(
16 16
       appBar: AppBar(
17
+        backgroundColor: Colors.red[300],
17 18
         title: Text('Bienvenido'),
18 19
         centerTitle: true,
19 20
       ),
@@ -23,9 +24,7 @@ class _HomeState extends State<Home>{
23 24
           children: [
24 25
             newButton(context,'/verOficinas','Ver Oficinas'),
25 26
             spaceBetween(),
26
-            newButton(context,'/calendario','Calendario'),
27
-            spaceBetween(),
28
-            newButton(context,'/especialidades','especialidades'),
27
+            newButton(context,'/especialidades','Buscar \nespecialidades'),
29 28
             spaceBetween(),
30 29
             newButton(context,'/translation','translation'),
31 30
             spaceBetween(),

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

@@ -72,7 +72,7 @@ class _NavigationPageState extends State<NavigationPage>{
72 72
           BottomNavigationBarItem(icon: Icon(Icons.person_rounded),
73 73
               label: 'Profile'),
74 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,6 +158,7 @@ class _VerOficinaState extends State<VerOficina>{
158 158
     return Scaffold(
159 159
       appBar: AppBar(
160 160
         title: Text(name),
161
+        backgroundColor: Colors.red[300],
161 162
         centerTitle: true,
162 163
       ),
163 164
       body: Center(
@@ -189,7 +190,9 @@ class _VerOficinaState extends State<VerOficina>{
189 190
                     children: <Widget>[
190 191
                       TextButton(
191 192
                         child: const Text('Buscar Disponibilidad'),
192
-                        onPressed: () { /* ... */ },
193
+                        onPressed: () {
194
+                          Navigator.pushNamed(context, '/calendario');
195
+                        },
193 196
                       ),
194 197
                       const SizedBox(width: 8),
195 198
                     ],

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

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

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

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