nmAttentionDialog function

dynamic nmAttentionDialog(
  1. String text
)

Implementation

nmAttentionDialog(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,
                    ),
                    // Text(
                    //   "Внимание",
                    //   style: TextStyle(
                    //       color: Colors.black,
                    //       fontWeight: FontWeight.w500,
                    //       fontStyle: FontStyle.normal,
                    //       fontSize: 22.0),
                    //   textAlign: TextAlign.center,
                    // ),
                    // 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(
            child:
            // >>> generated by Claude Code, 2026-10-13: localized button (ru «Закрыть»); SDD: flows/sdd-widgets-handmade
            // was:             NmDialogGreenButton ( () => Get.closeAllDialogs(), "Закрыть"),
            NmDialogGreenButton ( () => Get.closeAllDialogs(), s.dialogClose),
            // <<< generated

          ),
        ]),
      ),
    ),
    // >>> generated by Claude Code, 2026-10-13: closes nmLocalizedDialog; SDD: flows/sdd-widgets-handmade
    ),
    // <<< generated
   // transitionCurve: Curves.elasticIn,
  );
}