Skip to content

Commit

Permalink
M3-168 Feat : 컨트롤러 변수 언더바 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdals802 committed Jul 19, 2024
1 parent ae4c5d7 commit cfa5914
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/screens/user_info_update_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class UserInfoUpdateScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final UserInfoController controller = Get.put(UserInfoController());
final TextEditingController _controller = TextEditingController();
final TextEditingController textController = TextEditingController();
final RegExp regExp = RegExp(r'^[A-Za-z가-힣0-9]{3,10}$');
const int lowBoundYear = 1900;
const int upperBoundYear = 2024;
Expand All @@ -35,7 +35,7 @@ class UserInfoUpdateScreen extends StatelessWidget {
child: CircularProgressIndicator(),
);
}
_controller.text = controller.nickname.value;
textController.text = controller.nickname.value;
return Column(
children: [
Obx(
Expand Down Expand Up @@ -95,7 +95,7 @@ class UserInfoUpdateScreen extends StatelessWidget {
Container(
color: Color(0xffD9D9D9),
child: TextField(
controller: _controller,
controller: textController,
decoration: InputDecoration(
border: InputBorder.none,
contentPadding: EdgeInsets.symmetric(
Expand Down

0 comments on commit cfa5914

Please sign in to comment.