made live activity color only visible on ios

This commit is contained in:
Kima 2024-02-18 14:11:22 +01:00
parent 85f5c408c0
commit 5eec61a7a9

View File

@ -1,5 +1,7 @@
// ignore_for_file: use_build_context_synchronously // ignore_for_file: use_build_context_synchronously
import 'dart:io';
import 'package:dropdown_button2/dropdown_button2.dart'; import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:filcnaplo/api/providers/user_provider.dart'; import 'package:filcnaplo/api/providers/user_provider.dart';
import 'package:filcnaplo/helpers/subject.dart'; import 'package:filcnaplo/helpers/subject.dart';
@ -570,6 +572,7 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
], ],
), ),
// live activity color // live activity color
if (Platform.isIOS)
SplittedPanel( SplittedPanel(
padding: const EdgeInsets.only(top: 9.0), padding: const EdgeInsets.only(top: 9.0),
cardPadding: const EdgeInsets.all(4.0), cardPadding: const EdgeInsets.all(4.0),
@ -593,7 +596,8 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text( title: Text(
"live_activity_color".i18n, "live_activity_color".i18n,
style: TextStyle( style: TextStyle(
color: AppColors.of(context).text.withOpacity(.95), color:
AppColors.of(context).text.withOpacity(.95),
), ),
), ),
leading: Icon( leading: Icon(