Skip to content

Commit

Permalink
Fix edit self added course screen
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonC01 committed Aug 2, 2024
1 parent 7247905 commit 696ecd1
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions mingle/lib/timetable/view/edit_self_added_course_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class _EditSelfAddedCourseScreenState
List<String> endTimes = [];
String moduleCode = "";
String location = "";
String subclass = "";
String profName = "";
late FToast fToast;
bool isLoading = false;
Expand Down Expand Up @@ -156,6 +157,7 @@ class _EditSelfAddedCourseScreenState
courseCode: moduleCode,
venue: location,
professor: profName,
subclass: subclass,
memo: ""));
ref.read(pinnedTimetableProvider.notifier).fetchPinnedTimetable();
await widget.refreshClasses();
Expand Down Expand Up @@ -554,6 +556,64 @@ class _EditSelfAddedCourseScreenState
const SizedBox(
height: 24.0,
),
const Row(
children: [
Text(
'분반',
style: TextStyle(
color: Colors.black,
fontSize: 14.0,
letterSpacing: -0.01,
height: 1.4,
fontWeight: FontWeight.w500,
),
),
],
),
const SizedBox(
height: 8.0,
),
Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8.0),
),
child: TextField(
onChanged: (value) {
setState(() {
subclass = value;
});
},
decoration: InputDecoration(
hintText: "분반을 입력하세요",
hintStyle: const TextStyle(
color: GRAYSCALE_GRAY_03,
fontSize: 16.0,
letterSpacing: -0.02,
height: 1.5,
fontWeight: FontWeight.w400,
),
labelStyle: const TextStyle(
color: Colors.black,
),
contentPadding: const EdgeInsets.symmetric(
horizontal: 12.0,
vertical: 14.0,
),
enabledBorder: OutlineInputBorder(
borderSide: const BorderSide(color: GRAYSCALE_GRAY_02),
borderRadius: BorderRadius.circular(8.0),
),
focusedBorder: OutlineInputBorder(
borderSide: const BorderSide(color: GRAYSCALE_GRAY_02),
borderRadius: BorderRadius.circular(8.0),
),
),
),
),
const SizedBox(
height: 24.0,
),
const Row(
children: [
Text(
Expand Down

0 comments on commit 696ecd1

Please sign in to comment.