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