k
This commit is contained in:
@@ -83,6 +83,8 @@ class SharedModelSection extends StatelessWidget {
|
|||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
|
autofocus: true,
|
||||||
|
textInputAction: TextInputAction.search,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: 'Cerca modello (es. iPhone 15...)',
|
hintText: 'Cerca modello (es. iPhone 15...)',
|
||||||
prefixIcon: const Icon(Icons.search),
|
prefixIcon: const Icon(Icons.search),
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ class TicketModel extends Equatable {
|
|||||||
?.myFormat(),
|
?.myFormat(),
|
||||||
sourceModelName: (map['source_model']?['name_with_brand'] as String?)
|
sourceModelName: (map['source_model']?['name_with_brand'] as String?)
|
||||||
?.myFormat(),
|
?.myFormat(),
|
||||||
createdById: map['staff_id'] as String?,
|
createdById: map['created_by_id'] as String?,
|
||||||
createdByName: (map['created_by']?['name'] as String?)?.myFormat(),
|
createdByName: (map['created_by']?['name'] as String?)?.myFormat(),
|
||||||
assignedToId: map['assigned_to_id'] as String?,
|
assignedToId: map['assigned_to_id'] as String?,
|
||||||
assignedToName: (map['assigned_to']?['name'] as String?)?.myFormat(),
|
assignedToName: (map['assigned_to']?['name'] as String?)?.myFormat(),
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ class _TicketFormScreenState extends State<TicketFormScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (state.status == TicketFormStatus.success) {
|
if (state.status == TicketFormStatus.success) {
|
||||||
context.read<TicketListCubit>().fetchTickets();
|
context.read<TicketListCubit>().fetchTickets(reset: true);
|
||||||
_showSuccessActions(
|
_showSuccessActions(
|
||||||
context,
|
context,
|
||||||
state.ticket,
|
state.ticket,
|
||||||
|
|||||||
Reference in New Issue
Block a user