Fix line item bug
This commit is contained in:
parent
309dd9f0a5
commit
6da2f6c2a0
|
|
@ -149,6 +149,9 @@ class _EntityDropdownState extends State<EntityDropdown> {
|
|||
),
|
||||
),
|
||||
onPointerDown: (_) {
|
||||
if (!kIsWeb) {
|
||||
return;
|
||||
}
|
||||
final entity = _entityMap[entityId];
|
||||
_textController.text = _entityMap[entityId].listDisplayName;
|
||||
widget.onSelected(entity);
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_typeahead/flutter_typeahead.dart';
|
||||
import 'package:invoiceninja_flutter/constants.dart';
|
||||
|
|
@ -154,11 +155,14 @@ class _InvoiceEditItemsDesktopState extends State<InvoiceEditItemsDesktop> {
|
|||
child: Container(
|
||||
color: Theme.of(context).cardColor,
|
||||
child: ListTile(
|
||||
title: Text(
|
||||
productState.map[suggestion].productKey),
|
||||
title:
|
||||
Text(productState.map[suggestion].productKey),
|
||||
),
|
||||
),
|
||||
onPointerDown: (_) {
|
||||
if (!kIsWeb) {
|
||||
return;
|
||||
}
|
||||
final item = lineItems[index];
|
||||
final product = productState.map[suggestion];
|
||||
final updatedItem = item.rebuild((b) => b
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ import 'package:invoiceninja_flutter/ui/settings/custom_fields_vm.dart';
|
|||
import 'package:invoiceninja_flutter/ui/app/edit_scaffold.dart';
|
||||
import 'package:invoiceninja_flutter/utils/completers.dart';
|
||||
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||
import 'package:invoiceninja_flutter/utils/platforms.dart';
|
||||
|
||||
class CustomFields extends StatefulWidget {
|
||||
const CustomFields({
|
||||
|
|
|
|||
Loading…
Reference in New Issue