mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
enhanced animation of AqiGague
This commit is contained in:
@ -48,7 +48,8 @@ class AqiGauge extends StatelessWidget {
|
|||||||
return AnimatedRadialGauge(
|
return AnimatedRadialGauge(
|
||||||
value: aqi,
|
value: aqi,
|
||||||
debug: false,
|
debug: false,
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 500),
|
||||||
|
curve: Curves.easeInOut,
|
||||||
initialValue: 0,
|
initialValue: 0,
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
builder: (context, child, value) {
|
builder: (context, child, value) {
|
||||||
@ -89,7 +90,7 @@ class AqiGauge extends StatelessWidget {
|
|||||||
thickness: 14,
|
thickness: 14,
|
||||||
segmentSpacing: 4,
|
segmentSpacing: 4,
|
||||||
),
|
),
|
||||||
min: 0,
|
min: _minRange,
|
||||||
max: _maxRange,
|
max: _maxRange,
|
||||||
pointer: GaugePointer.circle(
|
pointer: GaugePointer.circle(
|
||||||
position: const GaugePointerPosition.surface(),
|
position: const GaugePointerPosition.surface(),
|
||||||
|
Reference in New Issue
Block a user