Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- import 'package:image_picker/image_picker.dart';
- import 'dart:io';
- import 'dart:typed_data';
- import 'dart:async';
- import 'package:flutter/services.dart' show rootBundle;
- import 'package:firebase_storage/firebase_storage.dart';
- import 'package:cloud_firestore/cloud_firestore.dart';
- import 'package:doctorradar/pages/doctorslogin.dart';
- import 'package:doctorradar/pages/home_screen.dart';
- final Controller = TextEditingController();
- final Controller1 = TextEditingController();
- final Controller2 = TextEditingController();
- final Controller3 = TextEditingController();
- final Controller4 = TextEditingController();
- final Controller5 = TextEditingController();
- final Controller6 = TextEditingController();
- String docname = Controller.text;
- String docfield;
- String docspecialty = Controller1.text;
- String docoverview = Controller2.text;
- String docclinicnum = Controller3.text;
- String doccontracted = Controller4.text;
- String doclocation2 = Controller5.text;
- String docstatus = Controller6.text;
- String pathfile;
- bool uploadedd = false;
- String photo = 'Choose Image';
- class DoctorsArea extends StatefulWidget {
- @override
- SubmitState createState() {
- return new SubmitState();
- }
- }
- class SubmitState extends State<DoctorsArea> {
- File image;
- String _path;
- final CollectionReference collectionReference =
- Firestore.instance.collection("");
- final _formKey = GlobalKey<FormState>();
- Future<Null> uploadFile(String filepath) async {
- setState(() {
- docname = Controller.text;
- });
- final ByteData bytes = await rootBundle.load(filepath);
- final Directory tempDir = Directory.systemTemp;
- final String fileName = "$docid";
- final File file = File('${tempDir.path}/$fileName');
- file.writeAsBytes(bytes.buffer.asInt8List(), mode: FileMode.write);
- final StorageReference ref = FirebaseStorage.instance.ref().child(fileName);
- final StorageUploadTask task = ref.putFile(file);
- final Uri downloadUrl = (await task.future).downloadUrl;
- setState(() {
- _path = downloadUrl.toString();
- uploadedd = true;
- });
- }
- picker() async {
- File img = await ImagePicker.pickImage(
- source: ImageSource.gallery,
- );
- // File img = await ImagePicker.pickImage(source: ImageSource.gallery);
- if (img != null) {
- image = img;
- pathfile = img.path;
- uploadFile(pathfile);
- setState(() {});
- setState(() {
- photo = "Remove Image";
- });
- }
- }
- String _selected = "General Surgery";
- void onChanged(String value) {
- setState(() {
- _selected = value;
- docfield = value;
- });
- }
- Widget picture() {
- if (image == null) {
- return Icon(
- Icons.account_box,
- color: Colors.blue,
- size: 100.0,
- );
- } else
- return Padding(
- padding: const EdgeInsets.all(8.0),
- child: Image.file(image),
- );
- }
- void _add() {
- Map<String, String> data = <String, String>{
- "ID": "$docid",
- "Name": "$docname",
- "Field": "$docfield",
- "Specialty": "$docspecialty",
- "Contracted": "$doccontracted",
- "Status": "$docstatus",
- "Description": "$docoverview",
- "Number": "$docclinicnum",
- "Location": "",
- "Location2": "$doclocation2",
- "Picture": "$_path",
- };
- collectionReference.document("Doctors/$docid").setData(data);
- }
- bool hasData1 = false;
- Future<bool> hasInternetConnectivity() async {
- try {
- final result = await InternetAddress.lookup('google.com');
- if (result.isNotEmpty && result[0].rawAddress.isNotEmpty) {
- setState(() {
- hasData1 = true;
- });
- return true;
- }
- } on SocketException catch (_) {
- setState(() {
- hasData1 = false;
- });
- return false;
- }
- setState(() {
- hasData1 = false;
- });
- return false;
- }
- @override
- void initState() {
- super.initState();
- hasInternetConnectivity().whenComplete(() {
- return hasData1;
- });
- }
- @override
- Widget build(BuildContext context) {
- final Screensize = MediaQuery.of(context).size;
- return Scaffold(
- floatingActionButton: new FloatingActionButton(
- child: new Icon(Icons.check),
- onPressed: () {
- print("This is docid $docid");
- if (_formKey.currentState.validate()) {
- setState(() {
- docname = Controller.text;
- docspecialty = Controller1.text;
- docoverview = Controller2.text;
- docclinicnum = Controller3.text;
- doccontracted = Controller4.text;
- doclocation2 = Controller5.text;
- docstatus = Controller6.text;
- });
- hasInternetConnectivity().whenComplete(() {
- return hasData1;
- });
- if (hasData1 == false) {
- showModalBottomSheet<void>(
- context: context,
- builder: (BuildContext context) {
- return new Container(
- child: new Padding(
- padding: const EdgeInsets.all(32.0),
- child: new Text(
- "Please Connect to the Internet ",
- textAlign: TextAlign.center,
- style: TextStyle(
- color: Colors.red,
- fontSize: 20.0,
- ),
- ),
- ));
- });
- } else if (hasData1 == true && uploadedd == true) {
- _add();
- showDialog(
- context: context,
- builder: (context) => AlertDialog(
- title: new ListTile(
- title: new Text("Form Completed"),
- subtitle: new Text(
- "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"),
- ),
- actions: <Widget>[
- FlatButton(
- onPressed: () {
- Navigator.pop(context);
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => HomeScreen()),
- );
- },
- child: new Text("Okay"))
- ],
- ),
- );
- } else if (hasData1 == true && uploadedd == false) {
- showModalBottomSheet<void>(
- context: context,
- builder: (BuildContext context) {
- return new Container(
- child: new Padding(
- padding: const EdgeInsets.all(32.0),
- child: new Text(
- "You Did Not Upload an Image Yet ",
- textAlign: TextAlign.center,
- style: TextStyle(
- color: Colors.red,
- fontSize: 20.0,
- ),
- ),
- ));
- });
- }
- } else {
- showModalBottomSheet<void>(
- context: context,
- builder: (BuildContext context) {
- return new Container(
- child: new Padding(
- padding: const EdgeInsets.all(32.0),
- child: new Text(
- "Please Check Your Form Again",
- textAlign: TextAlign.center,
- style: TextStyle(
- color: Colors.red,
- fontSize: 20.0,
- ),
- ),
- ));
- });
- }
- },
- ),
- appBar: new AppBar(
- title: new Text("Update Your Credentials"),
- ),
- body: new Container(
- child: Form(
- key: _formKey,
- child: ListView(
- scrollDirection: Axis.vertical,
- children: <Widget>[
- Center(
- child: Container(
- child: Card(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.center,
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- picture(),
- Padding(
- padding: const EdgeInsets.all(12.0),
- child: Text("Enter Your Full Name:",
- style: TextStyle(
- fontSize: 20.0, color: Colors.blue)),
- ),
- Padding(
- padding: const EdgeInsets.all(12.0),
- child: TextFormField(
- validator: (value) {
- if (value.startsWith(' ')) {
- return 'Do not start Your Name with spaces';
- } else if (value.isEmpty) {
- return 'Please Enter Your Name';
- }
- },
- keyboardType: TextInputType.multiline,
- maxLines: null,
- autofocus: false,
- decoration: InputDecoration(
- hintText: 'Full Name',
- contentPadding:
- EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0),
- border: OutlineInputBorder(
- borderRadius: BorderRadius.circular(32.0)),
- ),
- controller: Controller,
- ),
- ),
- Column(
- children: <Widget>[
- Padding(
- padding: const EdgeInsets.all(8.0),
- child: Text(
- "Upload Profile Picture",
- style: TextStyle(
- fontSize: 20.0, color: Colors.blue),
- ),
- ),
- ButtonBar(
- mainAxisSize: MainAxisSize.min,
- children: <Widget>[
- new RaisedButton(
- color: Colors.blue,
- child: Text(
- "$photo",
- style: TextStyle(color: Colors.white),
- ),
- onPressed: () {
- if (photo == 'Choose Image') {
- picker();
- } else if (photo == "Remove Image") {
- setState(() {
- image = null;
- uploadedd = false;
- photo = 'Choose Image';
- print(docname);
- });
- }
- },
- ),
- ],
- ),
- ],
- ),
- ],
- ),
- ),
- margin: EdgeInsets.only(left: 10.0, right: 5.0, top: 10.0),
- ),
- ),
- Center(
- child: Container(
- child: Card(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.center,
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- new Icon(
- Icons.assignment,
- color: Colors.blue,
- size: 80.0,
- ),
- Padding(
- padding: const EdgeInsets.all(12.0),
- child: Text("Choose Your Major Among The List:",
- textAlign: TextAlign.center,
- style: TextStyle(
- fontSize: 20.0, color: Colors.blue)),
- ),
- Container(
- height: Screensize.height / 3,
- child: SingleChildScrollView(
- scrollDirection: Axis.vertical,
- child: new Column(
- children: <Widget>[
- new ListTile(
- leading: new Text(
- "surgery majors",
- textAlign: TextAlign.start,
- style: TextStyle(
- fontSize: 25.0,
- color: Colors.red,
- ),
- )),
- new RadioListTile(
- title: new Text(
- "General Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'General Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Head & Neck Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Head & Neck Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Plastic & Reconstructive Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Plastic & Reconstructive Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Plastic & Maxillofacial Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Plastic & Maxillofacial Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Vascular Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Vascular Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Orthopedic Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Orthopedic Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Urology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Urology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Neurosurgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Neurosurgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Thoracic & Cardiovascular Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Thoracic & Cardiovascular Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Obstetrics & Gynecology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Obstetrics & Gynecology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "OtoRhinolaryngology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'OtoRhinolaryngology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Opthalmology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Opthalmology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Thoracic Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Thoracic Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Oncologic Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Oncologic Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Surgery & Reconstruction of Maxillofacial",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value:
- 'Surgery & Reconstruction of Maxillofacial',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new ListTile(
- leading: new Text(
- "internal diseases majors",
- textAlign: TextAlign.start,
- style: TextStyle(
- fontSize: 25.0,
- color: Colors.red,
- ),
- )),
- new RadioListTile(
- title: new Text(
- "Internal Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Internal Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Cardiology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Cardiology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Endocrinology & Metabolism",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Endocrinology & Metabolism',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pulmonary Diseases",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pulmonary Diseases',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Gastroenterology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Gastroenterology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Nephrology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Nephrology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Infectious Diseases",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Infectious Diseases',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Allergy & Immunology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Allergy & Immunology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Genetic Diseases",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Genetic Diseases',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Gerontology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Gerontology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Rheumatology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Rheumatology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Dermatology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Dermatology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Neurology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Neurology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Psychiatry",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Psychiatry',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Hematology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Hematology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Medical Oncology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Medical Oncology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Medical Hematology & Oncology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Medical Hematology Oncology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Emergency Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Emergency Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Intensive Care Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Intensive Care Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Infections Diseases",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Infections Diseases',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new ListTile(
- leading: new Text(
- "children medicine majors",
- textAlign: TextAlign.start,
- style: TextStyle(
- fontSize: 25.0,
- color: Colors.red,
- ),
- )),
- new RadioListTile(
- title: new Text(
- "Pediatrics",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatrics',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Cardiology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Cardiology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Nephrology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Nephrology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Neurology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Neurology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Psychiatry",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Psychiatry',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Endocrinology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Endocrinology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Pulmonology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Pulmonology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Gastroenterology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Gastroenterology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Infectious Diseases",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Infectious Diseases',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Genetics",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Genetics',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Allergy & Immunology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Allergy & Immunology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Neonatology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Neonatology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Hematology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Hematology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric oncology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric oncology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Hematology & Oncology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Hematology & Oncology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Intensive Care",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Intensive Care',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new ListTile(
- leading: new Text(
- "other majors",
- textAlign: TextAlign.start,
- style: TextStyle(
- fontSize: 25.0,
- color: Colors.red,
- ),
- )),
- new RadioListTile(
- title: new Text(
- "Family Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Family Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "General Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'General Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Anesthesiology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Anesthesiology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Diagnostic Radiology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Diagnostic Radiology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Oncologic Radiotherapy Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Oncologic Radiotherapy Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Nuclear Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Nuclear Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Anatomical Pathology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Anatomical Pathology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Laboratory Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Laboratory Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Legal Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Legal Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Industrial Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Industrial Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Preventive Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Preventive Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Physical Medicine & Rehabilitation",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Physical Medicine & Rehabilitation',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Public Health",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Public Health',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Angiology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Angiology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Aerospatial Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Aerospatial Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Sports Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Sports Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Penitentiary Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Penitentiary Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pain Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pain Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new ListTile(
- leading: new Text(
- "dental majors",
- textAlign: TextAlign.start,
- style: TextStyle(
- fontSize: 25.0,
- color: Colors.red,
- ),
- )),
- new RadioListTile(
- title: new Text(
- "Orthodontics",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Orthodontics',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Restorative & Esthetic Dentistry",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Restorative & Esthetic Dentistry',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Periodontology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Periodontology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Oral Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Oral Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Oral & Maxillofacial Surgery",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Oral & Maxillofacial Surgery',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Maxillofacial Prosthodontics",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Maxillofacial Prosthodontics',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Fixed Prosthodontics",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Fixed Prosthodontics',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Removable Prosthodontics",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Removable Prosthodontics',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Fixed & Removable Prosthodontics",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Fixed & Removable Prosthodontics',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Prosthetic & Esthetic Dentistry",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Prosthetic & Esthetic Dentistry',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Implant Prosthodontics",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Implant Prosthodontics',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Pediatric Dentistry",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Pediatric Dentistry',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Oral & Maxillofacial Radiology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Oral & Maxillofacial Radiology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Implantology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Implantology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Oral Pathology",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Oral Pathology',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Endodontics",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Endodontics',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Occlusion",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Occlusion',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Dental Public Health",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Dental Public Health',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Forensic Dentistry",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Forensic Dentistry',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "General Dentistry",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'General Dentistry',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- new RadioListTile(
- title: new Text(
- "Laser Therapy In Dental Medicine",
- style: TextStyle(
- fontWeight: FontWeight.bold),
- ),
- value: 'Laser Therapy In Dental Medicine',
- groupValue: _selected,
- onChanged: (String value) {
- onChanged(value);
- }),
- ],
- ),
- ),
- ),
- ],
- ),
- ),
- height: Screensize.height / 1.5,
- width: Screensize.width / 1.2,
- margin: EdgeInsets.only(left: 10.0, right: 5.0, top: 10.0),
- ),
- ),
- Center(
- child: Container(
- child: Card(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.center,
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- new Icon(
- Icons.folder_special,
- color: Colors.blue,
- size: 80.0,
- ),
- Padding(
- padding: const EdgeInsets.all(12.0),
- child: Text("Specialty:",
- style: TextStyle(
- fontSize: 20.0, color: Colors.blue)),
- ),
- Padding(
- padding: const EdgeInsets.all(12.0),
- child: TextFormField(
- validator: (value) {
- if (value.startsWith(' ')) {
- return 'Do not start Your Specialty with spaces';
- } else if (value.isEmpty) {
- return 'Please Enter Your Specialty';
- }
- },
- keyboardType: TextInputType.multiline,
- maxLines: null,
- autofocus: false,
- decoration: InputDecoration(
- hintText: 'Example: Fertility',
- contentPadding:
- EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0),
- border: OutlineInputBorder(
- borderRadius: BorderRadius.circular(32.0)),
- ),
- controller: Controller1,
- ),
- ),
- new Text(
- "Part of Your Major That You are Mostly Skilled in",
- textAlign: TextAlign.center,
- style: TextStyle(fontSize: 20.0),
- )
- ],
- ),
- ),
- height: Screensize.height / 2,
- width: Screensize.width / 1.2,
- margin: EdgeInsets.only(left: 10.0, right: 5.0, top: 10.0),
- ),
- ),
- Center(
- child: Container(
- child: Card(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.center,
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- new Image.asset(
- "lib/images/OverView.png",
- color: Colors.blue,
- height: 60.0,
- width: 60.0,
- ),
- Padding(
- padding: const EdgeInsets.all(12.0),
- child: Text("Overview:",
- style: TextStyle(
- fontSize: 20.0, color: Colors.blue)),
- ),
- Padding(
- padding: const EdgeInsets.all(12.0),
- child: TextFormField(
- validator: (value) {
- if (value.startsWith(' ')) {
- return 'Do not start Your Overview with spaces';
- } else if (value.isEmpty) {
- return 'Please Enter Your Overview';
- }
- },
- keyboardType: TextInputType.multiline,
- maxLines: null,
- autofocus: false,
- decoration: InputDecoration(
- hintText: 'degree,experience,accomplishments... ',
- contentPadding:
- EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0),
- border: OutlineInputBorder(
- borderRadius: BorderRadius.circular(32.0)),
- ),
- controller: Controller2,
- ),
- ),
- new Text(
- "Brief Summary About Your Achievements & Degrees",
- textAlign: TextAlign.center,
- style: TextStyle(fontSize: 20.0),
- )
- ],
- ),
- ),
- height: Screensize.height / 2,
- width: Screensize.width / 1.2,
- margin: EdgeInsets.only(left: 10.0, right: 5.0, top: 10.0),
- ),
- ),
- Center(
- child: Container(
- child: Card(
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.center,
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- Container(
- padding: EdgeInsets.symmetric(
- vertical: 16.0, horizontal: 30.0),
- child: TextFormField(
- validator: (value) {
- if (value.startsWith(' ')) {
- return 'Do not start the Number of Your Clinic With Spaces';
- } else if (value.isEmpty) {
- return 'Please Enter the Number of Your Clinic';
- }
- },
- controller: Controller3,
- keyboardType: TextInputType.multiline,
- maxLines: null,
- decoration: InputDecoration(
- hintText: "+961...",
- labelText: "Phone Number of the Clinic",
- ),
- ),
- ),
- Container(
- padding: EdgeInsets.symmetric(
- vertical: 16.0, horizontal: 30.0),
- child: TextFormField(
- validator: (value) {
- if (value.startsWith(' ')) {
- return 'Do not start the Name of the Hospital with spaces';
- } else if (value.isEmpty) {
- return 'Please Enter a Valid Hospital';
- }
- },
- controller: Controller4,
- keyboardType: TextInputType.multiline,
- maxLines: null,
- decoration: InputDecoration(
- hintText:
- "American University Hospital\nAl Shifaa Hospital\nGreat Prophet Hospital",
- labelText: "Contracted With",
- ),
- ),
- ),
- Container(
- padding: EdgeInsets.symmetric(
- vertical: 16.0, horizontal: 30.0),
- child: TextFormField(
- validator: (value) {
- if (value.startsWith(' ')) {
- return 'Do not start the Location of Your Clinic with spaces';
- } else if (value.isEmpty) {
- return 'Please Enter the Location of Your Clinic';
- }
- },
- controller: Controller5,
- keyboardType: TextInputType.multiline,
- maxLines: null,
- decoration: InputDecoration(
- hintText:
- "Tripoli, Azmi Street\nCrystal Building, Floor 6",
- labelText: "Location",
- ),
- ),
- ),
- Container(
- padding: EdgeInsets.symmetric(
- vertical: 16.0, horizontal: 30.0),
- child: TextFormField(
- validator: (value) {
- if (value.startsWith(' ')) {
- return 'Do not start Your Status with spaces';
- } else if (value.isEmpty) {
- return 'Please Enter Your Status';
- }
- },
- controller: Controller6,
- keyboardType: TextInputType.multiline,
- maxLines: null,
- decoration: InputDecoration(
- hintText: "Available, Vacation, Abroad...",
- labelText: "Status",
- ),
- ),
- ),
- ],
- ),
- ),
- width: Screensize.width / 1.2,
- margin: EdgeInsets.only(left: 10.0, right: 5.0, top: 10.0),
- ),
- ),
- Center(
- child: Container(
- child: ButtonBar(
- alignment: MainAxisAlignment.center,
- children: <Widget>[
- RaisedButton(
- textColor: Colors.white,
- child: Text("Geolocation"),
- color: Colors.blue,
- onPressed: null,
- )
- ],
- ),
- ),
- )
- ],
- ),
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement