|
|
|
@ -11,7 +11,8 @@ class WeatherSlider extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
|
|
WeatherSlider(this.data, this.projectViewModel);
|
|
|
|
WeatherSlider(this.data, this.projectViewModel);
|
|
|
|
|
|
|
|
|
|
|
|
LinearGradient red = LinearGradient(colors: [const Color(0xFF14384B), const Color(0xFF14384B)]);
|
|
|
|
LinearGradient red = LinearGradient(colors: [Colors.redAccent[100]!, Colors.redAccent]);
|
|
|
|
|
|
|
|
LinearGradient green = LinearGradient(colors: [Colors.greenAccent[100]!, Colors.greenAccent]);
|
|
|
|
LinearGradient grey = LinearGradient(colors: [Colors.grey[100]!, Colors.grey]);
|
|
|
|
LinearGradient grey = LinearGradient(colors: [Colors.grey[100]!, Colors.grey]);
|
|
|
|
LinearGradient orange = LinearGradient(colors: [Colors.orangeAccent[100]!, Colors.orange]);
|
|
|
|
LinearGradient orange = LinearGradient(colors: [Colors.orangeAccent[100]!, Colors.orange]);
|
|
|
|
LinearGradient yellow = LinearGradient(colors: [Colors.yellow[100]!, Colors.yellow[600]!]);
|
|
|
|
LinearGradient yellow = LinearGradient(colors: [Colors.yellow[100]!, Colors.yellow[600]!]);
|
|
|
|
@ -68,7 +69,7 @@ class WeatherSlider extends StatelessWidget {
|
|
|
|
: data.colorName == 'orange'
|
|
|
|
: data.colorName == 'orange'
|
|
|
|
? Colors.orangeAccent
|
|
|
|
? Colors.orangeAccent
|
|
|
|
: data.colorName == 'green'
|
|
|
|
: data.colorName == 'green'
|
|
|
|
? Colors.greenAccent
|
|
|
|
? Colors.greenAccent
|
|
|
|
: data.colorName == 'yellow'
|
|
|
|
: data.colorName == 'yellow'
|
|
|
|
? Colors.yellowAccent
|
|
|
|
? Colors.yellowAccent
|
|
|
|
: Colors.grey,
|
|
|
|
: Colors.grey,
|
|
|
|
|