|
@@ -10,7 +10,6 @@ import ui.ConfirmAction
|
|
|
import ui.PageCreateDialog
|
|
import ui.PageCreateDialog
|
|
|
import util.*
|
|
import util.*
|
|
|
|
|
|
|
|
-
|
|
|
|
|
class PageCreateAction : AnAction() {
|
|
class PageCreateAction : AnAction() {
|
|
|
override fun actionPerformed(e: AnActionEvent) {
|
|
override fun actionPerformed(e: AnActionEvent) {
|
|
|
val project = e.getData(PlatformDataKeys.PROJECT)!!
|
|
val project = e.getData(PlatformDataKeys.PROJECT)!!
|
|
@@ -46,7 +45,7 @@ class PageCreateAction : AnAction() {
|
|
|
project,
|
|
project,
|
|
|
selectFullPath,
|
|
selectFullPath,
|
|
|
"${CodeUtil.toFileName(pageName)}_page.dart",
|
|
"${CodeUtil.toFileName(pageName)}_page.dart",
|
|
|
- CodeTemplate.getStatefulRouter(
|
|
|
|
|
|
|
+ CodeTemplate.getPageRouter(
|
|
|
stateful,
|
|
stateful,
|
|
|
pageName,
|
|
pageName,
|
|
|
if (router) CodeUtil.toCamelCase(pageName) else null,
|
|
if (router) CodeUtil.toCamelCase(pageName) else null,
|