Gauge scale fixes
This commit is contained in:
parent
d715aaf5e5
commit
b029146bf3
@ -108,7 +108,7 @@ class GaugeCard extends StatelessWidget {
|
||||
child: AspectRatio(
|
||||
aspectRatio: 1.8,
|
||||
child: Stack(
|
||||
alignment: Alignment.topCenter,
|
||||
alignment: Alignment.bottomCenter,
|
||||
children: <Widget>[
|
||||
SfRadialGauge(
|
||||
axes: <RadialAxis>[
|
||||
@ -140,22 +140,22 @@ class GaugeCard extends StatelessWidget {
|
||||
)
|
||||
],
|
||||
),
|
||||
FractionallySizedBox(
|
||||
heightFactor: 0.2,
|
||||
widthFactor: 1,
|
||||
child: FittedBox(
|
||||
fit: BoxFit.fitHeight,
|
||||
child: EntityName(
|
||||
textStyle: Theme.of(context).textTheme.subhead
|
||||
Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: <Widget>[
|
||||
Flexible(
|
||||
flex: 8,
|
||||
fit: FlexFit.tight,
|
||||
child: Container()
|
||||
),
|
||||
)
|
||||
),
|
||||
FractionallySizedBox(
|
||||
Flexible(
|
||||
flex: 6,
|
||||
fit: FlexFit.tight,
|
||||
child: FractionallySizedBox(
|
||||
widthFactor: 0.4,
|
||||
heightFactor: 0.95,
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: FittedBox(
|
||||
fit: BoxFit.fitWidth,
|
||||
fit: BoxFit.contain,
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: SimpleEntityState(
|
||||
padding: EdgeInsets.all(0),
|
||||
@ -164,7 +164,21 @@ class GaugeCard extends StatelessWidget {
|
||||
textAlign: TextAlign.center
|
||||
),
|
||||
)
|
||||
)
|
||||
),
|
||||
Flexible(
|
||||
flex: 3,
|
||||
fit: FlexFit.tight,
|
||||
child: FittedBox(
|
||||
fit: BoxFit.contain,
|
||||
child: EntityName(
|
||||
padding: EdgeInsets.all(0),
|
||||
textStyle: Theme.of(context).textTheme.subhead
|
||||
),
|
||||
)
|
||||
),
|
||||
],
|
||||
)
|
||||
],
|
||||
)
|
||||
),
|
||||
|
Reference in New Issue
Block a user