mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
adjusted the size of AqiGauge
and removed unnecessary code.
This commit is contained in:
@ -15,7 +15,7 @@ class AirQualityEndSideGaugeAndInfo extends StatelessWidget {
|
||||
child: Row(
|
||||
children: [
|
||||
const Expanded(
|
||||
flex: 3,
|
||||
flex: 2,
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
|
@ -77,22 +77,17 @@ class AqiGauge extends StatelessWidget {
|
||||
progressBar: const GaugeProgressBar.basic(color: Colors.transparent),
|
||||
style: const GaugeAxisStyle(
|
||||
cornerRadius: Radius.circular(16),
|
||||
thickness: 10,
|
||||
thickness: 14,
|
||||
segmentSpacing: 4,
|
||||
),
|
||||
min: 0,
|
||||
max: 300,
|
||||
pointer: GaugePointer.circle(
|
||||
position: const GaugePointerPosition.surface(),
|
||||
shadow: const BoxShadow(
|
||||
color: ColorsManager.transparentColor,
|
||||
blurRadius: 0,
|
||||
offset: Offset(0, 0),
|
||||
),
|
||||
radius: MediaQuery.sizeOf(context).width * 0.004,
|
||||
color: ColorsManager.whiteColors,
|
||||
border: GaugePointerBorder(
|
||||
width: 4,
|
||||
width: 6,
|
||||
color: _getPointerColor(aqi),
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user