From ab33d06b91d99b69a225daf90712121b67ace558 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Thu, 26 Dec 2024 16:39:46 +0300 Subject: [PATCH] Fix for VIDA4 Lab Special Result --- .../medical/LabResult/laboratory_result_widget.dart | 9 +++------ pubspec.yaml | 4 +++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/widgets/data_display/medical/LabResult/laboratory_result_widget.dart b/lib/widgets/data_display/medical/LabResult/laboratory_result_widget.dart index 1ceca02f..6ad54a8f 100644 --- a/lib/widgets/data_display/medical/LabResult/laboratory_result_widget.dart +++ b/lib/widgets/data_display/medical/LabResult/laboratory_result_widget.dart @@ -10,6 +10,7 @@ import 'package:diplomaticquarterapp/widgets/others/network_base_view.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_html/flutter_html.dart'; +import 'package:flutter_widget_from_html/flutter_widget_from_html.dart'; import 'package:provider/provider.dart'; import 'LabResultWidget.dart'; @@ -179,12 +180,8 @@ class _LaboratoryResultWidgetState extends State { ), if (_isShowMore) Container( - width: double.infinity, - // height: 450.0, - child: Html( - // data: widget.details ?? TranslationBase.of(context).noDataAvailable, - data: labSpecialResult, - ), + width: MediaQuery.of(context).size.width * 0.9, + child: HtmlWidget(labSpecialResult), ), ], ), diff --git a/pubspec.yaml b/pubspec.yaml index 26b406e4..ddaab056 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: diplomaticquarterapp description: A new Flutter application. -version: 4.5.073+4050073 +version: 4.5.074+4050074 environment: sdk: ">=3.0.0 <3.13.0" @@ -51,6 +51,8 @@ dependencies: # Flutter Html View flutter_html: ^3.0.0-beta.2 + flutter_widget_from_html: ^0.15.3 + # Pagnation pull_to_refresh: ^2.0.0