|
|
|
|
@ -4,7 +4,9 @@ import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
class GetOutPatientStack extends StatelessWidget {
|
|
|
|
|
final value;
|
|
|
|
|
|
|
|
|
|
GetOutPatientStack(this.value);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
value.summaryoptions
|
|
|
|
|
@ -27,44 +29,48 @@ class GetOutPatientStack extends StatelessWidget {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getStack(Summaryoptions value, max) {
|
|
|
|
|
return Stack(children: [
|
|
|
|
|
Container(
|
|
|
|
|
height: 150,
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
width: 35,
|
|
|
|
|
child: SizedBox(),
|
|
|
|
|
return Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 2),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(10), color: Colors.red[50]),
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
bottom: 0,
|
|
|
|
|
child: Container(
|
|
|
|
|
borderRadius: BorderRadius.circular(6),
|
|
|
|
|
color: Colors.red[50],
|
|
|
|
|
),
|
|
|
|
|
child: Stack(children: [
|
|
|
|
|
Positioned(
|
|
|
|
|
bottom: 0,
|
|
|
|
|
left: 0,
|
|
|
|
|
right: 0,
|
|
|
|
|
child: Container(
|
|
|
|
|
child: SizedBox(),
|
|
|
|
|
margin: EdgeInsets.all(5),
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
height: max != 0 ? (150 * value.value) / max : 0,
|
|
|
|
|
width: 35,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
|
color: Colors.red[300]))),
|
|
|
|
|
Container(
|
|
|
|
|
height: 150,
|
|
|
|
|
margin: EdgeInsets.only(left: 5, top: 5),
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: RotatedBox(
|
|
|
|
|
quarterTurns: 1,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Align(
|
|
|
|
|
child: FittedBox(
|
|
|
|
|
child: AppText(
|
|
|
|
|
value.kPIParameter + ' (' + value.value.toString() + ') ',
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
borderRadius: BorderRadius.circular(6),
|
|
|
|
|
color: Color(0x63D02127),
|
|
|
|
|
),
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
))
|
|
|
|
|
]);
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: 150,
|
|
|
|
|
margin: EdgeInsets.only(left: 5, top: 5),
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: RotatedBox(
|
|
|
|
|
quarterTurns: 3,
|
|
|
|
|
child: Center(
|
|
|
|
|
child: Align(
|
|
|
|
|
child: FittedBox(
|
|
|
|
|
child: AppText(
|
|
|
|
|
value.kPIParameter + ' (' + value.value.toString() + ') ',
|
|
|
|
|
fontSize: 10,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
),
|
|
|
|
|
)),
|
|
|
|
|
),
|
|
|
|
|
))
|
|
|
|
|
]),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|