History panel

This commit is contained in:
Hillel Coren 2020-02-09 18:07:58 +02:00
parent b92c9d8cc4
commit 70dfbafadc
1 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,5 @@
import 'dart:async';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:invoiceninja_flutter/constants.dart'; import 'package:invoiceninja_flutter/constants.dart';
@ -190,13 +192,14 @@ class _HistoryListTileState extends State<HistoryListTile> {
entityType: history.entityType); entityType: history.entityType);
}, },
onLongPress: () { onLongPress: () {
if (state.prefState.isHistoryFloated) {
Navigator.pop(context);
}
showEntityActionsDialog( showEntityActionsDialog(
context: context, context: context,
entities: [entity], entities: [entity],
client: state.clientState.map[clientId], client: state.clientState.map[clientId],
completer: state.prefState.isHistoryFloated
? (Completer<Null>()
..future.then((value) => Navigator.pop(context)))
: null,
); );
}, },
), ),