mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 09:19:22 +00:00
port String extension capitalize() from flutter_native_splash to sw exts
This commit is contained in:
parent
f4f03b2dd3
commit
13ab2b8ffe
11 changed files with 27 additions and 15 deletions
|
@ -9,7 +9,6 @@
|
|||
*/
|
||||
|
||||
import 'package:decimal/decimal.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
|
||||
|
@ -21,6 +20,7 @@ import '../../models/isar/models/isar_models.dart';
|
|||
import '../../models/isar/ordinal.dart';
|
||||
import '../../models/isar/stack_theme.dart';
|
||||
import '../../utilities/amount/amount.dart';
|
||||
import '../../utilities/extensions/extensions.dart';
|
||||
import '../../utilities/stack_file_system.dart';
|
||||
import '../../wallets/crypto_currency/crypto_currency.dart';
|
||||
import '../../wallets/isar/models/frost_wallet_info.dart';
|
||||
|
|
|
@ -12,7 +12,6 @@ import 'dart:async';
|
|||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
|
||||
|
@ -22,6 +21,7 @@ import '../../providers/global/wallets_provider.dart';
|
|||
import '../../themes/stack_colors.dart';
|
||||
import '../../utilities/assets.dart';
|
||||
import '../../utilities/constants.dart';
|
||||
import '../../utilities/extensions/extensions.dart';
|
||||
import '../../utilities/text_styles.dart';
|
||||
import '../../wallets/crypto_currency/crypto_currency.dart';
|
||||
import '../../wallets/isar/providers/wallet_info_provider.dart';
|
||||
|
|
|
@ -10,9 +10,10 @@
|
|||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
|
||||
import '../../themes/stack_colors.dart';
|
||||
import '../../utilities/constants.dart';
|
||||
import '../../utilities/extensions/extensions.dart';
|
||||
import '../../utilities/text_styles.dart';
|
||||
|
||||
enum FusionOption {
|
||||
|
|
|
@ -9,9 +9,10 @@
|
|||
*/
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
|
||||
import '../../themes/stack_colors.dart';
|
||||
import '../../utilities/constants.dart';
|
||||
import '../../utilities/extensions/extensions.dart';
|
||||
import '../../utilities/text_styles.dart';
|
||||
import '../../utilities/util.dart';
|
||||
import '../../widgets/background.dart';
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
*/
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
|
||||
import '../../../themes/stack_colors.dart';
|
||||
import '../../../utilities/extensions/extensions.dart';
|
||||
import '../../../utilities/text_styles.dart';
|
||||
import '../../../widgets/rounded_container.dart';
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ import 'package:cw_core/monero_transaction_priority.dart';
|
|||
import 'package:decimal/decimal.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
|
@ -40,6 +39,7 @@ import '../../utilities/barcode_scanner_interface.dart';
|
|||
import '../../utilities/clipboard_interface.dart';
|
||||
import '../../utilities/constants.dart';
|
||||
import '../../utilities/enums/fee_rate_type_enum.dart';
|
||||
import '../../utilities/extensions/extensions.dart';
|
||||
import '../../utilities/logger.dart';
|
||||
import '../../utilities/prefs.dart';
|
||||
import '../../utilities/text_styles.dart';
|
||||
|
|
|
@ -12,11 +12,9 @@ import 'dart:io';
|
|||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'wallet_balance_toggle_sheet.dart';
|
||||
import 'wallet_refresh_button.dart';
|
||||
|
||||
import '../../../providers/providers.dart';
|
||||
import '../../../providers/wallet/public_private_balance_state_provider.dart';
|
||||
import '../../../providers/wallet/wallet_balance_toggle_state_provider.dart';
|
||||
|
@ -27,12 +25,15 @@ import '../../../utilities/amount/amount.dart';
|
|||
import '../../../utilities/amount/amount_formatter.dart';
|
||||
import '../../../utilities/assets.dart';
|
||||
import '../../../utilities/enums/wallet_balance_toggle_state.dart';
|
||||
import '../../../utilities/extensions/extensions.dart';
|
||||
import '../../../utilities/text_styles.dart';
|
||||
import '../../../wallets/crypto_currency/coins/banano.dart';
|
||||
import '../../../wallets/crypto_currency/coins/firo.dart';
|
||||
import '../../../wallets/isar/providers/wallet_info_provider.dart';
|
||||
import '../../../wallets/wallet/impl/banano_wallet.dart';
|
||||
import '../../../widgets/conditional_parent.dart';
|
||||
import 'wallet_balance_toggle_sheet.dart';
|
||||
import 'wallet_refresh_button.dart';
|
||||
|
||||
class WalletSummaryInfo extends ConsumerWidget {
|
||||
const WalletSummaryInfo({
|
||||
|
|
|
@ -14,7 +14,6 @@ import 'package:dropdown_button2/dropdown_button2.dart';
|
|||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
|
||||
|
@ -25,6 +24,7 @@ import '../../providers/global/wallets_provider.dart';
|
|||
import '../../themes/stack_colors.dart';
|
||||
import '../../utilities/assets.dart';
|
||||
import '../../utilities/constants.dart';
|
||||
import '../../utilities/extensions/extensions.dart';
|
||||
import '../../utilities/text_styles.dart';
|
||||
import '../../wallets/crypto_currency/crypto_currency.dart';
|
||||
import '../../wallets/isar/providers/wallet_info_provider.dart';
|
||||
|
|
|
@ -11,17 +11,18 @@
|
|||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
|
||||
import '../../../exceptions/exchange/exchange_exception.dart';
|
||||
import '../../../networking/http.dart';
|
||||
import '../../../utilities/extensions/extensions.dart';
|
||||
import '../../../utilities/logger.dart';
|
||||
import '../../../utilities/prefs.dart';
|
||||
import '../../tor_service.dart';
|
||||
import '../exchange_response.dart';
|
||||
import 'response_objects/trocador_coin.dart';
|
||||
import 'response_objects/trocador_rate.dart';
|
||||
import 'response_objects/trocador_trade.dart';
|
||||
import 'response_objects/trocador_trade_new.dart';
|
||||
import '../../tor_service.dart';
|
||||
import '../../../utilities/logger.dart';
|
||||
import '../../../utilities/prefs.dart';
|
||||
|
||||
const kTrocadorApiKey = "8rFqf7QLxX1mUBiNPEMaLUpV2biz6n";
|
||||
const kTrocadorRefCode = "9eHm9BkQfS";
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
*/
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:core';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:dart_bs58/dart_bs58.dart';
|
||||
|
@ -38,4 +39,9 @@ extension StringExtensions on String {
|
|||
.reversed
|
||||
.map((e) => e.toRadixString(16).padLeft(2, '0'))
|
||||
.join();
|
||||
|
||||
/// Capitalize the first letter of a string.
|
||||
String capitalize() {
|
||||
return isEmpty ? this : "${this[0].toUpperCase()}${substring(1)}";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,15 +2,16 @@ import 'dart:async';
|
|||
|
||||
import 'package:event_bus/event_bus.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
|
||||
import '../../pages_desktop_specific/desktop_menu_item.dart';
|
||||
import '../../services/event_bus/events/global/tor_connection_status_changed_event.dart';
|
||||
import '../../services/event_bus/global_event_bus.dart';
|
||||
import '../../services/tor_service.dart';
|
||||
import '../../themes/stack_colors.dart';
|
||||
import '../../utilities/assets.dart';
|
||||
import '../../utilities/extensions/extensions.dart';
|
||||
import '../../utilities/text_styles.dart';
|
||||
|
||||
class DesktopTorStatusButton extends ConsumerStatefulWidget {
|
||||
|
|
Loading…
Reference in a new issue