forked from firka/student-legacy
fixed appearing things if other things are thinging
This commit is contained in:
parent
5eec61a7a9
commit
9b0beff9de
@ -628,98 +628,108 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
|
|||||||
// isSeparated: true,
|
// isSeparated: true,
|
||||||
// children: [],
|
// children: [],
|
||||||
// ),
|
// ),
|
||||||
const SizedBox(
|
if (settingsProvider.renamedSubjectsEnabled ||
|
||||||
height: 18.0,
|
settingsProvider.renamedTeachersEnabled)
|
||||||
),
|
Column(
|
||||||
SplittedPanel(
|
children: [
|
||||||
title: Text('subjects'.i18n),
|
const SizedBox(
|
||||||
padding: EdgeInsets.zero,
|
height: 18.0,
|
||||||
cardPadding: const EdgeInsets.all(4.0),
|
),
|
||||||
children: tiles,
|
SplittedPanel(
|
||||||
),
|
title: Text('subjects'.i18n),
|
||||||
const SizedBox(
|
padding: EdgeInsets.zero,
|
||||||
height: 9.0,
|
cardPadding: const EdgeInsets.all(4.0),
|
||||||
),
|
children: tiles,
|
||||||
SplittedPanel(
|
),
|
||||||
padding: EdgeInsets.zero,
|
const SizedBox(
|
||||||
cardPadding: const EdgeInsets.all(3.0),
|
height: 9.0,
|
||||||
hasBorder: true,
|
),
|
||||||
isTransparent: true,
|
SplittedPanel(
|
||||||
children: [
|
padding: EdgeInsets.zero,
|
||||||
DropdownButton2(
|
cardPadding: const EdgeInsets.all(3.0),
|
||||||
items: otherShit
|
hasBorder: true,
|
||||||
.map((item) => DropdownMenuItem<String>(
|
isTransparent: true,
|
||||||
value: item.subject.id,
|
children: [
|
||||||
child: Text(
|
DropdownButton2(
|
||||||
item.subject.name,
|
items: otherShit
|
||||||
style: TextStyle(
|
.map((item) => DropdownMenuItem<String>(
|
||||||
fontSize: 14,
|
value: item.subject.id,
|
||||||
fontWeight: FontWeight.bold,
|
child: Text(
|
||||||
color: AppColors.of(context).text,
|
item.subject.name,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 14,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
color: AppColors.of(context).text,
|
||||||
|
),
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
))
|
||||||
|
.toList(),
|
||||||
|
onChanged: (String? v) async {
|
||||||
|
Navigator.of(context, rootNavigator: true).push(
|
||||||
|
CupertinoPageRoute(
|
||||||
|
builder: (context) => EditSubjectScreen(
|
||||||
|
subject: otherShit
|
||||||
|
.firstWhere((e) => e.subject.id == v)
|
||||||
|
.subject,
|
||||||
|
teacher: otherShit
|
||||||
|
.firstWhere((e) => e.subject.id == v)
|
||||||
|
.teacher,
|
||||||
),
|
),
|
||||||
overflow: TextOverflow.ellipsis,
|
|
||||||
),
|
),
|
||||||
))
|
);
|
||||||
.toList(),
|
|
||||||
onChanged: (String? v) async {
|
setState(() {});
|
||||||
Navigator.of(context, rootNavigator: true).push(
|
// _subjectName.text = "";
|
||||||
CupertinoPageRoute(
|
},
|
||||||
builder: (context) => EditSubjectScreen(
|
iconSize: 14,
|
||||||
subject: otherShit
|
iconEnabledColor: AppColors.of(context).text,
|
||||||
.firstWhere((e) => e.subject.id == v)
|
iconDisabledColor: AppColors.of(context).text,
|
||||||
.subject,
|
underline: const SizedBox(),
|
||||||
teacher: otherShit
|
itemHeight: 40,
|
||||||
.firstWhere((e) => e.subject.id == v)
|
itemPadding:
|
||||||
.teacher,
|
const EdgeInsets.only(left: 14, right: 14),
|
||||||
|
buttonWidth: 50,
|
||||||
|
dropdownWidth: 300,
|
||||||
|
dropdownPadding: null,
|
||||||
|
buttonDecoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.circular(12.0),
|
||||||
|
),
|
||||||
|
dropdownDecoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.circular(14),
|
||||||
|
),
|
||||||
|
dropdownElevation: 8,
|
||||||
|
scrollbarRadius: const Radius.circular(40),
|
||||||
|
scrollbarThickness: 6,
|
||||||
|
scrollbarAlwaysShow: true,
|
||||||
|
offset: const Offset(-10, -10),
|
||||||
|
buttonSplashColor: Colors.transparent,
|
||||||
|
customButton: PanelButton(
|
||||||
|
title: Text(
|
||||||
|
"select_subject".i18n,
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.of(context)
|
||||||
|
.text
|
||||||
|
.withOpacity(.95),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
leading: Icon(
|
||||||
|
FeatherIcons.plus,
|
||||||
|
size: 22.0,
|
||||||
|
color: AppColors.of(context)
|
||||||
|
.text
|
||||||
|
.withOpacity(.95),
|
||||||
|
),
|
||||||
|
borderRadius: const BorderRadius.vertical(
|
||||||
|
top: Radius.circular(12.0),
|
||||||
|
bottom: Radius.circular(12.0),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
],
|
||||||
|
|
||||||
setState(() {});
|
|
||||||
// _subjectName.text = "";
|
|
||||||
},
|
|
||||||
iconSize: 14,
|
|
||||||
iconEnabledColor: AppColors.of(context).text,
|
|
||||||
iconDisabledColor: AppColors.of(context).text,
|
|
||||||
underline: const SizedBox(),
|
|
||||||
itemHeight: 40,
|
|
||||||
itemPadding: const EdgeInsets.only(left: 14, right: 14),
|
|
||||||
buttonWidth: 50,
|
|
||||||
dropdownWidth: 300,
|
|
||||||
dropdownPadding: null,
|
|
||||||
buttonDecoration: BoxDecoration(
|
|
||||||
borderRadius: BorderRadius.circular(12.0),
|
|
||||||
),
|
),
|
||||||
dropdownDecoration: BoxDecoration(
|
],
|
||||||
borderRadius: BorderRadius.circular(14),
|
),
|
||||||
),
|
|
||||||
dropdownElevation: 8,
|
|
||||||
scrollbarRadius: const Radius.circular(40),
|
|
||||||
scrollbarThickness: 6,
|
|
||||||
scrollbarAlwaysShow: true,
|
|
||||||
offset: const Offset(-10, -10),
|
|
||||||
buttonSplashColor: Colors.transparent,
|
|
||||||
customButton: PanelButton(
|
|
||||||
title: Text(
|
|
||||||
"select_subject".i18n,
|
|
||||||
style: TextStyle(
|
|
||||||
color:
|
|
||||||
AppColors.of(context).text.withOpacity(.95),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
leading: Icon(
|
|
||||||
FeatherIcons.plus,
|
|
||||||
size: 22.0,
|
|
||||||
color: AppColors.of(context).text.withOpacity(.95),
|
|
||||||
),
|
|
||||||
borderRadius: const BorderRadius.vertical(
|
|
||||||
top: Radius.circular(12.0),
|
|
||||||
bottom: Radius.circular(12.0),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user