Closed pieterbergmans closed 1 month ago
Sorry, I just read the message // GENERATED CODE - DO NOT MODIFY BY HAND
at the top of the app.dialogs.dart page. However, I’d still like help explaining how to create a custom dialog.
Just figured it out. I needed to add the following to app.dart:
dialogs: [
StackedDialog(classType: InfoAlertDialog),
StackedDialog(classType: LanguagesDialog)
// @stacked-dialog
],
@pieterbergmans So this can be closed, right?
@sebastianbuechler - yes, it can.
Describe the bug
Hi,
I’m trying to add a custom dialog called languages. But after I run
stacked generate
, the code disappears. Is that the intent or am I doing something wrong. The same thing happens with bottomSheets.My new dialog service…
After running
stacked generate
…What operating system do you use?
macOS
Information about the installed tooling
Steps to reproduce the issue
stacked generate
Expected behavior
I would have expected that the app.diaglogs.dart file to maintain the new custom dialog information.
Screenshots
No response
Additional Context
No response