import 'package:diplomaticquarterapp/widgets/data_display/medical/doctor_card.dart';
import 'package:diplomaticquarterapp/widgets/others/app_expandable_notifier.dart';
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
import 'package:flutter/cupertino.dart';

class MyAdmissionsPage extends StatefulWidget {
  @override
  _MyAdmissionsPageState createState() => _MyAdmissionsPageState();
}

class _MyAdmissionsPageState extends State<MyAdmissionsPage> {
  @override
  Widget build(BuildContext context) {
    return AppScaffold(
      body: ListView(
        children: <Widget>[
          AppExpandableNotifier(
            title: 'Arryan Hospital',
            bodyWidget: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                DoctorCard(
                  name: 'Dr Mohammad Aljammal',
                  date: 'Feb 14, 2020',
                  profileUrl:
                      'https://scontent.famm4-1.fna.fbcdn.net/v/t31.0-8/30425660_1862582094040824_7851633779570222226_o.jpg?_nc_cat=101&_nc_sid=09cbfe&_nc_eui2=AeF3TI6D2_tFS5QoQsqyaCKd2zBfzh74hOzbMF_OHviE7PQdLHRwmBoIOiKyWmK9MskOshPjkU73a5EdQMA3dqnV&_nc_ohc=1feou2fDCuIAX_Ra9qB&_nc_ht=scontent.famm4-1.fna&oh=709d34d1c284de1d0aa08ed37b0ac09a&oe=5F3C5ACB',
                  rat: 3.8,
                  subName: 'Jammal',
                ),
                DoctorCard(
                  name: 'Dr Mohammad Aljammal',
                  date: 'Feb 14, 2020',
                  profileUrl:
                      'https://scontent.famm4-1.fna.fbcdn.net/v/t31.0-8/30425660_1862582094040824_7851633779570222226_o.jpg?_nc_cat=101&_nc_sid=09cbfe&_nc_eui2=AeF3TI6D2_tFS5QoQsqyaCKd2zBfzh74hOzbMF_OHviE7PQdLHRwmBoIOiKyWmK9MskOshPjkU73a5EdQMA3dqnV&_nc_ohc=1feou2fDCuIAX_Ra9qB&_nc_ht=scontent.famm4-1.fna&oh=709d34d1c284de1d0aa08ed37b0ac09a&oe=5F3C5ACB',
                  rat: 3.8,
                  subName: 'Jammal',
                ),
              ],
            ),
          ),
     
          AppExpandableNotifier(
            title: 'Arryan Hospital',
            bodyWidget: DoctorCard(
              onTap: () {
               //TODO when we need it
              },
              name: 'Dr Mohammad Aljammal',
              date: 'Feb 14, 2020',
              profileUrl:
                  'https://scontent.famm4-1.fna.fbcdn.net/v/t31.0-8/30425660_1862582094040824_7851633779570222226_o.jpg?_nc_cat=101&_nc_sid=09cbfe&_nc_eui2=AeF3TI6D2_tFS5QoQsqyaCKd2zBfzh74hOzbMF_OHviE7PQdLHRwmBoIOiKyWmK9MskOshPjkU73a5EdQMA3dqnV&_nc_ohc=1feou2fDCuIAX_Ra9qB&_nc_ht=scontent.famm4-1.fna&oh=709d34d1c284de1d0aa08ed37b0ac09a&oe=5F3C5ACB',
              rat: 4.8,
              subName: 'Jammal',
            ),
          ),

        ],
      ),
    );
  }
}
