nmSuccessDialog function

dynamic nmSuccessDialog(
  1. String text
)

Implementation

nmSuccessDialog(String text) {

  Get.dialog(
    // >>> generated by Claude Code, 2026-10-13: strings from NmDialogOptions.strings (app locale, Russian without NmL10n.delegate), Enter = main button when NmDialogOptions.enterSubmits; SDD: flows/sdd-widgets-handmade
    nmLocalizedDialog(onEnter: () => Get.closeOverlay(), (s) =>
    // <<< generated
    AlertDialog(
      // >>> generated by Claude Code, 2026-10-13: app-wide dialog shape (NmDialogOptions.shape, default = nmDefaultShape()); SDD: flows/sdd-widgets-handmade
      // was:       shape: nmDefaultShape(),
      shape: NmDialogOptions.shape?.call() ?? nmDefaultShape(),
      // <<< generated
      titlePadding: const EdgeInsets.all(0.0),
      title: Container(
        child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Padding(
                padding: const EdgeInsets.fromLTRB(20, (20), 20, 0),
                child: Column(
                  children: [
                    // _getImage(),
                    const SizedBox(
                      height: 15,
                    ),
                    // >>> generated by Claude Code, 2026-10-13: localized title (ru «Успешно»); SDD: flows/sdd-widgets-handmade
                    // was:                     const Text(
                    // was:                       "Успешно",
                    Text(
                      s.dialogSuccessTitle,
                    // <<< generated
                      style: TextStyle(
                          color: Colors.black,
                          fontWeight: FontWeight.w500,
                          fontStyle: FontStyle.normal,
                          fontSize: 22.0),
                      textAlign: TextAlign.center,
                    ),
                    const SizedBox(
                      height: 10,
                    ),
                    Text(
                      text,
                      style: const TextStyle(
                          color: Colors.black,
                          fontWeight: FontWeight.w400,
                          fontStyle: FontStyle.normal,
                          fontSize: 18.0),
                      textAlign: TextAlign.center,
                    ),
                  ],
                ),
              )
            ],
          ),
        ),
      ),
      contentPadding: const EdgeInsets.all(20.0),
      content: Container(
        child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
          Expanded(
            // >>> generated by Claude Code, 2026-10-13: localized button (ru «Закрыть»); SDD: flows/sdd-widgets-handmade
            // was:             child: NmDialogGreenButton (()=>Get.closeOverlay(), 'Закрыть'),
            child: NmDialogGreenButton (()=>Get.closeOverlay(), s.dialogClose),
            // <<< generated
          ),
        ]),
      ),
    ),
    // >>> generated by Claude Code, 2026-10-13: closes nmLocalizedDialog; SDD: flows/sdd-widgets-handmade
    ),
    // <<< generated
   // transitionCurve: Curves.elasticIn,
  );
}