|
|
|
@ -79,12 +79,15 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
/// Banner
|
|
|
|
/// Banner
|
|
|
|
projectViewModel.hisProjectOffers.first.projectArabic!.split("\$").length > 1
|
|
|
|
projectViewModel.hisProjectOffers.first.projectArabic!.split("\$").length > 1
|
|
|
|
? SvgPicture.network(
|
|
|
|
? SizedBox(
|
|
|
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
|
|
|
child: SvgPicture.network(
|
|
|
|
projectViewModel.isArabic
|
|
|
|
projectViewModel.isArabic
|
|
|
|
? projectViewModel.hisProjectOffers.first.projectArabic!.split("\$")[1].trim()
|
|
|
|
? projectViewModel.hisProjectOffers.first.projectArabic!.split("\$")[1].trim()
|
|
|
|
: projectViewModel.hisProjectOffers.first.projectEnglish!.split("\$")[1].trim(),
|
|
|
|
: projectViewModel.hisProjectOffers.first.projectEnglish!.split("\$")[1].trim(),
|
|
|
|
height: 120,
|
|
|
|
height: 180,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
: SizedBox.shrink(),
|
|
|
|
|
|
|
|
|
|
|
|
@ -175,7 +178,7 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
|
|
|
|
|
|
|
|
/// Hospital Dropdown (mock UI)
|
|
|
|
/// Hospital Dropdown (mock UI)
|
|
|
|
projectViewModel.havePrivilege(113)
|
|
|
|
projectViewModel.havePrivilege(114)
|
|
|
|
? Container()
|
|
|
|
? Container()
|
|
|
|
: Padding(
|
|
|
|
: Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
|
|
|
@ -241,7 +244,7 @@ class _OfferDetailsPageState extends State<OfferDetailsPage> {
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
width: MediaQuery.of(context).size.width - 24,
|
|
|
|
width: MediaQuery.of(context).size.width - 24,
|
|
|
|
height: 50,
|
|
|
|
height: 50,
|
|
|
|
child: projectViewModel.havePrivilege(113)
|
|
|
|
child: projectViewModel.havePrivilege(114)
|
|
|
|
? DefaultButton(TranslationBase.of(context).downloadNewApp, () {
|
|
|
|
? DefaultButton(TranslationBase.of(context).downloadNewApp, () {
|
|
|
|
if (Platform.isAndroid) {
|
|
|
|
if (Platform.isAndroid) {
|
|
|
|
_launchURL("https://play.google.com/store/apps/details?id=com.cloudsolutions.HMGPatientApp");
|
|
|
|
_launchURL("https://play.google.com/store/apps/details?id=com.cloudsolutions.HMGPatientApp");
|
|
|
|
|