stack_wallet/lib/utilities/constants.dart

77 lines
1.6 KiB
Dart
Raw Normal View History

/*
2023-05-26 21:21:16 +00:00
* This file is part of Stack Wallet.
*
2023-05-26 21:21:16 +00:00
* Copyright (c) 2023 Cypher Stack
* All Rights Reserved.
* The code is distributed under GPLv3 license, see LICENSE file for details.
* Generated by Cypher Stack on 2023-05-26
*
*/
2022-08-26 08:11:35 +00:00
import 'dart:io';
import 'util.dart';
2022-08-26 08:11:35 +00:00
class _LayoutSizing {
const _LayoutSizing();
double get circularBorderRadius => 8.0;
double get checkboxBorderRadius => 4.0;
double get standardPadding => 16.0;
}
abstract class Constants {
static const size = _LayoutSizing();
static void exchangeForExperiencedUsers(int count) {
enableExchange =
Util.isDesktop || Platform.isAndroid || count > 5 || !Platform.isIOS;
}
static bool enableExchange = Util.isDesktop || !Platform.isIOS;
2023-03-10 22:47:12 +00:00
// just use enable exchange flag
// static bool enableBuy = enableExchange;
2023-03-10 22:50:06 +00:00
// // true; // true for development,
2022-08-26 08:11:35 +00:00
static const int notificationsMax = 0xFFFFFFFF;
static const Duration networkAliveTimerDuration = Duration(seconds: 10);
// Enable Logger.print statements
static const bool disableLogger = false;
2023-11-06 17:24:02 +00:00
static const int currentDataVersion = 12;
2022-08-26 08:11:35 +00:00
2023-02-08 13:29:27 +00:00
static const int rescanV1 = 1;
2022-08-26 08:11:35 +00:00
static const Map<int, String> monthMapShort = {
1: 'Jan',
2: 'Feb',
3: 'Mar',
4: 'Apr',
5: 'May',
6: 'Jun',
7: 'Jul',
8: 'Aug',
9: 'Sep',
10: 'Oct',
11: 'Nov',
12: 'Dec',
};
static const Map<int, String> monthMap = {
1: 'January',
2: 'February',
3: 'March',
4: 'April',
5: 'May',
6: 'June',
7: 'July',
8: 'August',
9: 'September',
10: 'October',
11: 'November',
12: 'December',
};
}