change home page structure
parent
85f65551cb
commit
a485d7b105
@ -0,0 +1,66 @@
|
||||
import 'package:doctor_app_flutter/models/category_models.dart';
|
||||
import 'package:doctor_app_flutter/routes.dart';
|
||||
|
||||
const DUMMY_CATEGORIES = const [
|
||||
Category(
|
||||
id: 'c1',
|
||||
title: 'My Schedule',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: MY_SCHEDULE),
|
||||
Category(
|
||||
id: 'c2',
|
||||
title: 'Patient Search',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: PATIENT_SEARCH),
|
||||
Category(
|
||||
id: 'c3',
|
||||
title: 'outPatiant',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: PATIENTS),
|
||||
Category(
|
||||
id: 'c4',
|
||||
title: 'InPatiant',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: PATIENTS),
|
||||
Category(
|
||||
id: 'c5',
|
||||
title: 'Referral',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: PATIENTS),
|
||||
Category(
|
||||
id: 'c6',
|
||||
title: 'Referred',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: PATIENTS),
|
||||
Category(
|
||||
id: 'c7',
|
||||
title: 'Discharged Patient',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: PATIENTS),
|
||||
Category(
|
||||
id: 'c8',
|
||||
title: 'Referral Discharge',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: PATIENTS),
|
||||
Category(
|
||||
id: 'c9',
|
||||
title: 'Search For Medicine',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: MEDICINE_SEARCH),
|
||||
Category(
|
||||
id: 'c10',
|
||||
title: 'Doctor Reply',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: DOCTOR_REPLY),
|
||||
Category(
|
||||
id: 'c11',
|
||||
title: 'Blood Bank',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: BLOOD_BANK),
|
||||
Category(
|
||||
id: 'c12',
|
||||
title: 'QR Reader',
|
||||
image: 'assets/images/user_id_icon.png',
|
||||
link: QR_READER),
|
||||
];
|
||||
|
||||
@ -0,0 +1,14 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
class Category {
|
||||
final String id;
|
||||
final String title;
|
||||
final String image;
|
||||
final String link;
|
||||
|
||||
const Category(
|
||||
{@required this.id,
|
||||
@required this.title,
|
||||
@required this.image,
|
||||
@required this.link});
|
||||
}
|
||||
Loading…
Reference in New Issue