|
|
|
|
@ -4,6 +4,7 @@ import 'package:doctor_app_flutter/core/viewModel/project_view_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/icons_app/doctor_app_icons.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/models/patient/profile/patient_profile_app_bar_model.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/routes.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/patients/profile/patient-profile-app-bar.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
@ -36,7 +37,6 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
this.bottomSheet,
|
|
|
|
|
this.backgroundColor,
|
|
|
|
|
this.isHomeIcon = true,
|
|
|
|
|
|
|
|
|
|
this.subtitle,
|
|
|
|
|
this.patientProfileAppBarModel,
|
|
|
|
|
this.drawer, this.extendBody = false, this.bottomNavigationBar, this.appBar});
|
|
|
|
|
@ -55,18 +55,20 @@ class AppScaffold extends StatelessWidget {
|
|
|
|
|
extendBody: extendBody,
|
|
|
|
|
bottomNavigationBar: bottomNavigationBar,
|
|
|
|
|
appBar: isShowAppBar
|
|
|
|
|
? appBar ??
|
|
|
|
|
AppBar(
|
|
|
|
|
elevation: 0,
|
|
|
|
|
backgroundColor: Colors.white, //HexColor('#515B5D'),
|
|
|
|
|
textTheme: TextTheme(
|
|
|
|
|
headline6: TextStyle(
|
|
|
|
|
color: Colors.black87,
|
|
|
|
|
fontSize: 16.8,
|
|
|
|
|
)),
|
|
|
|
|
title: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
? patientProfileAppBarModel != null ? PatientProfileAppBar(patientProfileAppBarModel!.patient!,
|
|
|
|
|
patientProfileAppBarModel: patientProfileAppBarModel!,) : appBar ??
|
|
|
|
|
AppBar(
|
|
|
|
|
elevation: 0,
|
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
|
//HexColor('#515B5D'),
|
|
|
|
|
textTheme: TextTheme(
|
|
|
|
|
headline6: TextStyle(
|
|
|
|
|
color: Colors.black87,
|
|
|
|
|
fontSize: 16.8,
|
|
|
|
|
)),
|
|
|
|
|
title: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Text(appBarTitle.toUpperCase()),
|
|
|
|
|
if (subtitle != null)
|
|
|
|
|
Text(
|
|
|
|
|
|