controlKinds property
Implementation
static final controlKinds = [
AFUIControlSettings(
kind: AFUIControlKind.screen,
suffix: screenSuffix,
path: AFCodeGenerator.screensPath,
implBuildWithSPI: SnippetScreenBuildWithSPIImplT.core(),
implBuildBody: SnippetEmptyScreenBuildBodyImplT(),
implsSPI: AFSourceTemplate.empty,
implsSuper: SnippetScreenImplsSuperT(),
paramsConstructor: SnippetScreenParamsConstructorT.core(),
routeParamImpls: SnippetStandardRouteParamT.core(),
navigatePush: SnippetNavigatePushT.core(),
spi: SnippetDeclareSPIT.core(),
stateTestShortcut: SnippetStateTestScreenShortcutT(),
createPrototype: SnippetCreateScreenPrototypeT.noPushParams(),
screenAdditionalMethods: SnippetScreenAdditionalMethodsT(),
extraConfigParams: AFSourceTemplate.empty,
smokeTestImpl: SnippetSmokeTestImplT(),
),
AFUIControlSettings(
kind: AFUIControlKind.bottomSheet,
suffix: bottomSheetSuffix,
path: AFCodeGenerator.bottomSheetsPath,
implBuildWithSPI: SnippetNoScaffoldBuildWithSPIImplT(),
implBuildBody: SnippetBottomSheetBuildBodyT(),
implsSPI: SnippetSPIOnPressedCloseImplT(),
implsSuper: SnippetScreenImplsSuperT(),
paramsConstructor: SnippetScreenParamsConstructorT.core(),
routeParamImpls: SnippetStandardRouteParamT.core(),
navigatePush: SnippetNavigatePushT.core(),
spi: SnippetDeclareSPIT.core(),
stateTestShortcut: SnippetStateTestScreenShortcutT(),
createPrototype: SnippetCreateScreenPrototypeT.noPushParams(),
screenAdditionalMethods: SnippetScreenAdditionalMethodsT(),
extraConfigParams: AFSourceTemplate.empty,
smokeTestImpl: SnippetSmokeTestImplRequireCloseT()
),
AFUIControlSettings(
kind: AFUIControlKind.drawer,
suffix: drawerSuffix,
path: AFCodeGenerator.drawersPath,
implBuildWithSPI: SnippetNoScaffoldBuildWithSPIImplT(),
implBuildBody: SnippetDrawerBuildBodyT(),
implsSPI: SnippetSPIOnTapCloseT(),
implsSuper: SnippetScreenImplsSuperT(),
paramsConstructor: SnippetScreenParamsConstructorT.core(),
routeParamImpls: SnippetStandardRouteParamT.core(),
navigatePush: SnippetNavigatePushT.core(),
spi: SnippetDeclareSPIT.core(),
stateTestShortcut: SnippetStateTestScreenShortcutT(),
createPrototype: SnippetCreateScreenPrototypeT.noPushParams(),
screenAdditionalMethods: SnippetScreenAdditionalMethodsT(),
extraConfigParams: const SnippetDrawerExtraConfigParamsT(),
smokeTestImpl: SnippetSmokeTestImplRequireCloseT()
),
AFUIControlSettings(
kind: AFUIControlKind.dialog,
suffix: dialogSuffix,
path: AFCodeGenerator.dialogsPath,
implBuildWithSPI: SnippetNoScaffoldBuildWithSPIImplT(),
implBuildBody: SnippetDialogBuildBodyT(),
implsSPI: SnippetSPIOnPressedCloseImplT(),
implsSuper: SnippetScreenImplsSuperT(),
paramsConstructor: SnippetScreenParamsConstructorT.core(),
routeParamImpls: SnippetStandardRouteParamT.core(),
navigatePush: SnippetNavigatePushT.core(),
spi: SnippetDeclareSPIT.core(),
stateTestShortcut: SnippetStateTestScreenShortcutT(),
createPrototype: SnippetCreateScreenPrototypeT.noPushParams(),
screenAdditionalMethods: SnippetScreenAdditionalMethodsT(),
extraConfigParams: AFSourceTemplate.empty,
smokeTestImpl: SnippetSmokeTestImplRequireCloseT()
),
controlSettingsWidget,
];