Skip to content

Commit

Permalink
M3-204 Feat : dart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdals802 committed Jul 25, 2024
1 parent 9c39a86 commit 0b9fe98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/controllers/user_info_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class UserInfoController extends GetxController {
checkGender();
isUserInfoInit.value = true;
initTextFocusNode();
print('initinit');
update();
}

Expand Down
5 changes: 2 additions & 3 deletions lib/widgets/user_modify/birth_year_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,24 @@ import '../../controllers/user_info_controller.dart';
class BirthYearPicker extends StatelessWidget {
final int checkVersion;
late final dynamic controller;
late final int selectedNumber;

BirthYearPicker({super.key, required this.checkVersion}){
if(checkVersion==0){
controller = Get.find<UserInfoController>();
}else{
controller = Get.find<SignUpController>();
}
selectedNumber = controller.birthYear.value;
}

int selectedNumber = 0;

@override
Widget build(BuildContext context) {
final List<int> yearOptions =
List.generate(2024 - 1900 + 1, (index) => 1900 + index);
final FixedExtentScrollController fixedExtentScrollController = FixedExtentScrollController(
initialItem: controller.birthYear.value - 1900,
);
selectedNumber = controller.birthYear.value;
return SizedBox(
width: 600,
child: Padding(
Expand Down

0 comments on commit 0b9fe98

Please sign in to comment.