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.
92 lines
3.1 KiB
Dart
92 lines
3.1 KiB
Dart
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
import 'package:doctor_app_flutter/core/viewModel/auth_view_model.dart';
|
|
import 'package:doctor_app_flutter/util/translations_delegate_base.dart';
|
|
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:hexcolor/hexcolor.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
class ProfileWelcomeWidget extends StatelessWidget {
|
|
final Widget clinicWidget;
|
|
final double height;
|
|
final bool isClilic;
|
|
ProfileWelcomeWidget(this.clinicWidget,
|
|
{this.height = 150, this.isClilic = false});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
AuthViewModel authProvider = Provider.of(context);
|
|
|
|
return Container(
|
|
height: height,
|
|
// color: HexColor('#515B5D'),
|
|
width: double.infinity,
|
|
child: FractionallySizedBox(
|
|
widthFactor: 0.9,
|
|
child: Row(
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: <Widget>[
|
|
this.isClilic == true ? clinicWidget : SizedBox(),
|
|
// Column(
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
// mainAxisAlignment: MainAxisAlignment.start,
|
|
// children: <Widget>[
|
|
// Row(
|
|
// children: <Widget>[
|
|
// AppText(
|
|
// TranslationBase.of(context).welcome,
|
|
// fontSize: SizeConfig.textMultiplier * 1.7,
|
|
// color: Colors.black,
|
|
// )
|
|
// ],
|
|
// ),
|
|
// Row(
|
|
// mainAxisAlignment: MainAxisAlignment.end,
|
|
// children: <Widget>[
|
|
// AppText(
|
|
// // TranslationBase.of(context).dr +
|
|
// ' ${authProvider.doctorProfile.doctorName}',
|
|
// fontWeight: FontWeight.bold,
|
|
// fontSize: SizeConfig.textMultiplier * 2.5,
|
|
// color: Colors.black,
|
|
// ),
|
|
SizedBox(
|
|
width: 20,
|
|
),
|
|
CircleAvatar(
|
|
// radius: (52)
|
|
child: ClipRRect(
|
|
borderRadius: BorderRadius.circular(20),
|
|
child: Image.network(
|
|
authProvider.doctorProfile.doctorImageURL,
|
|
fit: BoxFit.fill,
|
|
width: 75,
|
|
height: 75,
|
|
),
|
|
),
|
|
backgroundColor: Colors.transparent,
|
|
),
|
|
// ],
|
|
// ),
|
|
SizedBox(
|
|
height: 20,
|
|
),
|
|
|
|
/// ],
|
|
// ),
|
|
// Expanded(
|
|
// child: Column(
|
|
// mainAxisAlignment: MainAxisAlignment.start,
|
|
// crossAxisAlignment: CrossAxisAlignment.end,
|
|
// children: <Widget>[
|
|
|
|
// ],
|
|
// ),
|
|
// ),
|
|
],
|
|
)),
|
|
);
|
|
}
|
|
}
|