mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
add shadow to pointer to match the design.
This commit is contained in:
@ -60,7 +60,7 @@ class AqiGauge extends StatelessWidget {
|
||||
alignment: AlignmentDirectional.bottomCenter,
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
text: '${value.toInt()}',
|
||||
text: value.toStringAsFixed(0),
|
||||
style: context.textTheme.bodySmall?.copyWith(
|
||||
color: ColorsManager.textPrimaryColor,
|
||||
fontWeight: FontWeight.w700,
|
||||
@ -100,9 +100,14 @@ class AqiGauge extends StatelessWidget {
|
||||
width: 6,
|
||||
color: _getPointerColor(aqi),
|
||||
),
|
||||
shadow: const BoxShadow(
|
||||
color: ColorsManager.blackColor,
|
||||
blurRadius: 6,
|
||||
offset: Offset(0, 2),
|
||||
),
|
||||
),
|
||||
transformer: const GaugeAxisTransformer.colorFadeIn(
|
||||
background: Colors.transparent,
|
||||
background: ColorsManager.transparentColor,
|
||||
interval: Interval(0, 0),
|
||||
),
|
||||
segments: [
|
||||
|
Reference in New Issue
Block a user