Skip to content

Commit 9a92613

Browse files
authored
Text button&weather information (#502)
* blurred button&weather information * 更新 blurred_button.dart
1 parent f56648d commit 9a92613

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/app/home/_widgets/blurred_button.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ class BlurredTextButton extends StatelessWidget {
4848
child: TextButton(
4949
style: TextButton.styleFrom(
5050
shape: const StadiumBorder(),
51-
foregroundColor: context.colors.outline,
51+
foregroundColor: Theme.of(context).brightness == Brightness.dark
52+
? const Color.fromARGB(199, 250, 250, 250)
53+
: const Color.fromARGB(255, 50, 50, 50),
5254
textStyle: textStyle,
5355
padding: const EdgeInsets.symmetric(horizontal: 16),
5456
),

lib/app/home/_widgets/hero_weather.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class HeroWeather extends StatelessWidget {
111111
Icon(
112112
_getWeatherIcon(data.weatherCode),
113113
size: 24,
114-
color: Colors.white.withValues(alpha: 0.9),
114+
color: Colors.white.withValues(alpha: 1),
115115
shadows: [
116116
Shadow(
117117
color: Colors.black.withValues(alpha: 0.3),
@@ -124,7 +124,7 @@ class HeroWeather extends StatelessWidget {
124124
Text(
125125
data.weather,
126126
style: context.texts.titleMedium?.copyWith(
127-
color: Colors.white.withValues(alpha: 0.9),
127+
color: Colors.white.withValues(alpha: 1),
128128
fontWeight: FontWeight.w400,
129129
shadows: [
130130
Shadow(
@@ -143,7 +143,7 @@ class HeroWeather extends StatelessWidget {
143143
'feelsLike': feelsLike.round(),
144144
}),
145145
style: context.texts.bodyMedium?.copyWith(
146-
color: Colors.white.withValues(alpha: 0.7),
146+
color: Colors.white.withValues(alpha: 1),
147147
shadows: [
148148
Shadow(
149149
color: Colors.black.withValues(alpha: 0.3),

0 commit comments

Comments
 (0)