Widget _dynamicParamsSection()

in ui/lib/modules/catalog/widgets/deploy_dialog.dart [328:354]


  Widget _dynamicParamsSection() {
    final asyncTemplateValue =
        ref.watch(templateByIdProvider(_template.id, _template.category));

    return asyncTemplateValue.when(
      data: (template) {
        return Column(
          children: [
            Container(
              child: _dynamicParamsForm(template),
            ),
            Divider(),
            _template.category == "application" ?
                CloudWorkstationWidget(onTextFormUpdate: _onTextFormUpdate)
                : Container(),
            _deployButton(template),
          ],
        );
      },
      loading: () => _buildLoading(),
      error: (err, st) => Center(
        child: Text(
          err.toString(),
        ),
      ),
    );
  }