From c497fa7ed64eacdbe3ec7ffc6023db31b6e83da0 Mon Sep 17 00:00:00 2001 From: suvaissov Date: Wed, 26 May 2021 14:14:42 +0600 Subject: [PATCH] for halykpos service minsdk 27 --- lib/views/home/components/popup_menu.dart | 2 +- lib/views/home/tabs/AdditionalTab.dart | 4 ++-- lib/views/payment/payment_view.dart | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/views/home/components/popup_menu.dart b/lib/views/home/components/popup_menu.dart index 89baea3..7c6195c 100644 --- a/lib/views/home/components/popup_menu.dart +++ b/lib/views/home/components/popup_menu.dart @@ -32,7 +32,7 @@ class _PopupMenuState extends State { const Choice(title: 'Информация о ККМ', icon: Icons.info_outline, command: 'infokkm'), //if (version >= 24 ) // const Choice(title: 'Bank', icon: Icons.text_fields, command: 'bank'), - if (version >= 24 ) + if (version >= 27 ) const Choice(title: 'Настройка HalykPos', icon: Icons.phonelink_lock_outlined, command: 'tap2phone'), const Choice(title: 'Настройки', icon: Icons.settings, command: 'settings'), const Choice(title: 'Принтер', icon: Icons.print, command: 'print'), diff --git a/lib/views/home/tabs/AdditionalTab.dart b/lib/views/home/tabs/AdditionalTab.dart index 42e6cb8..8c7b9c3 100644 --- a/lib/views/home/tabs/AdditionalTab.dart +++ b/lib/views/home/tabs/AdditionalTab.dart @@ -227,11 +227,11 @@ class _AdditionalTabState extends State { }); int version = await _bankService.version(); - if (version < 24 ) { + if (version < 27 ) { setState(() { isClosePosBusy = false; }); - _dialog.showDialog(description: 'Функция Tap2Phone доступна c Android версии 7.0'); + _dialog.showDialog(description: 'Функция Tap2Phone доступна c Android версии 8.1'); return; } diff --git a/lib/views/payment/payment_view.dart b/lib/views/payment/payment_view.dart index 336e345..228d3c8 100644 --- a/lib/views/payment/payment_view.dart +++ b/lib/views/payment/payment_view.dart @@ -64,7 +64,7 @@ class _PaymentViewState extends State { _bankInit() async { int version = await _bankService.version(); - if (version >= 24) { + if (version >= 27) { setState(() { isBankApiAccess = true; });