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';
final config = CryptoConfig
@ -26,4 +28,6 @@ final config = CryptoConfig
'wownerod',
'wownerod',
'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 {
final String outputBin;
final String appPath;
final String splash;
final Color textColor;
final Color backgroundColor;
CryptoConfig
(
this.outputBin,
this.appPath,
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 '../state.dart';
import '../config.dart';
Widget buildBlank(BuildContext context, BlankState state) {
return Scaffold(
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 '../state.dart';
import '../config.dart';
Widget buildLoading(BuildContext context, LoadingState state) {
return Scaffold(
@ -32,7 +33,7 @@ Widget buildLoading(BuildContext context, LoadingState state) {
body: new Container
(
padding: const EdgeInsets.all(10.0),
color: Colors.black,
color: config.backgroundColor,
child: Align
(
alignment: Alignment.topLeft,
@ -54,7 +55,7 @@ Widget buildLoading(BuildContext context, LoadingState state) {
fontFamily: 'RobotoMono',
fontSize: 17,
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 '../state.dart';
import '../config.dart';
Widget buildRunning(BuildContext context, RunningState state) {
return Scaffold
@ -34,7 +35,7 @@ Widget buildRunning(BuildContext context, RunningState state) {
body: new Container
(
// padding: const EdgeInsets.all(10.0),
color: Colors.black,
color: config.backgroundColor,
child: Align
(
alignment: Alignment.topLeft,
@ -57,7 +58,7 @@ Widget buildRunning(BuildContext context, RunningState state) {
(
fontFamily: 'RobotoMono',
fontSize: 11,
color: Colors.green.withOpacity(1.0),
color: config.textColor,
),
)
)

Loading…
Cancel
Save