Commit b5ac2c45bbd9d1f515a55da7225ca397d494edf7

Authored by 常守达
1 parent 5894b595

fix(today):字体对齐

1 import 'package:doublefeel_flutter/app/routes/app_pages.dart'; 1 import 'package:doublefeel_flutter/app/routes/app_pages.dart';
2 import 'package:doublefeel_flutter/core/theme/app_theme.dart'; 2 import 'package:doublefeel_flutter/core/theme/app_theme.dart';
3 import 'package:doublefeel_flutter/l10n/l10n_extensions.dart'; 3 import 'package:doublefeel_flutter/l10n/l10n_extensions.dart';
  4 +import 'package:flutter/gestures.dart';
4 import 'package:flutter/material.dart'; 5 import 'package:flutter/material.dart';
5 import 'package:get/get.dart'; 6 import 'package:get/get.dart';
6 7
@@ -223,7 +224,6 @@ class _InfoText extends StatelessWidget { @@ -223,7 +224,6 @@ class _InfoText extends StatelessWidget {
223 style: TextStyle( 224 style: TextStyle(
224 color: context.colors.textSecondary, 225 color: context.colors.textSecondary,
225 fontSize: 12, 226 fontSize: 12,
226 - height: 17 / 12,  
227 fontWeight: FontWeight.w400, 227 fontWeight: FontWeight.w400,
228 ), 228 ),
229 ), 229 ),
@@ -243,25 +243,28 @@ class _ContactText extends StatelessWidget { @@ -243,25 +243,28 @@ class _ContactText extends StatelessWidget {
243 style: TextStyle( 243 style: TextStyle(
244 color: context.colors.textSecondary, 244 color: context.colors.textSecondary,
245 fontSize: 12, 245 fontSize: 12,
246 - height: 17 / 12,  
247 fontWeight: FontWeight.w400, 246 fontWeight: FontWeight.w400,
248 ), 247 ),
249 children: [ 248 children: [
250 - TextSpan(text: l10n.todayFaqContactPrefix),  
251 - WidgetSpan(  
252 - child: GestureDetector(  
253 - onTap: () { 249 + TextSpan(
  250 + text: l10n.todayFaqContactPrefix,
  251 + style: TextStyle(
  252 + color: context.colors.textSecondary,
  253 + fontSize: 12,
  254 + fontWeight: FontWeight.w400,
  255 + ),
  256 + ),
  257 + TextSpan(
  258 + text: l10n.todayFaqContactAction,
  259 + recognizer: TapGestureRecognizer()
  260 + ..onTap = () {
254 Get.toNamed(Routes.SUBMIT_FEEDBACK); 261 Get.toNamed(Routes.SUBMIT_FEEDBACK);
255 }, 262 },
256 - child: Text(  
257 - l10n.todayFaqContactAction,  
258 - style: TextStyle(  
259 - fontSize: 12,  
260 - color: context.colors.primary,  
261 - fontWeight: FontWeight.w600,  
262 - decoration: TextDecoration.underline,  
263 - ),  
264 - ), 263 + style: TextStyle(
  264 + fontSize: 12,
  265 + color: context.colors.primary,
  266 + fontWeight: FontWeight.w400,
  267 + decoration: TextDecoration.underline,
265 ), 268 ),
266 ), 269 ),
267 TextSpan(text: l10n.todayFaqContactSuffix), 270 TextSpan(text: l10n.todayFaqContactSuffix),