From 57cc908e6ec7cc3adbe902cb5c68d0a6010c9fd4 Mon Sep 17 00:00:00 2001 From: fuwa Date: Tue, 25 Jun 2019 14:05:33 +0800 Subject: [PATCH] use const config --- cyberwow/lib/config.dart | 2 +- cyberwow/lib/config/cyberwow.dart | 4 ++-- cyberwow/lib/config/prototype.dart | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cyberwow/lib/config.dart b/cyberwow/lib/config.dart index cc28f2c..155bb85 100644 --- a/cyberwow/lib/config.dart +++ b/cyberwow/lib/config.dart @@ -22,7 +22,7 @@ along with CyberWOW. If not, see . import 'config/prototype.dart'; import 'config/cyberwow.dart' as cryptoConfig; -final config = cryptoConfig.config; +const config = cryptoConfig.config; const arch = 'arm64'; // const arch = 'x86_64'; diff --git a/cyberwow/lib/config/cyberwow.dart b/cyberwow/lib/config/cyberwow.dart index d5d9f63..27e0522 100644 --- a/cyberwow/lib/config/cyberwow.dart +++ b/cyberwow/lib/config/cyberwow.dart @@ -23,13 +23,13 @@ import 'package:flutter/material.dart'; import 'prototype.dart'; -final config = CryptoConfig +const config = CryptoConfig ( 'wownerod', 'wownerod', 'Follow the white rabbit.', 70, - Colors.green.withOpacity(1.0), + Colors.green, Colors.black, ['--prune-blockchain'], ); diff --git a/cyberwow/lib/config/prototype.dart b/cyberwow/lib/config/prototype.dart index 00eef87..af6fb34 100644 --- a/cyberwow/lib/config/prototype.dart +++ b/cyberwow/lib/config/prototype.dart @@ -29,7 +29,7 @@ class CryptoConfig { final Color textColor; final Color backgroundColor; final List extraArgs; - CryptoConfig + const CryptoConfig ( this.outputBin, this.appPath,