-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from 2024-Saphy/feat/integrate-selling-api
[FEAT] selling screen
- Loading branch information
Showing
17 changed files
with
779 additions
and
214 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:image_picker/image_picker.dart'; | ||
|
||
class ImageProviderModel with ChangeNotifier { | ||
final List<XFile> _images = []; | ||
|
||
List<XFile> get images => _images; | ||
|
||
Future<void> addImage(XFile image) async { | ||
_images.add(image); | ||
notifyListeners(); // 상태가 변경되었음을 알림 | ||
} | ||
|
||
void removeImage(int index) { | ||
_images.removeAt(index); | ||
notifyListeners(); | ||
} | ||
|
||
void clearImages() { | ||
_images.clear(); | ||
notifyListeners(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.