nmGetAmountDialog function
Implementation
Future<String> nmGetAmountDialog (String title, String message, )async {
TextEditingController inputData = TextEditingController();
inputData.text= '0';
String result='';
await Get.dialog(
// >>> generated by Claude Code, 2026-10-13: strings from NmDialogOptions.strings (app locale, Russian without NmL10n.delegate); SDD: flows/sdd-widgets-handmade
nmLocalizedDialog((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(
width: (kIsWeb?nmSwd:Get.width) *0.8,
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children:[
Padding(
padding: const EdgeInsets.fromLTRB(20, (20), 20, 0),
child: Column(
children: [
// _getImage(),
const SizedBox( height: 15, ),
Text(
title,
style: const TextStyle(
color: Colors.black,
fontWeight: FontWeight.w500,
fontStyle: FontStyle.normal,
fontSize: 22.0),
textAlign: TextAlign.center,
),
const SizedBox( height: 10, ),
Text(
message,
style: const TextStyle(
color: Colors.black,
fontWeight: FontWeight.w400,
fontStyle: FontStyle.normal,
fontSize: 18.0),
textAlign: TextAlign.center,
),
const SizedBox( height: 10, ),
TextFormField(
controller: inputData,
keyboardType: TextInputType.number,
)
],
),
)
],
),
),
),
contentPadding: const EdgeInsets.all(20.0),
content: Container(
child: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
Expanded(
child: NmDialogGreenButton(
() {
Get.closeOverlay();
result=inputData.text;
},
// >>> generated by Claude Code, 2026-10-13: localized button (ru «Готово»); SDD: flows/sdd-widgets-handmade
// was: "Готово",
s.dialogDone,
// <<< generated
),
),
]),
),
),
// >>> generated by Claude Code, 2026-10-13: closes nmLocalizedDialog; SDD: flows/sdd-widgets-handmade
),
// <<< generated
// transitionCurve: Curves.elasticIn,
);
return result;
}