You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new Project with 'stacked create app _my_app'.
After that there is a stacked.json in the root folder. I changed the "locator_name": "sl" and
used 'stacked generate'.
Script is running and after that...nothing changed. The name of locator is 'locator'. Am i missing something?
-second try-
renaming the locator in app.locator.dart to 'sl'.
==> final sl = StackedLocator.instance;
Application runs. Everything ok.
But after running 'stacked generate' in terminal app.locator.dart recreated with the default name 'locator'
==> final locator = StackedLocator.instance;
To reproduce
create an app: stacked create app _my_app
cd app_my_app
open .
searching for stacked.json in root
renaming "locator_name": "locator" to "locator_name": "sl"
saving file
goto terminal
run 'stacked generate'
locator name is still the default name
Expected behavior
Expectation is to have a new generated app.locator.dart file containing this line of code.
final sl = StackedLocator.instance;
Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I created a new Project with 'stacked create app _my_app'.
After that there is a stacked.json in the root folder. I changed the "locator_name": "sl" and
used 'stacked generate'.
Script is running and after that...nothing changed. The name of locator is 'locator'. Am i missing something?
-second try-
renaming the locator in app.locator.dart to 'sl'.
==> final sl = StackedLocator.instance;
Application runs. Everything ok.
But after running 'stacked generate' in terminal app.locator.dart recreated with the default name 'locator'
==> final locator = StackedLocator.instance;
To reproduce
Expected behavior
Expectation is to have a new generated app.locator.dart file containing this line of code.
final sl = StackedLocator.instance;
Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: