mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
28 lines
769 B
Dart
28 lines
769 B
Dart
import 'dart:convert';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
class Miscs {
|
|
/// RegExp for number
|
|
static final numReg = RegExp(r'\s{1,}');
|
|
|
|
/// RegExp for password request
|
|
static final pwdRequestWithUserReg = RegExp(r'\[sudo\] password for (.+):');
|
|
|
|
/// Private Key max allowed size is 20kb
|
|
static const privateKeyMaxSize = 20 * 1024;
|
|
|
|
// Editor max allowed size is 1mb
|
|
static const editorMaxSize = 1024 * 1024;
|
|
|
|
/// Max debug log lines
|
|
static const maxDebugLogLines = 100;
|
|
|
|
/// Method Channels
|
|
static const pkgName = 'tech.lolli.toolbox';
|
|
static const bgRunChannel = MethodChannel('$pkgName/app_retain');
|
|
static const homeWidgetChannel = MethodChannel('$pkgName/home_widget');
|
|
|
|
static const jsonEncoder = JsonEncoder.withIndent(' ');
|
|
}
|