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