Advertisement
Guest User

Untitled

a guest
Aug 20th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 82.26 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2. import 'package:image_picker/image_picker.dart';
  3. import 'dart:io';
  4. import 'dart:typed_data';
  5. import 'dart:async';
  6. import 'package:flutter/services.dart' show rootBundle;
  7. import 'package:firebase_storage/firebase_storage.dart';
  8. import 'package:cloud_firestore/cloud_firestore.dart';
  9. import 'package:doctorradar/pages/doctorslogin.dart';
  10. import 'package:doctorradar/pages/home_screen.dart';
  11.  
  12. final Controller = TextEditingController();
  13. final Controller1 = TextEditingController();
  14. final Controller2 = TextEditingController();
  15. final Controller3 = TextEditingController();
  16. final Controller4 = TextEditingController();
  17. final Controller5 = TextEditingController();
  18. final Controller6 = TextEditingController();
  19. String docname = Controller.text;
  20. String docfield;
  21. String docspecialty = Controller1.text;
  22. String docoverview = Controller2.text;
  23. String docclinicnum = Controller3.text;
  24. String doccontracted = Controller4.text;
  25. String doclocation2 = Controller5.text;
  26. String docstatus = Controller6.text;
  27. String pathfile;
  28. bool uploadedd = false;
  29. String photo = 'Choose Image';
  30.  
  31. class DoctorsArea extends StatefulWidget {
  32.   @override
  33.   SubmitState createState() {
  34.     return new SubmitState();
  35.   }
  36. }
  37.  
  38. class SubmitState extends State<DoctorsArea> {
  39.   File image;
  40.   String _path;
  41.   final CollectionReference collectionReference =
  42.       Firestore.instance.collection("");
  43.   final _formKey = GlobalKey<FormState>();
  44.  
  45.   Future<Null> uploadFile(String filepath) async {
  46.     setState(() {
  47.       docname = Controller.text;
  48.     });
  49.  
  50.     final ByteData bytes = await rootBundle.load(filepath);
  51.     final Directory tempDir = Directory.systemTemp;
  52.     final String fileName = "$docid";
  53.     final File file = File('${tempDir.path}/$fileName');
  54.     file.writeAsBytes(bytes.buffer.asInt8List(), mode: FileMode.write);
  55.  
  56.     final StorageReference ref = FirebaseStorage.instance.ref().child(fileName);
  57.     final StorageUploadTask task = ref.putFile(file);
  58.     final Uri downloadUrl = (await task.future).downloadUrl;
  59.     setState(() {
  60.       _path = downloadUrl.toString();
  61.       uploadedd = true;
  62.     });
  63.   }
  64.  
  65.   picker() async {
  66.     File img = await ImagePicker.pickImage(
  67.       source: ImageSource.gallery,
  68.     );
  69. //    File img = await ImagePicker.pickImage(source: ImageSource.gallery);
  70.     if (img != null) {
  71.       image = img;
  72.       pathfile = img.path;
  73.       uploadFile(pathfile);
  74.       setState(() {});
  75.       setState(() {
  76.         photo = "Remove Image";
  77.       });
  78.     }
  79.   }
  80.  
  81.   String _selected = "General Surgery";
  82.  
  83.   void onChanged(String value) {
  84.     setState(() {
  85.       _selected = value;
  86.       docfield = value;
  87.     });
  88.   }
  89.  
  90.   Widget picture() {
  91.     if (image == null) {
  92.       return Icon(
  93.         Icons.account_box,
  94.         color: Colors.blue,
  95.         size: 100.0,
  96.       );
  97.     } else
  98.       return Padding(
  99.         padding: const EdgeInsets.all(8.0),
  100.         child: Image.file(image),
  101.       );
  102.   }
  103.  
  104.   void _add() {
  105.     Map<String, String> data = <String, String>{
  106.       "ID": "$docid",
  107.       "Name": "$docname",
  108.       "Field": "$docfield",
  109.       "Specialty": "$docspecialty",
  110.       "Contracted": "$doccontracted",
  111.       "Status": "$docstatus",
  112.       "Description": "$docoverview",
  113.       "Number": "$docclinicnum",
  114.       "Location": "",
  115.       "Location2": "$doclocation2",
  116.       "Picture": "$_path",
  117.     };
  118.     collectionReference.document("Doctors/$docid").setData(data);
  119.   }
  120.  
  121.   bool hasData1 = false;
  122.  
  123.   Future<bool> hasInternetConnectivity() async {
  124.     try {
  125.       final result = await InternetAddress.lookup('google.com');
  126.       if (result.isNotEmpty && result[0].rawAddress.isNotEmpty) {
  127.         setState(() {
  128.           hasData1 = true;
  129.         });
  130.  
  131.         return true;
  132.       }
  133.     } on SocketException catch (_) {
  134.       setState(() {
  135.         hasData1 = false;
  136.       });
  137.       return false;
  138.     }
  139.     setState(() {
  140.       hasData1 = false;
  141.     });
  142.     return false;
  143.   }
  144.  
  145.   @override
  146.   void initState() {
  147.     super.initState();
  148.     hasInternetConnectivity().whenComplete(() {
  149.       return hasData1;
  150.     });
  151.   }
  152.  
  153.   @override
  154.   Widget build(BuildContext context) {
  155.     final Screensize = MediaQuery.of(context).size;
  156.     return Scaffold(
  157.       floatingActionButton: new FloatingActionButton(
  158.         child: new Icon(Icons.check),
  159.         onPressed: () {
  160.           print("This is docid  $docid");
  161.           if (_formKey.currentState.validate()) {
  162.             setState(() {
  163.               docname = Controller.text;
  164.               docspecialty = Controller1.text;
  165.               docoverview = Controller2.text;
  166.               docclinicnum = Controller3.text;
  167.               doccontracted = Controller4.text;
  168.               doclocation2 = Controller5.text;
  169.               docstatus = Controller6.text;
  170.             });
  171.             hasInternetConnectivity().whenComplete(() {
  172.               return hasData1;
  173.             });
  174.             if (hasData1 == false) {
  175.               showModalBottomSheet<void>(
  176.                   context: context,
  177.                   builder: (BuildContext context) {
  178.                     return new Container(
  179.                         child: new Padding(
  180.                       padding: const EdgeInsets.all(32.0),
  181.                       child: new Text(
  182.                         "Please Connect to the Internet ",
  183.                         textAlign: TextAlign.center,
  184.                         style: TextStyle(
  185.                           color: Colors.red,
  186.                           fontSize: 20.0,
  187.                         ),
  188.                       ),
  189.                     ));
  190.                   });
  191.             } else if (hasData1 == true && uploadedd == true) {
  192.               _add();
  193.               showDialog(
  194.                 context: context,
  195.                 builder: (context) => AlertDialog(
  196.                       title: new ListTile(
  197.                         title: new Text("Form Completed"),
  198.                         subtitle: new Text(
  199.                             "You are Now Registered in Doctor Radar Lists and Your Profile Will be Displayed Across All Devices.You Will Now be Navigated To the Users Page"),
  200.                       ),
  201.                       actions: <Widget>[
  202.                         FlatButton(
  203.                             onPressed: () {
  204.                               Navigator.pop(context);
  205.                               Navigator.push(
  206.                                 context,
  207.                                 MaterialPageRoute(
  208.                                     builder: (context) => HomeScreen()),
  209.                               );
  210.                             },
  211.                             child: new Text("Okay"))
  212.                       ],
  213.                     ),
  214.               );
  215.             } else if (hasData1 == true && uploadedd == false) {
  216.               showModalBottomSheet<void>(
  217.                   context: context,
  218.                   builder: (BuildContext context) {
  219.                     return new Container(
  220.                         child: new Padding(
  221.                       padding: const EdgeInsets.all(32.0),
  222.                       child: new Text(
  223.                         "You Did Not Upload an Image Yet ",
  224.                         textAlign: TextAlign.center,
  225.                         style: TextStyle(
  226.                           color: Colors.red,
  227.                           fontSize: 20.0,
  228.                         ),
  229.                       ),
  230.                     ));
  231.                   });
  232.             }
  233.           } else {
  234.             showModalBottomSheet<void>(
  235.                 context: context,
  236.                 builder: (BuildContext context) {
  237.                   return new Container(
  238.                       child: new Padding(
  239.                     padding: const EdgeInsets.all(32.0),
  240.                     child: new Text(
  241.                       "Please Check Your Form Again",
  242.                       textAlign: TextAlign.center,
  243.                       style: TextStyle(
  244.                         color: Colors.red,
  245.                         fontSize: 20.0,
  246.                       ),
  247.                     ),
  248.                   ));
  249.                 });
  250.           }
  251.         },
  252.       ),
  253.       appBar: new AppBar(
  254.         title: new Text("Update Your Credentials"),
  255.       ),
  256.       body: new Container(
  257.         child: Form(
  258.           key: _formKey,
  259.           child: ListView(
  260.             scrollDirection: Axis.vertical,
  261.             children: <Widget>[
  262.               Center(
  263.                 child: Container(
  264.                   child: Card(
  265.                     child: Column(
  266.                       crossAxisAlignment: CrossAxisAlignment.center,
  267.                       mainAxisAlignment: MainAxisAlignment.center,
  268.                       children: <Widget>[
  269.                         picture(),
  270.                         Padding(
  271.                           padding: const EdgeInsets.all(12.0),
  272.                           child: Text("Enter Your Full Name:",
  273.                               style: TextStyle(
  274.                                   fontSize: 20.0, color: Colors.blue)),
  275.                         ),
  276.                         Padding(
  277.                           padding: const EdgeInsets.all(12.0),
  278.                           child: TextFormField(
  279.                             validator: (value) {
  280.                               if (value.startsWith(' ')) {
  281.                                 return 'Do not start Your Name with spaces';
  282.                               } else if (value.isEmpty) {
  283.                                 return 'Please Enter Your Name';
  284.                               }
  285.                             },
  286.                             keyboardType: TextInputType.multiline,
  287.                             maxLines: null,
  288.                             autofocus: false,
  289.                             decoration: InputDecoration(
  290.                               hintText: 'Full Name',
  291.                               contentPadding:
  292.                                   EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0),
  293.                               border: OutlineInputBorder(
  294.                                   borderRadius: BorderRadius.circular(32.0)),
  295.                             ),
  296.                             controller: Controller,
  297.                           ),
  298.                         ),
  299.                         Column(
  300.                           children: <Widget>[
  301.                             Padding(
  302.                               padding: const EdgeInsets.all(8.0),
  303.                               child: Text(
  304.                                 "Upload Profile Picture",
  305.                                 style: TextStyle(
  306.                                     fontSize: 20.0, color: Colors.blue),
  307.                               ),
  308.                             ),
  309.                             ButtonBar(
  310.                               mainAxisSize: MainAxisSize.min,
  311.                               children: <Widget>[
  312.                                 new RaisedButton(
  313.                                   color: Colors.blue,
  314.                                   child: Text(
  315.                                     "$photo",
  316.                                     style: TextStyle(color: Colors.white),
  317.                                   ),
  318.                                   onPressed: () {
  319.                                     if (photo == 'Choose Image') {
  320.                                       picker();
  321.                                     } else if (photo == "Remove Image") {
  322.                                       setState(() {
  323.                                         image = null;
  324.                                         uploadedd = false;
  325.                                         photo = 'Choose Image';
  326.                                         print(docname);
  327.                                       });
  328.                                     }
  329.                                   },
  330.                                 ),
  331.                               ],
  332.                             ),
  333.                           ],
  334.                         ),
  335.                       ],
  336.                     ),
  337.                   ),
  338.                   margin: EdgeInsets.only(left: 10.0, right: 5.0, top: 10.0),
  339.                 ),
  340.               ),
  341.               Center(
  342.                 child: Container(
  343.                   child: Card(
  344.                     child: Column(
  345.                       crossAxisAlignment: CrossAxisAlignment.center,
  346.                       mainAxisAlignment: MainAxisAlignment.center,
  347.                       children: <Widget>[
  348.                         new Icon(
  349.                           Icons.assignment,
  350.                           color: Colors.blue,
  351.                           size: 80.0,
  352.                         ),
  353.                         Padding(
  354.                           padding: const EdgeInsets.all(12.0),
  355.                           child: Text("Choose Your Major Among The List:",
  356.                               textAlign: TextAlign.center,
  357.                               style: TextStyle(
  358.                                   fontSize: 20.0, color: Colors.blue)),
  359.                         ),
  360.                         Container(
  361.                           height: Screensize.height / 3,
  362.                           child: SingleChildScrollView(
  363.                             scrollDirection: Axis.vertical,
  364.                             child: new Column(
  365.                               children: <Widget>[
  366.                                 new ListTile(
  367.                                     leading: new Text(
  368.                                   "surgery majors",
  369.                                   textAlign: TextAlign.start,
  370.                                   style: TextStyle(
  371.                                     fontSize: 25.0,
  372.                                     color: Colors.red,
  373.                                   ),
  374.                                 )),
  375.                                 new RadioListTile(
  376.                                     title: new Text(
  377.                                       "General Surgery",
  378.                                       style: TextStyle(
  379.                                           fontWeight: FontWeight.bold),
  380.                                     ),
  381.                                     value: 'General Surgery',
  382.                                     groupValue: _selected,
  383.                                     onChanged: (String value) {
  384.                                       onChanged(value);
  385.                                     }),
  386.                                 new RadioListTile(
  387.                                     title: new Text(
  388.                                       "Head & Neck Surgery",
  389.                                       style: TextStyle(
  390.                                           fontWeight: FontWeight.bold),
  391.                                     ),
  392.                                     value: 'Head & Neck Surgery',
  393.                                     groupValue: _selected,
  394.                                     onChanged: (String value) {
  395.                                       onChanged(value);
  396.                                     }),
  397.                                 new RadioListTile(
  398.                                     title: new Text(
  399.                                       "Plastic & Reconstructive Surgery",
  400.                                       style: TextStyle(
  401.                                           fontWeight: FontWeight.bold),
  402.                                     ),
  403.                                     value: 'Plastic & Reconstructive Surgery',
  404.                                     groupValue: _selected,
  405.                                     onChanged: (String value) {
  406.                                       onChanged(value);
  407.                                     }),
  408.                                 new RadioListTile(
  409.                                     title: new Text(
  410.                                       "Plastic & Maxillofacial Surgery",
  411.                                       style: TextStyle(
  412.                                           fontWeight: FontWeight.bold),
  413.                                     ),
  414.                                     value: 'Plastic & Maxillofacial Surgery',
  415.                                     groupValue: _selected,
  416.                                     onChanged: (String value) {
  417.                                       onChanged(value);
  418.                                     }),
  419.                                 new RadioListTile(
  420.                                     title: new Text(
  421.                                       "Pediatric Surgery",
  422.                                       style: TextStyle(
  423.                                           fontWeight: FontWeight.bold),
  424.                                     ),
  425.                                     value: 'Pediatric Surgery',
  426.                                     groupValue: _selected,
  427.                                     onChanged: (String value) {
  428.                                       onChanged(value);
  429.                                     }),
  430.                                 new RadioListTile(
  431.                                     title: new Text(
  432.                                       "Vascular Surgery",
  433.                                       style: TextStyle(
  434.                                           fontWeight: FontWeight.bold),
  435.                                     ),
  436.                                     value: 'Vascular Surgery',
  437.                                     groupValue: _selected,
  438.                                     onChanged: (String value) {
  439.                                       onChanged(value);
  440.                                     }),
  441.                                 new RadioListTile(
  442.                                     title: new Text(
  443.                                       "Orthopedic Surgery",
  444.                                       style: TextStyle(
  445.                                           fontWeight: FontWeight.bold),
  446.                                     ),
  447.                                     value: 'Orthopedic Surgery',
  448.                                     groupValue: _selected,
  449.                                     onChanged: (String value) {
  450.                                       onChanged(value);
  451.                                     }),
  452.                                 new RadioListTile(
  453.                                     title: new Text(
  454.                                       "Urology",
  455.                                       style: TextStyle(
  456.                                           fontWeight: FontWeight.bold),
  457.                                     ),
  458.                                     value: 'Urology',
  459.                                     groupValue: _selected,
  460.                                     onChanged: (String value) {
  461.                                       onChanged(value);
  462.                                     }),
  463.                                 new RadioListTile(
  464.                                     title: new Text(
  465.                                       "Neurosurgery",
  466.                                       style: TextStyle(
  467.                                           fontWeight: FontWeight.bold),
  468.                                     ),
  469.                                     value: 'Neurosurgery',
  470.                                     groupValue: _selected,
  471.                                     onChanged: (String value) {
  472.                                       onChanged(value);
  473.                                     }),
  474.                                 new RadioListTile(
  475.                                     title: new Text(
  476.                                       "Thoracic & Cardiovascular Surgery",
  477.                                       style: TextStyle(
  478.                                           fontWeight: FontWeight.bold),
  479.                                     ),
  480.                                     value: 'Thoracic & Cardiovascular Surgery',
  481.                                     groupValue: _selected,
  482.                                     onChanged: (String value) {
  483.                                       onChanged(value);
  484.                                     }),
  485.                                 new RadioListTile(
  486.                                     title: new Text(
  487.                                       "Obstetrics & Gynecology",
  488.                                       style: TextStyle(
  489.                                           fontWeight: FontWeight.bold),
  490.                                     ),
  491.                                     value: 'Obstetrics & Gynecology',
  492.                                     groupValue: _selected,
  493.                                     onChanged: (String value) {
  494.                                       onChanged(value);
  495.                                     }),
  496.                                 new RadioListTile(
  497.                                     title: new Text(
  498.                                       "OtoRhinolaryngology",
  499.                                       style: TextStyle(
  500.                                           fontWeight: FontWeight.bold),
  501.                                     ),
  502.                                     value: 'OtoRhinolaryngology',
  503.                                     groupValue: _selected,
  504.                                     onChanged: (String value) {
  505.                                       onChanged(value);
  506.                                     }),
  507.                                 new RadioListTile(
  508.                                     title: new Text(
  509.                                       "Opthalmology",
  510.                                       style: TextStyle(
  511.                                           fontWeight: FontWeight.bold),
  512.                                     ),
  513.                                     value: 'Opthalmology',
  514.                                     groupValue: _selected,
  515.                                     onChanged: (String value) {
  516.                                       onChanged(value);
  517.                                     }),
  518.                                 new RadioListTile(
  519.                                     title: new Text(
  520.                                       "Thoracic Surgery",
  521.                                       style: TextStyle(
  522.                                           fontWeight: FontWeight.bold),
  523.                                     ),
  524.                                     value: 'Thoracic Surgery',
  525.                                     groupValue: _selected,
  526.                                     onChanged: (String value) {
  527.                                       onChanged(value);
  528.                                     }),
  529.                                 new RadioListTile(
  530.                                     title: new Text(
  531.                                       "Oncologic Surgery",
  532.                                       style: TextStyle(
  533.                                           fontWeight: FontWeight.bold),
  534.                                     ),
  535.                                     value: 'Oncologic Surgery',
  536.                                     groupValue: _selected,
  537.                                     onChanged: (String value) {
  538.                                       onChanged(value);
  539.                                     }),
  540.                                 new RadioListTile(
  541.                                     title: new Text(
  542.                                       "Surgery & Reconstruction of Maxillofacial",
  543.                                       style: TextStyle(
  544.                                           fontWeight: FontWeight.bold),
  545.                                     ),
  546.                                     value:
  547.                                         'Surgery & Reconstruction of Maxillofacial',
  548.                                     groupValue: _selected,
  549.                                     onChanged: (String value) {
  550.                                       onChanged(value);
  551.                                     }),
  552.                                 new ListTile(
  553.                                     leading: new Text(
  554.                                   "internal diseases majors",
  555.                                   textAlign: TextAlign.start,
  556.                                   style: TextStyle(
  557.                                     fontSize: 25.0,
  558.                                     color: Colors.red,
  559.                                   ),
  560.                                 )),
  561.                                 new RadioListTile(
  562.                                     title: new Text(
  563.                                       "Internal Medicine",
  564.                                       style: TextStyle(
  565.                                           fontWeight: FontWeight.bold),
  566.                                     ),
  567.                                     value: 'Internal Medicine',
  568.                                     groupValue: _selected,
  569.                                     onChanged: (String value) {
  570.                                       onChanged(value);
  571.                                     }),
  572.                                 new RadioListTile(
  573.                                     title: new Text(
  574.                                       "Cardiology",
  575.                                       style: TextStyle(
  576.                                           fontWeight: FontWeight.bold),
  577.                                     ),
  578.                                     value: 'Cardiology',
  579.                                     groupValue: _selected,
  580.                                     onChanged: (String value) {
  581.                                       onChanged(value);
  582.                                     }),
  583.                                 new RadioListTile(
  584.                                     title: new Text(
  585.                                       "Endocrinology & Metabolism",
  586.                                       style: TextStyle(
  587.                                           fontWeight: FontWeight.bold),
  588.                                     ),
  589.                                     value: 'Endocrinology & Metabolism',
  590.                                     groupValue: _selected,
  591.                                     onChanged: (String value) {
  592.                                       onChanged(value);
  593.                                     }),
  594.                                 new RadioListTile(
  595.                                     title: new Text(
  596.                                       "Pulmonary Diseases",
  597.                                       style: TextStyle(
  598.                                           fontWeight: FontWeight.bold),
  599.                                     ),
  600.                                     value: 'Pulmonary Diseases',
  601.                                     groupValue: _selected,
  602.                                     onChanged: (String value) {
  603.                                       onChanged(value);
  604.                                     }),
  605.                                 new RadioListTile(
  606.                                     title: new Text(
  607.                                       "Gastroenterology",
  608.                                       style: TextStyle(
  609.                                           fontWeight: FontWeight.bold),
  610.                                     ),
  611.                                     value: 'Gastroenterology',
  612.                                     groupValue: _selected,
  613.                                     onChanged: (String value) {
  614.                                       onChanged(value);
  615.                                     }),
  616.                                 new RadioListTile(
  617.                                     title: new Text(
  618.                                       "Nephrology",
  619.                                       style: TextStyle(
  620.                                           fontWeight: FontWeight.bold),
  621.                                     ),
  622.                                     value: 'Nephrology',
  623.                                     groupValue: _selected,
  624.                                     onChanged: (String value) {
  625.                                       onChanged(value);
  626.                                     }),
  627.                                 new RadioListTile(
  628.                                     title: new Text(
  629.                                       "Infectious Diseases",
  630.                                       style: TextStyle(
  631.                                           fontWeight: FontWeight.bold),
  632.                                     ),
  633.                                     value: 'Infectious Diseases',
  634.                                     groupValue: _selected,
  635.                                     onChanged: (String value) {
  636.                                       onChanged(value);
  637.                                     }),
  638.                                 new RadioListTile(
  639.                                     title: new Text(
  640.                                       "Allergy & Immunology",
  641.                                       style: TextStyle(
  642.                                           fontWeight: FontWeight.bold),
  643.                                     ),
  644.                                     value: 'Allergy & Immunology',
  645.                                     groupValue: _selected,
  646.                                     onChanged: (String value) {
  647.                                       onChanged(value);
  648.                                     }),
  649.                                 new RadioListTile(
  650.                                     title: new Text(
  651.                                       "Genetic Diseases",
  652.                                       style: TextStyle(
  653.                                           fontWeight: FontWeight.bold),
  654.                                     ),
  655.                                     value: 'Genetic Diseases',
  656.                                     groupValue: _selected,
  657.                                     onChanged: (String value) {
  658.                                       onChanged(value);
  659.                                     }),
  660.                                 new RadioListTile(
  661.                                     title: new Text(
  662.                                       "Gerontology",
  663.                                       style: TextStyle(
  664.                                           fontWeight: FontWeight.bold),
  665.                                     ),
  666.                                     value: 'Gerontology',
  667.                                     groupValue: _selected,
  668.                                     onChanged: (String value) {
  669.                                       onChanged(value);
  670.                                     }),
  671.                                 new RadioListTile(
  672.                                     title: new Text(
  673.                                       "Rheumatology",
  674.                                       style: TextStyle(
  675.                                           fontWeight: FontWeight.bold),
  676.                                     ),
  677.                                     value: 'Rheumatology',
  678.                                     groupValue: _selected,
  679.                                     onChanged: (String value) {
  680.                                       onChanged(value);
  681.                                     }),
  682.                                 new RadioListTile(
  683.                                     title: new Text(
  684.                                       "Dermatology",
  685.                                       style: TextStyle(
  686.                                           fontWeight: FontWeight.bold),
  687.                                     ),
  688.                                     value: 'Dermatology',
  689.                                     groupValue: _selected,
  690.                                     onChanged: (String value) {
  691.                                       onChanged(value);
  692.                                     }),
  693.                                 new RadioListTile(
  694.                                     title: new Text(
  695.                                       "Neurology",
  696.                                       style: TextStyle(
  697.                                           fontWeight: FontWeight.bold),
  698.                                     ),
  699.                                     value: 'Neurology',
  700.                                     groupValue: _selected,
  701.                                     onChanged: (String value) {
  702.                                       onChanged(value);
  703.                                     }),
  704.                                 new RadioListTile(
  705.                                     title: new Text(
  706.                                       "Psychiatry",
  707.                                       style: TextStyle(
  708.                                           fontWeight: FontWeight.bold),
  709.                                     ),
  710.                                     value: 'Psychiatry',
  711.                                     groupValue: _selected,
  712.                                     onChanged: (String value) {
  713.                                       onChanged(value);
  714.                                     }),
  715.                                 new RadioListTile(
  716.                                     title: new Text(
  717.                                       "Hematology",
  718.                                       style: TextStyle(
  719.                                           fontWeight: FontWeight.bold),
  720.                                     ),
  721.                                     value: 'Hematology',
  722.                                     groupValue: _selected,
  723.                                     onChanged: (String value) {
  724.                                       onChanged(value);
  725.                                     }),
  726.                                 new RadioListTile(
  727.                                     title: new Text(
  728.                                       "Medical Oncology",
  729.                                       style: TextStyle(
  730.                                           fontWeight: FontWeight.bold),
  731.                                     ),
  732.                                     value: 'Medical Oncology',
  733.                                     groupValue: _selected,
  734.                                     onChanged: (String value) {
  735.                                       onChanged(value);
  736.                                     }),
  737.                                 new RadioListTile(
  738.                                     title: new Text(
  739.                                       "Medical Hematology &  Oncology",
  740.                                       style: TextStyle(
  741.                                           fontWeight: FontWeight.bold),
  742.                                     ),
  743.                                     value: 'Medical Hematology  Oncology',
  744.                                     groupValue: _selected,
  745.                                     onChanged: (String value) {
  746.                                       onChanged(value);
  747.                                     }),
  748.                                 new RadioListTile(
  749.                                     title: new Text(
  750.                                       "Emergency Medicine",
  751.                                       style: TextStyle(
  752.                                           fontWeight: FontWeight.bold),
  753.                                     ),
  754.                                     value: 'Emergency Medicine',
  755.                                     groupValue: _selected,
  756.                                     onChanged: (String value) {
  757.                                       onChanged(value);
  758.                                     }),
  759.                                 new RadioListTile(
  760.                                     title: new Text(
  761.                                       "Intensive Care Medicine",
  762.                                       style: TextStyle(
  763.                                           fontWeight: FontWeight.bold),
  764.                                     ),
  765.                                     value: 'Intensive Care Medicine',
  766.                                     groupValue: _selected,
  767.                                     onChanged: (String value) {
  768.                                       onChanged(value);
  769.                                     }),
  770.                                 new RadioListTile(
  771.                                     title: new Text(
  772.                                       "Infections Diseases",
  773.                                       style: TextStyle(
  774.                                           fontWeight: FontWeight.bold),
  775.                                     ),
  776.                                     value: 'Infections Diseases',
  777.                                     groupValue: _selected,
  778.                                     onChanged: (String value) {
  779.                                       onChanged(value);
  780.                                     }),
  781.                                 new ListTile(
  782.                                     leading: new Text(
  783.                                   "children medicine majors",
  784.                                   textAlign: TextAlign.start,
  785.                                   style: TextStyle(
  786.                                     fontSize: 25.0,
  787.                                     color: Colors.red,
  788.                                   ),
  789.                                 )),
  790.                                 new RadioListTile(
  791.                                     title: new Text(
  792.                                       "Pediatrics",
  793.                                       style: TextStyle(
  794.                                           fontWeight: FontWeight.bold),
  795.                                     ),
  796.                                     value: 'Pediatrics',
  797.                                     groupValue: _selected,
  798.                                     onChanged: (String value) {
  799.                                       onChanged(value);
  800.                                     }),
  801.                                 new RadioListTile(
  802.                                     title: new Text(
  803.                                       "Pediatric Cardiology",
  804.                                       style: TextStyle(
  805.                                           fontWeight: FontWeight.bold),
  806.                                     ),
  807.                                     value: 'Pediatric Cardiology',
  808.                                     groupValue: _selected,
  809.                                     onChanged: (String value) {
  810.                                       onChanged(value);
  811.                                     }),
  812.                                 new RadioListTile(
  813.                                     title: new Text(
  814.                                       "Pediatric Nephrology",
  815.                                       style: TextStyle(
  816.                                           fontWeight: FontWeight.bold),
  817.                                     ),
  818.                                     value: 'Pediatric Nephrology',
  819.                                     groupValue: _selected,
  820.                                     onChanged: (String value) {
  821.                                       onChanged(value);
  822.                                     }),
  823.                                 new RadioListTile(
  824.                                     title: new Text(
  825.                                       "Pediatric Neurology",
  826.                                       style: TextStyle(
  827.                                           fontWeight: FontWeight.bold),
  828.                                     ),
  829.                                     value: 'Pediatric Neurology',
  830.                                     groupValue: _selected,
  831.                                     onChanged: (String value) {
  832.                                       onChanged(value);
  833.                                     }),
  834.                                 new RadioListTile(
  835.                                     title: new Text(
  836.                                       "Pediatric Psychiatry",
  837.                                       style: TextStyle(
  838.                                           fontWeight: FontWeight.bold),
  839.                                     ),
  840.                                     value: 'Pediatric Psychiatry',
  841.                                     groupValue: _selected,
  842.                                     onChanged: (String value) {
  843.                                       onChanged(value);
  844.                                     }),
  845.                                 new RadioListTile(
  846.                                     title: new Text(
  847.                                       "Pediatric Endocrinology",
  848.                                       style: TextStyle(
  849.                                           fontWeight: FontWeight.bold),
  850.                                     ),
  851.                                     value: 'Pediatric Endocrinology',
  852.                                     groupValue: _selected,
  853.                                     onChanged: (String value) {
  854.                                       onChanged(value);
  855.                                     }),
  856.                                 new RadioListTile(
  857.                                     title: new Text(
  858.                                       "Pediatric Pulmonology",
  859.                                       style: TextStyle(
  860.                                           fontWeight: FontWeight.bold),
  861.                                     ),
  862.                                     value: 'Pediatric Pulmonology',
  863.                                     groupValue: _selected,
  864.                                     onChanged: (String value) {
  865.                                       onChanged(value);
  866.                                     }),
  867.                                 new RadioListTile(
  868.                                     title: new Text(
  869.                                       "Pediatric Gastroenterology",
  870.                                       style: TextStyle(
  871.                                           fontWeight: FontWeight.bold),
  872.                                     ),
  873.                                     value: 'Pediatric Gastroenterology',
  874.                                     groupValue: _selected,
  875.                                     onChanged: (String value) {
  876.                                       onChanged(value);
  877.                                     }),
  878.                                 new RadioListTile(
  879.                                     title: new Text(
  880.                                       "Pediatric Infectious Diseases",
  881.                                       style: TextStyle(
  882.                                           fontWeight: FontWeight.bold),
  883.                                     ),
  884.                                     value: 'Pediatric Infectious Diseases',
  885.                                     groupValue: _selected,
  886.                                     onChanged: (String value) {
  887.                                       onChanged(value);
  888.                                     }),
  889.                                 new RadioListTile(
  890.                                     title: new Text(
  891.                                       "Pediatric Genetics",
  892.                                       style: TextStyle(
  893.                                           fontWeight: FontWeight.bold),
  894.                                     ),
  895.                                     value: 'Pediatric Genetics',
  896.                                     groupValue: _selected,
  897.                                     onChanged: (String value) {
  898.                                       onChanged(value);
  899.                                     }),
  900.                                 new RadioListTile(
  901.                                     title: new Text(
  902.                                       "Pediatric Allergy & Immunology",
  903.                                       style: TextStyle(
  904.                                           fontWeight: FontWeight.bold),
  905.                                     ),
  906.                                     value: 'Pediatric Allergy & Immunology',
  907.                                     groupValue: _selected,
  908.                                     onChanged: (String value) {
  909.                                       onChanged(value);
  910.                                     }),
  911.                                 new RadioListTile(
  912.                                     title: new Text(
  913.                                       "Neonatology",
  914.                                       style: TextStyle(
  915.                                           fontWeight: FontWeight.bold),
  916.                                     ),
  917.                                     value: 'Neonatology',
  918.                                     groupValue: _selected,
  919.                                     onChanged: (String value) {
  920.                                       onChanged(value);
  921.                                     }),
  922.                                 new RadioListTile(
  923.                                     title: new Text(
  924.                                       "Pediatric Hematology",
  925.                                       style: TextStyle(
  926.                                           fontWeight: FontWeight.bold),
  927.                                     ),
  928.                                     value: 'Pediatric Hematology',
  929.                                     groupValue: _selected,
  930.                                     onChanged: (String value) {
  931.                                       onChanged(value);
  932.                                     }),
  933.                                 new RadioListTile(
  934.                                     title: new Text(
  935.                                       "Pediatric oncology",
  936.                                       style: TextStyle(
  937.                                           fontWeight: FontWeight.bold),
  938.                                     ),
  939.                                     value: 'Pediatric oncology',
  940.                                     groupValue: _selected,
  941.                                     onChanged: (String value) {
  942.                                       onChanged(value);
  943.                                     }),
  944.                                 new RadioListTile(
  945.                                     title: new Text(
  946.                                       "Pediatric Hematology & Oncology",
  947.                                       style: TextStyle(
  948.                                           fontWeight: FontWeight.bold),
  949.                                     ),
  950.                                     value: 'Pediatric Hematology & Oncology',
  951.                                     groupValue: _selected,
  952.                                     onChanged: (String value) {
  953.                                       onChanged(value);
  954.                                     }),
  955.                                 new RadioListTile(
  956.                                     title: new Text(
  957.                                       "Pediatric Intensive Care",
  958.                                       style: TextStyle(
  959.                                           fontWeight: FontWeight.bold),
  960.                                     ),
  961.                                     value: 'Pediatric Intensive Care',
  962.                                     groupValue: _selected,
  963.                                     onChanged: (String value) {
  964.                                       onChanged(value);
  965.                                     }),
  966.                                 new ListTile(
  967.                                     leading: new Text(
  968.                                   "other majors",
  969.                                   textAlign: TextAlign.start,
  970.                                   style: TextStyle(
  971.                                     fontSize: 25.0,
  972.                                     color: Colors.red,
  973.                                   ),
  974.                                 )),
  975.                                 new RadioListTile(
  976.                                     title: new Text(
  977.                                       "Family Medicine",
  978.                                       style: TextStyle(
  979.                                           fontWeight: FontWeight.bold),
  980.                                     ),
  981.                                     value: 'Family Medicine',
  982.                                     groupValue: _selected,
  983.                                     onChanged: (String value) {
  984.                                       onChanged(value);
  985.                                     }),
  986.                                 new RadioListTile(
  987.                                     title: new Text(
  988.                                       "General Medicine",
  989.                                       style: TextStyle(
  990.                                           fontWeight: FontWeight.bold),
  991.                                     ),
  992.                                     value: 'General Medicine',
  993.                                     groupValue: _selected,
  994.                                     onChanged: (String value) {
  995.                                       onChanged(value);
  996.                                     }),
  997.                                 new RadioListTile(
  998.                                     title: new Text(
  999.                                       "Anesthesiology",
  1000.                                       style: TextStyle(
  1001.                                           fontWeight: FontWeight.bold),
  1002.                                     ),
  1003.                                     value: 'Anesthesiology',
  1004.                                     groupValue: _selected,
  1005.                                     onChanged: (String value) {
  1006.                                       onChanged(value);
  1007.                                     }),
  1008.                                 new RadioListTile(
  1009.                                     title: new Text(
  1010.                                       "Diagnostic Radiology",
  1011.                                       style: TextStyle(
  1012.                                           fontWeight: FontWeight.bold),
  1013.                                     ),
  1014.                                     value: 'Diagnostic Radiology',
  1015.                                     groupValue: _selected,
  1016.                                     onChanged: (String value) {
  1017.                                       onChanged(value);
  1018.                                     }),
  1019.                                 new RadioListTile(
  1020.                                     title: new Text(
  1021.                                       "Oncologic Radiotherapy Medicine",
  1022.                                       style: TextStyle(
  1023.                                           fontWeight: FontWeight.bold),
  1024.                                     ),
  1025.                                     value: 'Oncologic Radiotherapy Medicine',
  1026.                                     groupValue: _selected,
  1027.                                     onChanged: (String value) {
  1028.                                       onChanged(value);
  1029.                                     }),
  1030.                                 new RadioListTile(
  1031.                                     title: new Text(
  1032.                                       "Nuclear Medicine",
  1033.                                       style: TextStyle(
  1034.                                           fontWeight: FontWeight.bold),
  1035.                                     ),
  1036.                                     value: 'Nuclear Medicine',
  1037.                                     groupValue: _selected,
  1038.                                     onChanged: (String value) {
  1039.                                       onChanged(value);
  1040.                                     }),
  1041.                                 new RadioListTile(
  1042.                                     title: new Text(
  1043.                                       "Anatomical Pathology",
  1044.                                       style: TextStyle(
  1045.                                           fontWeight: FontWeight.bold),
  1046.                                     ),
  1047.                                     value: 'Anatomical Pathology',
  1048.                                     groupValue: _selected,
  1049.                                     onChanged: (String value) {
  1050.                                       onChanged(value);
  1051.                                     }),
  1052.                                 new RadioListTile(
  1053.                                     title: new Text(
  1054.                                       "Laboratory Medicine",
  1055.                                       style: TextStyle(
  1056.                                           fontWeight: FontWeight.bold),
  1057.                                     ),
  1058.                                     value: 'Laboratory Medicine',
  1059.                                     groupValue: _selected,
  1060.                                     onChanged: (String value) {
  1061.                                       onChanged(value);
  1062.                                     }),
  1063.                                 new RadioListTile(
  1064.                                     title: new Text(
  1065.                                       "Legal Medicine",
  1066.                                       style: TextStyle(
  1067.                                           fontWeight: FontWeight.bold),
  1068.                                     ),
  1069.                                     value: 'Legal Medicine',
  1070.                                     groupValue: _selected,
  1071.                                     onChanged: (String value) {
  1072.                                       onChanged(value);
  1073.                                     }),
  1074.                                 new RadioListTile(
  1075.                                     title: new Text(
  1076.                                       "Industrial Medicine",
  1077.                                       style: TextStyle(
  1078.                                           fontWeight: FontWeight.bold),
  1079.                                     ),
  1080.                                     value: 'Industrial Medicine',
  1081.                                     groupValue: _selected,
  1082.                                     onChanged: (String value) {
  1083.                                       onChanged(value);
  1084.                                     }),
  1085.                                 new RadioListTile(
  1086.                                     title: new Text(
  1087.                                       "Preventive Medicine",
  1088.                                       style: TextStyle(
  1089.                                           fontWeight: FontWeight.bold),
  1090.                                     ),
  1091.                                     value: 'Preventive Medicine',
  1092.                                     groupValue: _selected,
  1093.                                     onChanged: (String value) {
  1094.                                       onChanged(value);
  1095.                                     }),
  1096.                                 new RadioListTile(
  1097.                                     title: new Text(
  1098.                                       "Physical Medicine & Rehabilitation",
  1099.                                       style: TextStyle(
  1100.                                           fontWeight: FontWeight.bold),
  1101.                                     ),
  1102.                                     value: 'Physical Medicine & Rehabilitation',
  1103.                                     groupValue: _selected,
  1104.                                     onChanged: (String value) {
  1105.                                       onChanged(value);
  1106.                                     }),
  1107.                                 new RadioListTile(
  1108.                                     title: new Text(
  1109.                                       "Public Health",
  1110.                                       style: TextStyle(
  1111.                                           fontWeight: FontWeight.bold),
  1112.                                     ),
  1113.                                     value: 'Public Health',
  1114.                                     groupValue: _selected,
  1115.                                     onChanged: (String value) {
  1116.                                       onChanged(value);
  1117.                                     }),
  1118.                                 new RadioListTile(
  1119.                                     title: new Text(
  1120.                                       "Angiology",
  1121.                                       style: TextStyle(
  1122.                                           fontWeight: FontWeight.bold),
  1123.                                     ),
  1124.                                     value: 'Angiology',
  1125.                                     groupValue: _selected,
  1126.                                     onChanged: (String value) {
  1127.                                       onChanged(value);
  1128.                                     }),
  1129.                                 new RadioListTile(
  1130.                                     title: new Text(
  1131.                                       "Aerospatial Medicine",
  1132.                                       style: TextStyle(
  1133.                                           fontWeight: FontWeight.bold),
  1134.                                     ),
  1135.                                     value: 'Aerospatial Medicine',
  1136.                                     groupValue: _selected,
  1137.                                     onChanged: (String value) {
  1138.                                       onChanged(value);
  1139.                                     }),
  1140.                                 new RadioListTile(
  1141.                                     title: new Text(
  1142.                                       "Sports Medicine",
  1143.                                       style: TextStyle(
  1144.                                           fontWeight: FontWeight.bold),
  1145.                                     ),
  1146.                                     value: 'Sports Medicine',
  1147.                                     groupValue: _selected,
  1148.                                     onChanged: (String value) {
  1149.                                       onChanged(value);
  1150.                                     }),
  1151.                                 new RadioListTile(
  1152.                                     title: new Text(
  1153.                                       "Penitentiary Medicine",
  1154.                                       style: TextStyle(
  1155.                                           fontWeight: FontWeight.bold),
  1156.                                     ),
  1157.                                     value: 'Penitentiary Medicine',
  1158.                                     groupValue: _selected,
  1159.                                     onChanged: (String value) {
  1160.                                       onChanged(value);
  1161.                                     }),
  1162.                                 new RadioListTile(
  1163.                                     title: new Text(
  1164.                                       "Pain Medicine",
  1165.                                       style: TextStyle(
  1166.                                           fontWeight: FontWeight.bold),
  1167.                                     ),
  1168.                                     value: 'Pain Medicine',
  1169.                                     groupValue: _selected,
  1170.                                     onChanged: (String value) {
  1171.                                       onChanged(value);
  1172.                                     }),
  1173.                                 new ListTile(
  1174.                                     leading: new Text(
  1175.                                   "dental majors",
  1176.                                   textAlign: TextAlign.start,
  1177.                                   style: TextStyle(
  1178.                                     fontSize: 25.0,
  1179.                                     color: Colors.red,
  1180.                                   ),
  1181.                                 )),
  1182.                                 new RadioListTile(
  1183.                                     title: new Text(
  1184.                                       "Orthodontics",
  1185.                                       style: TextStyle(
  1186.                                           fontWeight: FontWeight.bold),
  1187.                                     ),
  1188.                                     value: 'Orthodontics',
  1189.                                     groupValue: _selected,
  1190.                                     onChanged: (String value) {
  1191.                                       onChanged(value);
  1192.                                     }),
  1193.                                 new RadioListTile(
  1194.                                     title: new Text(
  1195.                                       "Restorative & Esthetic Dentistry",
  1196.                                       style: TextStyle(
  1197.                                           fontWeight: FontWeight.bold),
  1198.                                     ),
  1199.                                     value: 'Restorative & Esthetic Dentistry',
  1200.                                     groupValue: _selected,
  1201.                                     onChanged: (String value) {
  1202.                                       onChanged(value);
  1203.                                     }),
  1204.                                 new RadioListTile(
  1205.                                     title: new Text(
  1206.                                       "Periodontology",
  1207.                                       style: TextStyle(
  1208.                                           fontWeight: FontWeight.bold),
  1209.                                     ),
  1210.                                     value: 'Periodontology',
  1211.                                     groupValue: _selected,
  1212.                                     onChanged: (String value) {
  1213.                                       onChanged(value);
  1214.                                     }),
  1215.                                 new RadioListTile(
  1216.                                     title: new Text(
  1217.                                       "Oral Surgery",
  1218.                                       style: TextStyle(
  1219.                                           fontWeight: FontWeight.bold),
  1220.                                     ),
  1221.                                     value: 'Oral Surgery',
  1222.                                     groupValue: _selected,
  1223.                                     onChanged: (String value) {
  1224.                                       onChanged(value);
  1225.                                     }),
  1226.                                 new RadioListTile(
  1227.                                     title: new Text(
  1228.                                       "Oral & Maxillofacial Surgery",
  1229.                                       style: TextStyle(
  1230.                                           fontWeight: FontWeight.bold),
  1231.                                     ),
  1232.                                     value: 'Oral & Maxillofacial Surgery',
  1233.                                     groupValue: _selected,
  1234.                                     onChanged: (String value) {
  1235.                                       onChanged(value);
  1236.                                     }),
  1237.                                 new RadioListTile(
  1238.                                     title: new Text(
  1239.                                       "Maxillofacial Prosthodontics",
  1240.                                       style: TextStyle(
  1241.                                           fontWeight: FontWeight.bold),
  1242.                                     ),
  1243.                                     value: 'Maxillofacial Prosthodontics',
  1244.                                     groupValue: _selected,
  1245.                                     onChanged: (String value) {
  1246.                                       onChanged(value);
  1247.                                     }),
  1248.                                 new RadioListTile(
  1249.                                     title: new Text(
  1250.                                       "Fixed Prosthodontics",
  1251.                                       style: TextStyle(
  1252.                                           fontWeight: FontWeight.bold),
  1253.                                     ),
  1254.                                     value: 'Fixed Prosthodontics',
  1255.                                     groupValue: _selected,
  1256.                                     onChanged: (String value) {
  1257.                                       onChanged(value);
  1258.                                     }),
  1259.                                 new RadioListTile(
  1260.                                     title: new Text(
  1261.                                       "Removable Prosthodontics",
  1262.                                       style: TextStyle(
  1263.                                           fontWeight: FontWeight.bold),
  1264.                                     ),
  1265.                                     value: 'Removable Prosthodontics',
  1266.                                     groupValue: _selected,
  1267.                                     onChanged: (String value) {
  1268.                                       onChanged(value);
  1269.                                     }),
  1270.                                 new RadioListTile(
  1271.                                     title: new Text(
  1272.                                       "Fixed & Removable Prosthodontics",
  1273.                                       style: TextStyle(
  1274.                                           fontWeight: FontWeight.bold),
  1275.                                     ),
  1276.                                     value: 'Fixed & Removable Prosthodontics',
  1277.                                     groupValue: _selected,
  1278.                                     onChanged: (String value) {
  1279.                                       onChanged(value);
  1280.                                     }),
  1281.                                 new RadioListTile(
  1282.                                     title: new Text(
  1283.                                       "Prosthetic & Esthetic Dentistry",
  1284.                                       style: TextStyle(
  1285.                                           fontWeight: FontWeight.bold),
  1286.                                     ),
  1287.                                     value: 'Prosthetic & Esthetic Dentistry',
  1288.                                     groupValue: _selected,
  1289.                                     onChanged: (String value) {
  1290.                                       onChanged(value);
  1291.                                     }),
  1292.                                 new RadioListTile(
  1293.                                     title: new Text(
  1294.                                       "Implant Prosthodontics",
  1295.                                       style: TextStyle(
  1296.                                           fontWeight: FontWeight.bold),
  1297.                                     ),
  1298.                                     value: 'Implant Prosthodontics',
  1299.                                     groupValue: _selected,
  1300.                                     onChanged: (String value) {
  1301.                                       onChanged(value);
  1302.                                     }),
  1303.                                 new RadioListTile(
  1304.                                     title: new Text(
  1305.                                       "Pediatric Dentistry",
  1306.                                       style: TextStyle(
  1307.                                           fontWeight: FontWeight.bold),
  1308.                                     ),
  1309.                                     value: 'Pediatric Dentistry',
  1310.                                     groupValue: _selected,
  1311.                                     onChanged: (String value) {
  1312.                                       onChanged(value);
  1313.                                     }),
  1314.                                 new RadioListTile(
  1315.                                     title: new Text(
  1316.                                       "Oral & Maxillofacial Radiology",
  1317.                                       style: TextStyle(
  1318.                                           fontWeight: FontWeight.bold),
  1319.                                     ),
  1320.                                     value: 'Oral & Maxillofacial Radiology',
  1321.                                     groupValue: _selected,
  1322.                                     onChanged: (String value) {
  1323.                                       onChanged(value);
  1324.                                     }),
  1325.                                 new RadioListTile(
  1326.                                     title: new Text(
  1327.                                       "Implantology",
  1328.                                       style: TextStyle(
  1329.                                           fontWeight: FontWeight.bold),
  1330.                                     ),
  1331.                                     value: 'Implantology',
  1332.                                     groupValue: _selected,
  1333.                                     onChanged: (String value) {
  1334.                                       onChanged(value);
  1335.                                     }),
  1336.                                 new RadioListTile(
  1337.                                     title: new Text(
  1338.                                       "Oral Pathology",
  1339.                                       style: TextStyle(
  1340.                                           fontWeight: FontWeight.bold),
  1341.                                     ),
  1342.                                     value: 'Oral Pathology',
  1343.                                     groupValue: _selected,
  1344.                                     onChanged: (String value) {
  1345.                                       onChanged(value);
  1346.                                     }),
  1347.                                 new RadioListTile(
  1348.                                     title: new Text(
  1349.                                       "Endodontics",
  1350.                                       style: TextStyle(
  1351.                                           fontWeight: FontWeight.bold),
  1352.                                     ),
  1353.                                     value: 'Endodontics',
  1354.                                     groupValue: _selected,
  1355.                                     onChanged: (String value) {
  1356.                                       onChanged(value);
  1357.                                     }),
  1358.                                 new RadioListTile(
  1359.                                     title: new Text(
  1360.                                       "Occlusion",
  1361.                                       style: TextStyle(
  1362.                                           fontWeight: FontWeight.bold),
  1363.                                     ),
  1364.                                     value: 'Occlusion',
  1365.                                     groupValue: _selected,
  1366.                                     onChanged: (String value) {
  1367.                                       onChanged(value);
  1368.                                     }),
  1369.                                 new RadioListTile(
  1370.                                     title: new Text(
  1371.                                       "Dental Public Health",
  1372.                                       style: TextStyle(
  1373.                                           fontWeight: FontWeight.bold),
  1374.                                     ),
  1375.                                     value: 'Dental Public Health',
  1376.                                     groupValue: _selected,
  1377.                                     onChanged: (String value) {
  1378.                                       onChanged(value);
  1379.                                     }),
  1380.                                 new RadioListTile(
  1381.                                     title: new Text(
  1382.                                       "Forensic Dentistry",
  1383.                                       style: TextStyle(
  1384.                                           fontWeight: FontWeight.bold),
  1385.                                     ),
  1386.                                     value: 'Forensic Dentistry',
  1387.                                     groupValue: _selected,
  1388.                                     onChanged: (String value) {
  1389.                                       onChanged(value);
  1390.                                     }),
  1391.                                 new RadioListTile(
  1392.                                     title: new Text(
  1393.                                       "General Dentistry",
  1394.                                       style: TextStyle(
  1395.                                           fontWeight: FontWeight.bold),
  1396.                                     ),
  1397.                                     value: 'General Dentistry',
  1398.                                     groupValue: _selected,
  1399.                                     onChanged: (String value) {
  1400.                                       onChanged(value);
  1401.                                     }),
  1402.                                 new RadioListTile(
  1403.                                     title: new Text(
  1404.                                       "Laser Therapy In Dental Medicine",
  1405.                                       style: TextStyle(
  1406.                                           fontWeight: FontWeight.bold),
  1407.                                     ),
  1408.                                     value: 'Laser Therapy In Dental Medicine',
  1409.                                     groupValue: _selected,
  1410.                                     onChanged: (String value) {
  1411.                                       onChanged(value);
  1412.                                     }),
  1413.                               ],
  1414.                             ),
  1415.                           ),
  1416.                         ),
  1417.                       ],
  1418.                     ),
  1419.                   ),
  1420.                   height: Screensize.height / 1.5,
  1421.                   width: Screensize.width / 1.2,
  1422.                   margin: EdgeInsets.only(left: 10.0, right: 5.0, top: 10.0),
  1423.                 ),
  1424.               ),
  1425.               Center(
  1426.                 child: Container(
  1427.                   child: Card(
  1428.                     child: Column(
  1429.                       crossAxisAlignment: CrossAxisAlignment.center,
  1430.                       mainAxisAlignment: MainAxisAlignment.center,
  1431.                       children: <Widget>[
  1432.                         new Icon(
  1433.                           Icons.folder_special,
  1434.                           color: Colors.blue,
  1435.                           size: 80.0,
  1436.                         ),
  1437.                         Padding(
  1438.                           padding: const EdgeInsets.all(12.0),
  1439.                           child: Text("Specialty:",
  1440.                               style: TextStyle(
  1441.                                   fontSize: 20.0, color: Colors.blue)),
  1442.                         ),
  1443.                         Padding(
  1444.                           padding: const EdgeInsets.all(12.0),
  1445.                           child: TextFormField(
  1446.                             validator: (value) {
  1447.                               if (value.startsWith(' ')) {
  1448.                                 return 'Do not start Your Specialty with spaces';
  1449.                               } else if (value.isEmpty) {
  1450.                                 return 'Please Enter Your Specialty';
  1451.                               }
  1452.                             },
  1453.                             keyboardType: TextInputType.multiline,
  1454.                             maxLines: null,
  1455.                             autofocus: false,
  1456.                             decoration: InputDecoration(
  1457.                               hintText: 'Example: Fertility',
  1458.                               contentPadding:
  1459.                                   EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0),
  1460.                               border: OutlineInputBorder(
  1461.                                   borderRadius: BorderRadius.circular(32.0)),
  1462.                             ),
  1463.                             controller: Controller1,
  1464.                           ),
  1465.                         ),
  1466.                         new Text(
  1467.                           "Part of Your Major That You are Mostly Skilled in",
  1468.                           textAlign: TextAlign.center,
  1469.                           style: TextStyle(fontSize: 20.0),
  1470.                         )
  1471.                       ],
  1472.                     ),
  1473.                   ),
  1474.                   height: Screensize.height / 2,
  1475.                   width: Screensize.width / 1.2,
  1476.                   margin: EdgeInsets.only(left: 10.0, right: 5.0, top: 10.0),
  1477.                 ),
  1478.               ),
  1479.               Center(
  1480.                 child: Container(
  1481.                   child: Card(
  1482.                     child: Column(
  1483.                       crossAxisAlignment: CrossAxisAlignment.center,
  1484.                       mainAxisAlignment: MainAxisAlignment.center,
  1485.                       children: <Widget>[
  1486.                         new Image.asset(
  1487.                           "lib/images/OverView.png",
  1488.                           color: Colors.blue,
  1489.                           height: 60.0,
  1490.                           width: 60.0,
  1491.                         ),
  1492.                         Padding(
  1493.                           padding: const EdgeInsets.all(12.0),
  1494.                           child: Text("Overview:",
  1495.                               style: TextStyle(
  1496.                                   fontSize: 20.0, color: Colors.blue)),
  1497.                         ),
  1498.                         Padding(
  1499.                           padding: const EdgeInsets.all(12.0),
  1500.                           child: TextFormField(
  1501.                             validator: (value) {
  1502.                               if (value.startsWith(' ')) {
  1503.                                 return 'Do not start Your Overview with spaces';
  1504.                               } else if (value.isEmpty) {
  1505.                                 return 'Please Enter Your Overview';
  1506.                               }
  1507.                             },
  1508.                             keyboardType: TextInputType.multiline,
  1509.                             maxLines: null,
  1510.                             autofocus: false,
  1511.                             decoration: InputDecoration(
  1512.                               hintText: 'degree,experience,accomplishments... ',
  1513.                               contentPadding:
  1514.                                   EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0),
  1515.                               border: OutlineInputBorder(
  1516.                                   borderRadius: BorderRadius.circular(32.0)),
  1517.                             ),
  1518.                             controller: Controller2,
  1519.                           ),
  1520.                         ),
  1521.                         new Text(
  1522.                           "Brief Summary About Your Achievements & Degrees",
  1523.                           textAlign: TextAlign.center,
  1524.                           style: TextStyle(fontSize: 20.0),
  1525.                         )
  1526.                       ],
  1527.                     ),
  1528.                   ),
  1529.                   height: Screensize.height / 2,
  1530.                   width: Screensize.width / 1.2,
  1531.                   margin: EdgeInsets.only(left: 10.0, right: 5.0, top: 10.0),
  1532.                 ),
  1533.               ),
  1534.               Center(
  1535.                 child: Container(
  1536.                   child: Card(
  1537.                     child: Column(
  1538.                       crossAxisAlignment: CrossAxisAlignment.center,
  1539.                       mainAxisAlignment: MainAxisAlignment.center,
  1540.                       children: <Widget>[
  1541.                         Container(
  1542.                           padding: EdgeInsets.symmetric(
  1543.                               vertical: 16.0, horizontal: 30.0),
  1544.                           child: TextFormField(
  1545.                             validator: (value) {
  1546.                               if (value.startsWith(' ')) {
  1547.                                 return 'Do not start the Number of Your Clinic With Spaces';
  1548.                               } else if (value.isEmpty) {
  1549.                                 return 'Please Enter the Number of Your Clinic';
  1550.                               }
  1551.                             },
  1552.                             controller: Controller3,
  1553.                             keyboardType: TextInputType.multiline,
  1554.                             maxLines: null,
  1555.                             decoration: InputDecoration(
  1556.                               hintText: "+961...",
  1557.                               labelText: "Phone Number of the Clinic",
  1558.                             ),
  1559.                           ),
  1560.                         ),
  1561.                         Container(
  1562.                           padding: EdgeInsets.symmetric(
  1563.                               vertical: 16.0, horizontal: 30.0),
  1564.                           child: TextFormField(
  1565.                             validator: (value) {
  1566.                               if (value.startsWith(' ')) {
  1567.                                 return 'Do not start the Name of the Hospital with spaces';
  1568.                               } else if (value.isEmpty) {
  1569.                                 return 'Please Enter a Valid Hospital';
  1570.                               }
  1571.                             },
  1572.                             controller: Controller4,
  1573.                             keyboardType: TextInputType.multiline,
  1574.                             maxLines: null,
  1575.                             decoration: InputDecoration(
  1576.                               hintText:
  1577.                                   "American University Hospital\nAl Shifaa Hospital\nGreat Prophet Hospital",
  1578.                               labelText: "Contracted With",
  1579.                             ),
  1580.                           ),
  1581.                         ),
  1582.                         Container(
  1583.                           padding: EdgeInsets.symmetric(
  1584.                               vertical: 16.0, horizontal: 30.0),
  1585.                           child: TextFormField(
  1586.                             validator: (value) {
  1587.                               if (value.startsWith(' ')) {
  1588.                                 return 'Do not start the Location of Your Clinic with spaces';
  1589.                               } else if (value.isEmpty) {
  1590.                                 return 'Please Enter the Location of Your Clinic';
  1591.                               }
  1592.                             },
  1593.                             controller: Controller5,
  1594.                             keyboardType: TextInputType.multiline,
  1595.                             maxLines: null,
  1596.                             decoration: InputDecoration(
  1597.                               hintText:
  1598.                                   "Tripoli, Azmi Street\nCrystal Building, Floor 6",
  1599.                               labelText: "Location",
  1600.                             ),
  1601.                           ),
  1602.                         ),
  1603.                         Container(
  1604.                           padding: EdgeInsets.symmetric(
  1605.                               vertical: 16.0, horizontal: 30.0),
  1606.                           child: TextFormField(
  1607.                             validator: (value) {
  1608.                               if (value.startsWith(' ')) {
  1609.                                 return 'Do not start Your Status with spaces';
  1610.                               } else if (value.isEmpty) {
  1611.                                 return 'Please Enter Your Status';
  1612.                               }
  1613.                             },
  1614.                             controller: Controller6,
  1615.                             keyboardType: TextInputType.multiline,
  1616.                             maxLines: null,
  1617.                             decoration: InputDecoration(
  1618.                               hintText: "Available, Vacation, Abroad...",
  1619.                               labelText: "Status",
  1620.                             ),
  1621.                           ),
  1622.                         ),
  1623.                       ],
  1624.                     ),
  1625.                   ),
  1626.                   width: Screensize.width / 1.2,
  1627.                   margin: EdgeInsets.only(left: 10.0, right: 5.0, top: 10.0),
  1628.                 ),
  1629.               ),
  1630.               Center(
  1631.                 child: Container(
  1632.                   child: ButtonBar(
  1633.                     alignment: MainAxisAlignment.center,
  1634.                     children: <Widget>[
  1635.                       RaisedButton(
  1636.                         textColor: Colors.white,
  1637.                         child: Text("Geolocation"),
  1638.                         color: Colors.blue,
  1639.                         onPressed: null,
  1640.                       )
  1641.                     ],
  1642.                   ),
  1643.                 ),
  1644.               )
  1645.             ],
  1646.           ),
  1647.         ),
  1648.       ),
  1649.     );
  1650.   }
  1651. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement