add color to config

master
fuwa 5 years ago
parent 026262ed32
commit 8b3587f44d

@ -19,6 +19,8 @@ along with CyberWOW. If not, see <https://www.gnu.org/licenses/>.
*/ */
import 'package:flutter/material.dart';
import 'prototype.dart'; import 'prototype.dart';
final config = CryptoConfig final config = CryptoConfig
@ -26,4 +28,6 @@ final config = CryptoConfig
'wownerod', 'wownerod',
'wownerod', 'wownerod',
'Follow the white rabbit.', 'Follow the white rabbit.',
Colors.green.withOpacity(1.0),
Colors.black,
); );

@ -19,14 +19,20 @@ along with CyberWOW. If not, see <https://www.gnu.org/licenses/>.
*/ */
import 'package:flutter/material.dart';
class CryptoConfig { class CryptoConfig {
final String outputBin; final String outputBin;
final String appPath; final String appPath;
final String splash; final String splash;
final Color textColor;
final Color backgroundColor;
CryptoConfig CryptoConfig
( (
this.outputBin, this.outputBin,
this.appPath, this.appPath,
this.splash, this.splash,
this.textColor,
this.backgroundColor,
); );
} }

@ -22,12 +22,13 @@ along with CyberWOW. If not, see <https://www.gnu.org/licenses/>.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '../state.dart'; import '../state.dart';
import '../config.dart';
Widget buildBlank(BuildContext context, BlankState state) { Widget buildBlank(BuildContext context, BlankState state) {
return Scaffold( return Scaffold(
body: new Container body: new Container
( (
color: Colors.black, color: config.backgroundColor,
), ),
); );
} }

@ -22,6 +22,7 @@ along with CyberWOW. If not, see <https://www.gnu.org/licenses/>.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '../state.dart'; import '../state.dart';
import '../config.dart';
Widget buildLoading(BuildContext context, LoadingState state) { Widget buildLoading(BuildContext context, LoadingState state) {
return Scaffold( return Scaffold(
@ -32,7 +33,7 @@ Widget buildLoading(BuildContext context, LoadingState state) {
body: new Container body: new Container
( (
padding: const EdgeInsets.all(10.0), padding: const EdgeInsets.all(10.0),
color: Colors.black, color: config.backgroundColor,
child: Align child: Align
( (
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
@ -54,7 +55,7 @@ Widget buildLoading(BuildContext context, LoadingState state) {
fontFamily: 'RobotoMono', fontFamily: 'RobotoMono',
fontSize: 17, fontSize: 17,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: Colors.green.withOpacity(1.0), color: config.textColor,
), ),
) )
) )

@ -22,6 +22,7 @@ along with CyberWOW. If not, see <https://www.gnu.org/licenses/>.
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '../state.dart'; import '../state.dart';
import '../config.dart';
Widget buildRunning(BuildContext context, RunningState state) { Widget buildRunning(BuildContext context, RunningState state) {
return Scaffold return Scaffold
@ -34,7 +35,7 @@ Widget buildRunning(BuildContext context, RunningState state) {
body: new Container body: new Container
( (
// padding: const EdgeInsets.all(10.0), // padding: const EdgeInsets.all(10.0),
color: Colors.black, color: config.backgroundColor,
child: Align child: Align
( (
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
@ -57,7 +58,7 @@ Widget buildRunning(BuildContext context, RunningState state) {
( (
fontFamily: 'RobotoMono', fontFamily: 'RobotoMono',
fontSize: 11, fontSize: 11,
color: Colors.green.withOpacity(1.0), color: config.textColor,
), ),
) )
) )

Loading…
Cancel
Save