Skip to content

Commit

Permalink
fix: add async to selling api
Browse files Browse the repository at this point in the history
  • Loading branch information
boroboro01 committed Oct 16, 2024
1 parent 6976a9b commit 88a9a36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/screens/selling/flaw_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class _FlawScreenState extends State<FlawScreen> {
title: '제출할게요',
bgColor: black,
txtColor: white,
onTap: () {
onTap: () async {
List<File> imageFiles = imageProvider.images
.map((xfile) => File(xfile.path))
.toList();
Expand All @@ -173,7 +173,8 @@ class _FlawScreenState extends State<FlawScreen> {
"isRepaired": controllers[5].text, // 수리 여부
}
};
final statecode = createSellingItem(imageFiles, requestObject);
final statecode =
await createSellingItem(imageFiles, requestObject);
if (statecode == 200) {
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (context) => const EndSellingScreen(),
Expand Down

0 comments on commit 88a9a36

Please sign in to comment.