Update Saqel Platform: 2026-09-08 17:51:07
This commit is contained in:
@@ -23,7 +23,7 @@ class _AuthScreenState extends State<AuthScreen> {
|
||||
final TextEditingController _fullNameController = TextEditingController();
|
||||
|
||||
String _selectedRole = 'student';
|
||||
final String _selectedGrade = 'tawjihi_2008';
|
||||
String _selectedGrade = 'grade_10';
|
||||
String _selectedStream = 'scientific';
|
||||
|
||||
@override
|
||||
@@ -440,7 +440,30 @@ class _AuthScreenState extends State<AuthScreen> {
|
||||
),
|
||||
const SizedBox(height: 18),
|
||||
|
||||
// Stream Selector (العلمي / الأدبي)
|
||||
Text(
|
||||
'الصف الدراسي',
|
||||
style: AppTypography.titleMedium.copyWith(color: AppColors.textSecondaryDark, fontSize: 13),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Wrap(
|
||||
spacing: 8,
|
||||
children: [
|
||||
('grade_10', 'الصف العاشر'),
|
||||
('grade_11', 'الأول ثانوي'),
|
||||
('grade_12', 'الثاني ثانوي'),
|
||||
].map((grade) => ChoiceChip(
|
||||
label: Text(grade.$2),
|
||||
selected: _selectedGrade == grade.$1,
|
||||
onSelected: isLoading ? null : (_) => setState(() {
|
||||
_selectedGrade = grade.$1;
|
||||
if (_selectedGrade == 'grade_10') _selectedStream = 'general';
|
||||
}),
|
||||
)).toList(),
|
||||
),
|
||||
const SizedBox(height: 18),
|
||||
|
||||
// Stream Selector (only secondary grades have a stream)
|
||||
if (_selectedGrade != 'grade_10') ...[
|
||||
Text(
|
||||
'الفرع الأكاديمي',
|
||||
style: AppTypography.titleMedium.copyWith(color: AppColors.textSecondaryDark, fontSize: 13),
|
||||
@@ -501,6 +524,7 @@ class _AuthScreenState extends State<AuthScreen> {
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
const SizedBox(height: 24),
|
||||
|
||||
LuxuryButton(
|
||||
|
||||
Reference in New Issue
Block a user