Skip to content

Commit

Permalink
기록 페이지에서 과목 이름이 넘치던 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
MinSeungHyun committed Oct 16, 2024
1 parent 45978ba commit fbac4f7
Showing 1 changed file with 40 additions and 35 deletions.
75 changes: 40 additions & 35 deletions lib/presentation/edit_record/edit_record_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -302,45 +302,50 @@ class _EditRecordPageState extends State<EditRecordPage> {
const SizedBox(height: 12),
_buildDivider(),
const SizedBox(height: 12),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildSubTitle('과목'),
const SizedBox(height: 6),
Container(
height: 36,
padding: const EdgeInsets.symmetric(
horizontal: 10,
vertical: 3,
),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(6),
border: Border.all(
color: Colors.grey.shade300,
width: 0.5,
),
),
child: DropdownButtonHideUnderline(
child: DropdownButton(
isExpanded: true,
borderRadius: BorderRadius.circular(6),
value: _selectedExam,
onChanged: _onSelectedExamChanged,
items: _exams.map((exam) {
return DropdownMenuItem(
value: exam,
child: Text(
exam.name,
overflow: TextOverflow.ellipsis,
),
);
}).toList(),
),
),
),
],
),
const SizedBox(height: 12),
Wrap(
spacing: 20,
runSpacing: 12,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
_buildSubTitle('과목'),
const SizedBox(height: 6),
Container(
height: 36,
padding: const EdgeInsets.symmetric(
horizontal: 10,
vertical: 3,
),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(6),
border: Border.all(
color: Colors.grey.shade300,
width: 0.5,
),
),
child: DropdownButtonHideUnderline(
child: DropdownButton(
borderRadius: BorderRadius.circular(6),
value: _selectedExam,
onChanged: _onSelectedExamChanged,
items: _exams.map((exam) {
return DropdownMenuItem(
value: exam,
child: Text(exam.name),
);
}).toList(),
),
),
),
],
),
_buildNumberInputWithTitle(
_scoreEditingController,
'점수',
Expand Down

0 comments on commit fbac4f7

Please sign in to comment.