add selected patient for navigation
This commit is contained in:
@@ -9,17 +9,21 @@ import 'package:patient_manager/components/inputsAndButtons/mihButton.dart';
|
|||||||
import 'package:patient_manager/env/env.dart';
|
import 'package:patient_manager/env/env.dart';
|
||||||
import 'package:patient_manager/main.dart';
|
import 'package:patient_manager/main.dart';
|
||||||
import 'package:patient_manager/objects/appUser.dart';
|
import 'package:patient_manager/objects/appUser.dart';
|
||||||
|
import 'package:patient_manager/objects/arguments.dart';
|
||||||
import 'package:patient_manager/objects/files.dart';
|
import 'package:patient_manager/objects/files.dart';
|
||||||
|
import 'package:patient_manager/objects/patients.dart';
|
||||||
import 'package:supertokens_flutter/http.dart' as http;
|
import 'package:supertokens_flutter/http.dart' as http;
|
||||||
import "package:universal_html/html.dart" as html;
|
import "package:universal_html/html.dart" as html;
|
||||||
|
|
||||||
class BuildFilesList extends StatefulWidget {
|
class BuildFilesList extends StatefulWidget {
|
||||||
final AppUser signedInUser;
|
final AppUser signedInUser;
|
||||||
final List<PFile> files;
|
final List<PFile> files;
|
||||||
|
final Patient selectedPatient;
|
||||||
const BuildFilesList({
|
const BuildFilesList({
|
||||||
super.key,
|
super.key,
|
||||||
required this.files,
|
required this.files,
|
||||||
required this.signedInUser,
|
required this.signedInUser,
|
||||||
|
required this.selectedPatient,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -104,9 +108,13 @@ class _BuildFilesListState extends State<BuildFilesList> {
|
|||||||
if (response2.statusCode == 200) {
|
if (response2.statusCode == 200) {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
Navigator.of(context)
|
Navigator.of(context).pop();
|
||||||
.pushNamed('/patient-profile', arguments: widget.signedInUser);
|
Navigator.of(context).pushNamed('/patient-manager/patient',
|
||||||
setState(() {});
|
arguments: PatientViewArguments(
|
||||||
|
widget.signedInUser, widget.selectedPatient, "business"));
|
||||||
|
// Navigator.of(context)
|
||||||
|
// .pushNamed('/patient-profile', arguments: widget.signedInUser);
|
||||||
|
// setState(() {});
|
||||||
String message =
|
String message =
|
||||||
"The File has been deleted successfully. This means it will no longer be visible on your and cannot be used for future appointments.";
|
"The File has been deleted successfully. This means it will no longer be visible on your and cannot be used for future appointments.";
|
||||||
successPopUp(message);
|
successPopUp(message);
|
||||||
|
|||||||
Reference in New Issue
Block a user