|
@@ -1,135 +0,0 @@
|
1
|
|
-import 'package:flutter/cupertino.dart';
|
2
|
|
-import 'package:flutter_login/flutter_login.dart';
|
3
|
|
-import 'package:flutter/material.dart';
|
4
|
|
-import 'package:google_fonts/google_fonts.dart';
|
5
|
|
-import 'package:hello/Offices.dart';
|
6
|
|
-import 'dynamic.dart';
|
7
|
|
-import 'Offices.dart';
|
8
|
|
-import 'OfficeScreen.dart';
|
9
|
|
-import 'package:flutter/foundation.dart';
|
10
|
|
-import 'package:http/http.dart' as http;
|
11
|
|
-
|
12
|
|
-//This page only works when called by other OfficeScreenPage()
|
13
|
|
-//Need to add the functionality to work on its own
|
14
|
|
-
|
15
|
|
-
|
16
|
|
-class AppointmentPage extends StatelessWidget {
|
17
|
|
-
|
18
|
|
-
|
19
|
|
- final Offices O;
|
20
|
|
- AppointmentPage({Key key, @required this.O}) :super(key: key);
|
21
|
|
- // AppointmentPage({Key key, @required this.O}) : super(key: key);
|
22
|
|
-
|
23
|
|
- // final String title;
|
24
|
|
- //
|
25
|
|
- // Future<http.Response> fetchAlbum() {
|
26
|
|
- // return http.get('https://ada.uprrp.edu/~hector.sierra/FastMed/API/API/getcitas.php');
|
27
|
|
- // }
|
28
|
|
-
|
29
|
|
-
|
30
|
|
-
|
31
|
|
- // List<dynamicWidget> listDynamic = [];
|
32
|
|
- // List<String> data = [];
|
33
|
|
- // Icon floatingIcon = new Icon(Icons.add);
|
34
|
|
- //
|
35
|
|
- // addDynamic() {
|
36
|
|
- // if (data.length != 0) {
|
37
|
|
- // floatingIcon = new Icon(Icons.add);
|
38
|
|
- // data = [];
|
39
|
|
- // listDynamic = [];
|
40
|
|
- // print('if');
|
41
|
|
- // }
|
42
|
|
- // setState(() {});
|
43
|
|
- // if (listDynamic.length >= 5) {
|
44
|
|
- // return;
|
45
|
|
- // }
|
46
|
|
- // listDynamic.add(new dynamicWidget());
|
47
|
|
- // }
|
48
|
|
- //
|
49
|
|
-
|
50
|
|
- // var docs = ["Collazo", "Albizu"];
|
51
|
|
- // var spec = ["General", "Pediatra"];
|
52
|
|
- // var addrs = ["Bo. Montellano, Cayey", "Las Dalias, Mayagüez"];
|
53
|
|
-
|
54
|
|
-
|
55
|
|
- @override
|
56
|
|
- Widget card() {
|
57
|
|
- return SizedBox(
|
58
|
|
- width: 380,
|
59
|
|
- height: 150,
|
60
|
|
- child: Card(
|
61
|
|
- child: Column(
|
62
|
|
- mainAxisSize: MainAxisSize.min,
|
63
|
|
- children: <Widget>[
|
64
|
|
- ListTile(
|
65
|
|
-
|
66
|
|
- leading: Icon(
|
67
|
|
- Icons.check,
|
68
|
|
- color: Colors.green,
|
69
|
|
- size: 60,
|
70
|
|
- ),
|
71
|
|
- title: Text( O.doctor + "\n" + O.specialty, textScaleFactor: 1.5,),
|
72
|
|
- subtitle: Text(O.address, textScaleFactor: 1.45,),
|
73
|
|
- trailing: Text("\n10:45 - 11:45 ", textScaleFactor: 1.30,),
|
74
|
|
-
|
75
|
|
- ),
|
76
|
|
- // ListTile(
|
77
|
|
- // leading: Icon(
|
78
|
|
- // Icons.check,
|
79
|
|
- // color: Colors.green,
|
80
|
|
- // size: 60,
|
81
|
|
- // ),
|
82
|
|
- // title: Text("Figueroa" + "\n" + "Gastrointerologo", textScaleFactor: 1.5,),
|
83
|
|
- // subtitle: Text("Las Dalias, Mayagüez", textScaleFactor: 1.45,),
|
84
|
|
- // trailing: Text("\n10:45 - 11:45 ", textScaleFactor: 1.30,),
|
85
|
|
- //
|
86
|
|
- // )
|
87
|
|
- ],
|
88
|
|
- ),
|
89
|
|
- ),
|
90
|
|
- );
|
91
|
|
- }
|
92
|
|
-
|
93
|
|
- @override
|
94
|
|
- Widget build(BuildContext context) {
|
95
|
|
- final height = MediaQuery.of(context).size.height;
|
96
|
|
- return Scaffold(
|
97
|
|
-
|
98
|
|
- body: Container(
|
99
|
|
- height: height,
|
100
|
|
- child:Container(
|
101
|
|
- width: MediaQuery.of(context).size.width,
|
102
|
|
- padding: EdgeInsets.symmetric(horizontal: 20),
|
103
|
|
- // height: MediaQuery.of(context).size.height,
|
104
|
|
- decoration: BoxDecoration(
|
105
|
|
- borderRadius: BorderRadius.all(Radius.circular(4)),
|
106
|
|
- boxShadow: [
|
107
|
|
- BoxShadow(
|
108
|
|
- color: Colors.white,
|
109
|
|
- offset: Offset(0,3),
|
110
|
|
- blurRadius: 5,
|
111
|
|
- spreadRadius: 2)
|
112
|
|
- ]
|
113
|
|
-
|
114
|
|
- ),
|
115
|
|
- child: SingleChildScrollView(
|
116
|
|
- child: Column(
|
117
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
118
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
119
|
|
- children: <Widget> [
|
120
|
|
- SizedBox(
|
121
|
|
- height: 80,
|
122
|
|
- ),
|
123
|
|
- card(),
|
124
|
|
- SizedBox(
|
125
|
|
- height: 25,
|
126
|
|
- ),
|
127
|
|
- // card(docs[1], spec[1], addrs[1]),
|
128
|
|
- ],
|
129
|
|
- )
|
130
|
|
- ),
|
131
|
|
- ),
|
132
|
|
- )
|
133
|
|
- );
|
134
|
|
- }
|
135
|
|
-}
|