|
|
|
|
@ -14,7 +14,7 @@ class GetOutPatientStack extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
var list = new List<Widget>();
|
|
|
|
|
value.summaryoptions.forEach((result) =>
|
|
|
|
|
{list.add(getStack(result, value.summaryoptions.first.value))});
|
|
|
|
|
{list.add(getStack(result, value.summaryoptions.first.value,context))});
|
|
|
|
|
return Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
|
@ -32,7 +32,7 @@ class GetOutPatientStack extends StatelessWidget {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getStack(Summaryoptions value, max) {
|
|
|
|
|
getStack(Summaryoptions value, max,context) {
|
|
|
|
|
return Expanded(
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 2),
|
|
|
|
|
@ -55,7 +55,7 @@ class GetOutPatientStack extends StatelessWidget {
|
|
|
|
|
child: Container(
|
|
|
|
|
child: SizedBox(),
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
height: max != 0 ? (150 * value.value) / max : 0,
|
|
|
|
|
height: max != 0 ? ((MediaQuery.of(context).size.height * 0.24 )* value.value) / max : 0,
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
borderRadius: BorderRadius.circular(8),
|
|
|
|
|
color: Color(0x63D02127),
|
|
|
|
|
@ -63,7 +63,7 @@ class GetOutPatientStack extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: 150,
|
|
|
|
|
height: (MediaQuery.of(context).size.height * 0.24 ),
|
|
|
|
|
margin: EdgeInsets.only(left: 5, top: 5),
|
|
|
|
|
padding: EdgeInsets.all(10),
|
|
|
|
|
child: RotatedBox(
|
|
|
|
|
|