From fbac4f73e9f048788a801b801965b3d56cf1964b Mon Sep 17 00:00:00 2001 From: Seunghyun Min Date: Wed, 16 Oct 2024 22:21:07 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EB=A1=9D=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=EC=97=90=EC=84=9C=20=EA=B3=BC=EB=AA=A9=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84=EC=9D=B4=20=EB=84=98=EC=B9=98=EB=8D=98=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edit_record/edit_record_page.dart | 75 ++++++++++--------- 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/lib/presentation/edit_record/edit_record_page.dart b/lib/presentation/edit_record/edit_record_page.dart index 5d532cb..fb28fac 100644 --- a/lib/presentation/edit_record/edit_record_page.dart +++ b/lib/presentation/edit_record/edit_record_page.dart @@ -302,45 +302,50 @@ class _EditRecordPageState extends State { 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, '점수',