Giter Club home page Giter Club logo

maximmonakhov / crypt_signature Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 102.26 MB

Плагин Flutter для формирования электронной цифровой подписи с помощью алгоритмов ГОСТ по стандарту PKCS7 Cryptographic Message Syntax (CMS)

Java 3.84% Swift 0.07% Objective-C 0.14% Dart 6.50% Ruby 0.09% C# 0.01% C 73.85% C++ 14.84% Objective-C++ 0.65%
flutter android dart ios cryptopro

crypt_signature's People

Contributors

maximmonakhov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

qscr aldiyars

crypt_signature's Issues

Вынести инициализацию текстового контроллера из билд метода отображения диалога

В файле lib/src/ui/dialogs.dart

Инициализация происходит в билд методе.

В редких случаях при скрытии клавиатуры происходит ребилд окна и текстовое поле очищается, таким образом не получается ввести корректный пароль.

Нужно как-то вынести инициализацию контроллера из билд метода.

Костыльно у себя исправил так:

Future<String?> showInputDialog( BuildContext context, String message, String hintText, TextInputType keyboardType, { required TextEditingController controller, List<TextInputFormatter>? inputFormatters, bool obscureText = false, })

Future<String?> askPassword(BuildContext context, String title) => showInputDialog( context, title, "Пароль", TextInputType.visiblePassword, obscureText: true, controller: TextEditingController(), );

`Future<License?> setNewLicenseSheet(BuildContext context) async {
var maskFormatter = MaskTextInputFormatter(
mask: '#####-#####-#####-#####-#####',
filter: {"#": RegExp('[0-9+A-Z]')},
);
String? newLicense = await showInputDialog(
context,
"Введите вашу лицензию Крипто ПРО",
"Номер лицензии",
TextInputType.emailAddress,
inputFormatters: [maskFormatter],
controller: TextEditingController(),
);

return newLicense != null && newLicense.isNotEmpty ? setLicense(context, newLicense) : null;

}`

Не получается запустить тест на mac m1 pro

При запуске на ios выходит данная ошибка
warning: no rule to process file '/Users/Dauken/FlutterDev/flutter/.pub-cache/hosted/pub.dartlang.org/crypt_signature-4.1.1/ios/Classes/AssemblyInfo.cs' of type 'text' for architecture 'arm64' (in target 'crypt_signature' from project 'Pods')
warning: no rule to process file '/Users/Dauken/FlutterDev/flutter/.pub-cache/hosted/pub.dartlang.org/crypt_signature-4.1.1/ios/Classes/AssemblyInfo.cs' of type 'text' for architecture 'x86_64' (in target 'crypt_signature' from project 'Pods')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.