You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
Dart
42 lines
1.1 KiB
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:hmg_nurses/config/routes.dart';
|
|
import 'package:hmg_nurses/main.dart';
|
|
import 'package:hmg_nurses/provider/dashboard_provider_model.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
class DashboardPage extends StatefulWidget {
|
|
@override
|
|
State<DashboardPage> createState() => _DashboardPageState();
|
|
}
|
|
|
|
class _DashboardPageState extends State<DashboardPage> {
|
|
late DashboardProviderModel provider;
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
provider = Provider.of<DashboardProviderModel>(navigatorKey.currentContext!);
|
|
provider.getDocProfile();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
actions: [
|
|
IconButton(
|
|
onPressed: () {
|
|
Navigator.pushReplacementNamed(context, AppRoutes.login, arguments: false);
|
|
},
|
|
icon: const Icon(
|
|
Icons.logout,
|
|
color: Colors.white,
|
|
),
|
|
)
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|