|
|
|
|
@ -9,6 +9,7 @@ import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
|
|
|
import 'package:doctor_app_flutter/widgets/shared/network_base_view.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:flutter_html/flutter_html.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
class LaboratoryResultWidget extends StatefulWidget {
|
|
|
|
|
@ -37,6 +38,7 @@ class LaboratoryResultWidget extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
|
bool _isShowMoreGeneral = true;
|
|
|
|
|
bool _isShowMore = true;
|
|
|
|
|
ProjectViewModel projectViewModel;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@ -141,9 +143,76 @@ class _LaboratoryResultWidgetState extends State<LaboratoryResultWidget> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
SizedBox(height: 15,),
|
|
|
|
|
if(widget.details!=null && widget.details.isNotEmpty)
|
|
|
|
|
Column(
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
setState(() {
|
|
|
|
|
_isShowMore = !_isShowMore;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
child: Container(
|
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
|
margin: EdgeInsets.only(left: 5, right: 5),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
|
Radius.circular(5.0),
|
|
|
|
|
)),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
|
left: 10, right: 10),
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context)
|
|
|
|
|
.specialResult,
|
|
|
|
|
bold: true,
|
|
|
|
|
))),
|
|
|
|
|
Container(
|
|
|
|
|
width: 25,
|
|
|
|
|
height: 25,
|
|
|
|
|
child: Icon(
|
|
|
|
|
_isShowMore
|
|
|
|
|
? Icons.keyboard_arrow_up
|
|
|
|
|
: Icons.keyboard_arrow_down,
|
|
|
|
|
color: Colors.grey[800],
|
|
|
|
|
size: 22,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (_isShowMore)
|
|
|
|
|
AnimatedContainer(
|
|
|
|
|
padding: EdgeInsets.all(10.0),
|
|
|
|
|
margin: EdgeInsets.only(left: 5, right: 5),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
shape: BoxShape.rectangle,
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
|
bottomLeft: Radius.circular(5.0),
|
|
|
|
|
bottomRight: Radius.circular(5.0),
|
|
|
|
|
)),
|
|
|
|
|
duration: Duration(milliseconds: 7000),
|
|
|
|
|
child: Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Html(
|
|
|
|
|
data: widget.details ?? TranslationBase.of(context).noDataAvailable,
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 10,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|