|
|
@@ -8,6 +8,7 @@ import 'package:nomo/config/theme/theme_extensions/theme_extension.dart';
|
|
|
import 'package:pull_to_refresh_flutter3/pull_to_refresh_flutter3.dart';
|
|
|
|
|
|
import '../../../../config/translations/strings_enum.dart';
|
|
|
+import '../../../../utils/misc.dart';
|
|
|
import '../../../constants/iconfont/iconfont.dart';
|
|
|
import '../../../controllers/api_controller.dart';
|
|
|
import '../../../data/models/launch/groups.dart';
|
|
|
@@ -110,13 +111,20 @@ class _NodeListState extends State<NodeList>
|
|
|
SliverStickyHeader(
|
|
|
header: Container(
|
|
|
color: Get.reactiveTheme.scaffoldBackgroundColor,
|
|
|
- padding: const EdgeInsets.all(16),
|
|
|
+ padding: isDesktop
|
|
|
+ ? const EdgeInsets.symmetric(
|
|
|
+ horizontal: 16.0,
|
|
|
+ vertical: 8.0,
|
|
|
+ )
|
|
|
+ : const EdgeInsets.all(16),
|
|
|
child: Text(
|
|
|
tag.name ?? '',
|
|
|
style: TextStyle(
|
|
|
color: Get.reactiveTheme.hintColor,
|
|
|
- fontSize: 16,
|
|
|
- fontWeight: FontWeight.bold,
|
|
|
+ fontSize: isDesktop ? 14 : 16,
|
|
|
+ fontWeight: isDesktop
|
|
|
+ ? FontWeight.normal
|
|
|
+ : FontWeight.bold,
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
@@ -201,14 +209,22 @@ class _CountrySection extends StatelessWidget {
|
|
|
10.horizontalSpace,
|
|
|
Text(
|
|
|
countryName,
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 16.sp,
|
|
|
- height: 1.5,
|
|
|
- fontWeight: FontWeight.w500,
|
|
|
- color: hasSelectedLocation
|
|
|
- ? Get.reactiveTheme.primaryColor
|
|
|
- : Get.reactiveTheme.textTheme.bodyLarge!.color,
|
|
|
- ),
|
|
|
+ style: isDesktop
|
|
|
+ ? TextStyle(
|
|
|
+ fontSize: 14.sp,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
+ color: hasSelectedLocation
|
|
|
+ ? Get.reactiveTheme.primaryColor
|
|
|
+ : Get.reactiveTheme.textTheme.bodyLarge!.color,
|
|
|
+ )
|
|
|
+ : TextStyle(
|
|
|
+ fontSize: 16.sp,
|
|
|
+ height: 1.5,
|
|
|
+ fontWeight: FontWeight.w500,
|
|
|
+ color: hasSelectedLocation
|
|
|
+ ? Get.reactiveTheme.primaryColor
|
|
|
+ : Get.reactiveTheme.textTheme.bodyLarge!.color,
|
|
|
+ ),
|
|
|
),
|
|
|
const Spacer(),
|
|
|
// 箭头图标
|