fit dashboard design

merge-requests/648/head
mosazaid 5 years ago
parent 89d2938003
commit 2cf77bac85

@ -337,7 +337,7 @@ const TRANSACTION_NO = 0;
const LANGUAGE_ID = 2; const LANGUAGE_ID = 2;
const STAMP = '2020-04-27T12:17:17.721Z'; const STAMP = '2020-04-27T12:17:17.721Z';
const IP_ADDRESS = '9.9.9.9'; const IP_ADDRESS = '9.9.9.9';
const VERSION_ID = 5.9; const VERSION_ID = 6.0;
const CHANNEL = 9; const CHANNEL = 9;
const SESSION_ID = 'BlUSkYymTt'; const SESSION_ID = 'BlUSkYymTt';
const IS_LOGIN_FOR_DOCTOR_APP = true; const IS_LOGIN_FOR_DOCTOR_APP = true;

@ -4,7 +4,9 @@ import 'package:flutter/material.dart';
class GetOutPatientStack extends StatelessWidget { class GetOutPatientStack extends StatelessWidget {
final value; final value;
GetOutPatientStack(this.value); GetOutPatientStack(this.value);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
value.summaryoptions value.summaryoptions
@ -27,44 +29,48 @@ class GetOutPatientStack extends StatelessWidget {
} }
getStack(Summaryoptions value, max) { getStack(Summaryoptions value, max) {
return Stack(children: [ return Expanded(
Container( child: Container(
height: 150, margin: EdgeInsets.symmetric(horizontal: 2),
margin: EdgeInsets.all(5),
width: 35,
child: SizedBox(),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10), color: Colors.red[50]), borderRadius: BorderRadius.circular(6),
), color: Colors.red[50],
Positioned( ),
bottom: 0, child: Stack(children: [
child: Container( Positioned(
bottom: 0,
left: 0,
right: 0,
child: Container(
child: SizedBox(), child: SizedBox(),
margin: EdgeInsets.all(5),
padding: EdgeInsets.all(10), padding: EdgeInsets.all(10),
height: max != 0 ? (150 * value.value) / max : 0, height: max != 0 ? (150 * value.value) / max : 0,
width: 35,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(6),
color: Colors.red[300]))), color: Color(0x63D02127),
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,
), ),
)),
), ),
)) ),
]); 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,
),
)),
),
))
]),
),
);
} }
} }

Loading…
Cancel
Save