From 104c1439cee69aa4eb916b5820a38694c5d59f48 Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Mon, 5 Aug 2024 15:39:59 +0200 Subject: [PATCH] change profile update page --- .../lib/pages/profileUpdate.dart | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Frontend/patient_manager/lib/pages/profileUpdate.dart b/Frontend/patient_manager/lib/pages/profileUpdate.dart index 6b491c9d..30219d71 100644 --- a/Frontend/patient_manager/lib/pages/profileUpdate.dart +++ b/Frontend/patient_manager/lib/pages/profileUpdate.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; import 'package:patient_manager/components/mihAppBar.dart'; -import 'package:patient_manager/components/profileOfficeUpdate.dart'; import 'package:patient_manager/components/profileUserUpdate.dart'; import 'package:patient_manager/objects/appUser.dart'; @@ -19,19 +18,18 @@ class ProfileUpdate extends StatefulWidget { class _ProfileUpdateState extends State { //int _selectedIndex = 0; - late List _widgetOptions; @override void initState() { - _widgetOptions = [ - //Center(child: Text("User profile")), - ProfileUserUpdate( - signedInUser: widget.signedInUser, - ), - ProfileOfficeUpdate( - signedInUser: widget.signedInUser, - ), - ]; + // _widgetOptions = [ + // //Center(child: Text("User profile")), + // ProfileUserUpdate( + // signedInUser: widget.signedInUser, + // ), + // ProfileOfficeUpdate( + // signedInUser: widget.signedInUser, + // ), + // ]; super.initState(); } @@ -42,7 +40,9 @@ class _ProfileUpdateState extends State { body: Padding( padding: const EdgeInsets.all(15.0), child: Center( - child: _widgetOptions.elementAt(0), + child: ProfileUserUpdate( + signedInUser: widget.signedInUser, + ), ), ), // bottomNavigationBar: GNav(