diff --git a/lib/screens/selling/end_selling_screen.dart b/lib/screens/selling/end_selling_screen.dart index f6c5b50..50a61b2 100644 --- a/lib/screens/selling/end_selling_screen.dart +++ b/lib/screens/selling/end_selling_screen.dart @@ -41,7 +41,7 @@ class _EndSellingScreenState extends State { textAlign: TextAlign.center, ), const Text( - '기기 수거를 위한 절차를 확인해볼까요?', + '기기 접수가 완료되면 알려드릴게요!', style: TextStyle( fontFamily: 'Pretendard', fontSize: 20.0, diff --git a/lib/screens/selling/flaw_screen.dart b/lib/screens/selling/flaw_screen.dart index 7e0c4c7..7f368a6 100644 --- a/lib/screens/selling/flaw_screen.dart +++ b/lib/screens/selling/flaw_screen.dart @@ -5,6 +5,7 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:logger/logger.dart'; import 'package:provider/provider.dart'; import 'package:saphy/provider/image_provider.dart'; +import 'package:saphy/screens/selling/end_selling_screen.dart'; import 'package:saphy/service/selling_service.dart'; import 'package:saphy/utils/colors.dart'; import 'package:saphy/widgets/normal_button.dart'; @@ -172,7 +173,12 @@ class _FlawScreenState extends State { "isRepaired": controllers[5].text, // 수리 여부 } }; - createSellingItem(imageFiles, requestObject); + final statecode = createSellingItem(imageFiles, requestObject); + if (statecode == 200) { + Navigator.of(context).pushReplacement(MaterialPageRoute( + builder: (context) => const EndSellingScreen(), + )); + } }, flag: true, ),