object and router files update

This commit is contained in:
2024-09-17 16:14:54 +02:00
parent fcd045ac40
commit 5b905be74b
44 changed files with 88 additions and 88 deletions

View File

@@ -0,0 +1,74 @@
import 'package:flutter/material.dart';
import 'package:patient_manager/mih_objects/app_user.dart';
import 'package:patient_manager/mih_objects/business.dart';
import 'package:patient_manager/mih_objects/business_user.dart';
import 'package:patient_manager/mih_objects/patients.dart';
class BusinessArguments {
final AppUser signedInUser;
final BusinessUser? businessUser;
final Business? business;
BusinessArguments(
this.signedInUser,
this.businessUser,
this.business,
);
}
class HomeArguments {
final AppUser signedInUser;
final BusinessUser? businessUser;
final Business? business;
final String profilePicUrl;
HomeArguments(
this.signedInUser,
this.businessUser,
this.business,
this.profilePicUrl,
);
}
class AppProfileUpdateArguments {
final AppUser signedInUser;
final ImageProvider<Object>? propicFile;
AppProfileUpdateArguments(this.signedInUser, this.propicFile);
}
class FileViewArguments {
final String link;
final String path;
FileViewArguments(
this.link,
this.path,
);
}
class PatientViewArguments {
final AppUser signedInUser;
final Patient? selectedPatient;
final BusinessUser? businessUser;
final Business? business;
final String type;
PatientViewArguments(
this.signedInUser,
this.selectedPatient,
this.businessUser,
this.business,
this.type,
);
}
class PatientEditArguments {
final AppUser signedInUser;
final Patient selectedPatient;
PatientEditArguments(
this.signedInUser,
this.selectedPatient,
);
}