Skip to content

Commit

Permalink
fix: causing duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed May 21, 2024
1 parent f6a526d commit 8023451
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
5 changes: 1 addition & 4 deletions evently/lib/screens/detail_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,7 @@ class _DetailsScreenState extends State<DetailsScreen> {
const VerticalSpace(80),
BottomButtons(
onPressContinue: () {
provider.saveAsDraft(
onCompleted: () => {},
uploadStep: UploadStep.price,
);

createEventViewModel.nextPage();
},
onPressSaveDraft: () {
Expand Down
4 changes: 0 additions & 4 deletions evently/lib/screens/overview_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ class _OverViewScreenState extends State<OverViewScreen> {
const VerticalSpace(80),
BottomButtons(
onPressContinue: () {
provider.saveAsDraft(
onCompleted: () => {},
uploadStep: UploadStep.overView,
);
createEventViewModel.nextPage();
},
onPressSaveDraft: () {
Expand Down
5 changes: 1 addition & 4 deletions evently/lib/screens/perks_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ class _PerksScreenState extends State<PerksScreen> {
padding: const EdgeInsets.symmetric(horizontal: 20),
child: BottomButtons(
onPressContinue: () {
provider.saveAsDraft(
onCompleted: () => {},
uploadStep: UploadStep.perks,
);

createEventViewModel.nextPage();
},
onPressSaveDraft: () {
Expand Down
5 changes: 1 addition & 4 deletions evently/lib/screens/price_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,7 @@ class _PriceScreenState extends State<PriceScreen> {
padding: EdgeInsets.symmetric(horizontal: 20.w),
child: BottomButtons(
onPressContinue: () {
provider.saveAsDraft(
onCompleted: () => {},
uploadStep: UploadStep.price,
);

homeViewModel.nextPage();
},
onPressSaveDraft: () {
Expand Down

0 comments on commit 8023451

Please sign in to comment.