change profile update page
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:patient_manager/components/mihAppBar.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/components/profileUserUpdate.dart';
|
||||||
import 'package:patient_manager/objects/appUser.dart';
|
import 'package:patient_manager/objects/appUser.dart';
|
||||||
|
|
||||||
@@ -19,19 +18,18 @@ class ProfileUpdate extends StatefulWidget {
|
|||||||
|
|
||||||
class _ProfileUpdateState extends State<ProfileUpdate> {
|
class _ProfileUpdateState extends State<ProfileUpdate> {
|
||||||
//int _selectedIndex = 0;
|
//int _selectedIndex = 0;
|
||||||
late List<Widget> _widgetOptions;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
_widgetOptions = <Widget>[
|
// _widgetOptions = <Widget>[
|
||||||
//Center(child: Text("User profile")),
|
// //Center(child: Text("User profile")),
|
||||||
ProfileUserUpdate(
|
// ProfileUserUpdate(
|
||||||
signedInUser: widget.signedInUser,
|
// signedInUser: widget.signedInUser,
|
||||||
),
|
// ),
|
||||||
ProfileOfficeUpdate(
|
// ProfileOfficeUpdate(
|
||||||
signedInUser: widget.signedInUser,
|
// signedInUser: widget.signedInUser,
|
||||||
),
|
// ),
|
||||||
];
|
// ];
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,7 +40,9 @@ class _ProfileUpdateState extends State<ProfileUpdate> {
|
|||||||
body: Padding(
|
body: Padding(
|
||||||
padding: const EdgeInsets.all(15.0),
|
padding: const EdgeInsets.all(15.0),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: _widgetOptions.elementAt(0),
|
child: ProfileUserUpdate(
|
||||||
|
signedInUser: widget.signedInUser,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// bottomNavigationBar: GNav(
|
// bottomNavigationBar: GNav(
|
||||||
|
|||||||
Reference in New Issue
Block a user