|
|
|
@ -1,6 +1,8 @@
|
|
|
|
import 'package:diplomaticquarterapp/config/size_config.dart';
|
|
|
|
import 'package:diplomaticquarterapp/config/size_config.dart';
|
|
|
|
|
|
|
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/rounded_container_widget.dart';
|
|
|
|
import 'package:diplomaticquarterapp/widgets/others/rounded_container_widget.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
|
|
import '../text.dart';
|
|
|
|
import '../text.dart';
|
|
|
|
|
|
|
|
|
|
|
|
@ -18,6 +20,7 @@ class MedicalProfileItem extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
|
|
|
ProjectViewModel projectViewModel = Provider.of(context);
|
|
|
|
return RoundedContainer(
|
|
|
|
return RoundedContainer(
|
|
|
|
showBorder: true,
|
|
|
|
showBorder: true,
|
|
|
|
borderWidth: 0,
|
|
|
|
borderWidth: 0,
|
|
|
|
@ -39,7 +42,7 @@ class MedicalProfileItem extends StatelessWidget {
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
Texts(subTitle,fontSize: 1.4 * SizeConfig.textMultiplier,),
|
|
|
|
Texts(subTitle,fontSize: 1.4 * SizeConfig.textMultiplier,),
|
|
|
|
Align(
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.bottomRight,
|
|
|
|
alignment:projectViewModel.isArabic ? Alignment.bottomLeft : Alignment.bottomRight,
|
|
|
|
child: Image.asset(
|
|
|
|
child: Image.asset(
|
|
|
|
"assets/images/medical/$imagePath",
|
|
|
|
"assets/images/medical/$imagePath",
|
|
|
|
height: SizeConfig.heightMultiplier * 5,
|
|
|
|
height: SizeConfig.heightMultiplier * 5,
|
|
|
|
|