fixed appearing things if other things are thinging

This commit is contained in:
Kima 2024-02-18 14:13:03 +01:00
parent 5eec61a7a9
commit 9b0beff9de

View File

@ -628,6 +628,10 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
// isSeparated: true, // isSeparated: true,
// children: [], // children: [],
// ), // ),
if (settingsProvider.renamedSubjectsEnabled ||
settingsProvider.renamedTeachersEnabled)
Column(
children: [
const SizedBox( const SizedBox(
height: 18.0, height: 18.0,
), ),
@ -683,7 +687,8 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
iconDisabledColor: AppColors.of(context).text, iconDisabledColor: AppColors.of(context).text,
underline: const SizedBox(), underline: const SizedBox(),
itemHeight: 40, itemHeight: 40,
itemPadding: const EdgeInsets.only(left: 14, right: 14), itemPadding:
const EdgeInsets.only(left: 14, right: 14),
buttonWidth: 50, buttonWidth: 50,
dropdownWidth: 300, dropdownWidth: 300,
dropdownPadding: null, dropdownPadding: null,
@ -703,14 +708,17 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
title: Text( title: Text(
"select_subject".i18n, "select_subject".i18n,
style: TextStyle( style: TextStyle(
color: color: AppColors.of(context)
AppColors.of(context).text.withOpacity(.95), .text
.withOpacity(.95),
), ),
), ),
leading: Icon( leading: Icon(
FeatherIcons.plus, FeatherIcons.plus,
size: 22.0, size: 22.0,
color: AppColors.of(context).text.withOpacity(.95), color: AppColors.of(context)
.text
.withOpacity(.95),
), ),
borderRadius: const BorderRadius.vertical( borderRadius: const BorderRadius.vertical(
top: Radius.circular(12.0), top: Radius.circular(12.0),
@ -722,6 +730,8 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
), ),
], ],
), ),
],
),
), ),
), ),
), ),