feat(quick-add): save & add another for rapid manual entry
The quick-add sheet no longer closes on every save: a new 'Save & add another' action saves the seed, clears the form (keeping the chosen lot type), refocuses the name field and shows an 'N added' running count, so a whole shelf can be entered without reopening the sheet each time. Plain Save still closes it. Adds a dedicated label field with its own controller, submitAndAddAnother() on the cubit, and cubit + widget tests.
This commit is contained in:
parent
89b61bc9e4
commit
d3711e39b0
9 changed files with 240 additions and 18 deletions
|
|
@ -238,6 +238,8 @@ class _Translations$quickAdd$es extends Translations$quickAdd$en {
|
|||
@override String get quantity => '¿Cuánta?';
|
||||
@override String get more => 'Añadir más…';
|
||||
@override String get save => 'Guardar';
|
||||
@override String get saveAndAddAnother => 'Guardar y añadir otra';
|
||||
@override String addedCount({required Object n}) => '${n} añadidas';
|
||||
@override String get cancel => 'Cancelar';
|
||||
}
|
||||
|
||||
|
|
@ -833,6 +835,8 @@ extension on TranslationsEs {
|
|||
'quickAdd.quantity' => '¿Cuánta?',
|
||||
'quickAdd.more' => 'Añadir más…',
|
||||
'quickAdd.save' => 'Guardar',
|
||||
'quickAdd.saveAndAddAnother' => 'Guardar y añadir otra',
|
||||
'quickAdd.addedCount' => ({required Object n}) => '${n} añadidas',
|
||||
'quickAdd.cancel' => 'Cancelar',
|
||||
'detail.notFound' => 'Esta semilla ya no está aquí.',
|
||||
'detail.lots' => 'Lotes',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue