No Description

Offices.dart 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // import 'package:flutter/material.dart';
  2. // import 'dart:convert';
  3. // import 'package:flutter/foundation.dart';
  4. // import 'OfficeScreen.dart';
  5. // import 'appointments.dart';
  6. //
  7. // class Officess {
  8. // final String office;
  9. // final String doctor;
  10. // final String specialty;
  11. // final String address;
  12. //
  13. // Officess({this.office, this.doctor, this.specialty, this.address});
  14. //
  15. // factory Officess.fromJson(Map<String, dynamic> json) {
  16. // return Officess(
  17. // office: json['office'],
  18. // doctor: json['doctor'],
  19. // specialty: json['id'],
  20. // address: json['title'],
  21. // );
  22. // }
  23. // }
  24. class Offices {
  25. final String office;
  26. final String doctor;
  27. final String specialty;
  28. final String address;
  29. var variable = 32;
  30. var docs = ["Collazo", "Albizu"];
  31. var spec = ["General", "Pediatra"];
  32. var addrs = ["Bo. Montellano, Cayey", "Las Dalias, Mayagüez"];
  33. Offices(this.office, this.doctor, this.specialty, this.address);
  34. }
  35. // var docs = List<String> ("juan", "pedro");
  36. // final off = List<Offices>.generate(
  37. // 2,
  38. // (i) => Offices(
  39. // 'Office $i',
  40. // docs[i], spec[i], addrs[i],
  41. // ),
  42. // );
  43. // final off = List<Offices>.generate(
  44. // 2,
  45. // (i) => Offices(
  46. // 'Office $i',
  47. // docs[i],
  48. // spec[i],
  49. // addrs[i],
  50. // ),
  51. // );