mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
OLED Black color fixes
This commit is contained in:
parent
b0655f2bb3
commit
be300d9027
2 changed files with 25 additions and 8 deletions
|
@ -3,8 +3,11 @@ import 'dart:math';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:lottie/lottie.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||
import 'package:stackwallet/widgets/background.dart';
|
||||
import 'package:stackwallet/widgets/conditional_parent.dart';
|
||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||
|
||||
class LoadingView extends StatelessWidget {
|
||||
const LoadingView({Key? key}) : super(key: key);
|
||||
|
@ -12,20 +15,33 @@ class LoadingView extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final size = MediaQuery.of(context).size;
|
||||
final width = min(size.width, size.height) * 0.5;
|
||||
return Background(
|
||||
child: Scaffold(
|
||||
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||
body: Container(
|
||||
color: Theme.of(context).extension<StackColors>()!.background,
|
||||
child: Center(
|
||||
child: ConditionalParent(
|
||||
condition:
|
||||
Theme.of(context).extension<StackColors>()!.themeType ==
|
||||
ThemeType.oledBlack,
|
||||
builder: (child) => RoundedContainer(
|
||||
color: const Color(0xFFDEDEDE),
|
||||
radiusMultiplier: 100,
|
||||
width: width * 1.35,
|
||||
height: width * 1.35,
|
||||
child: child,
|
||||
),
|
||||
child: SizedBox(
|
||||
width: min(size.width, size.height) * 0.5,
|
||||
width: width,
|
||||
child: Lottie.asset(
|
||||
Assets.lottie.test2,
|
||||
animate: true,
|
||||
repeat: true,
|
||||
),
|
||||
),
|
||||
),
|
||||
// child: Image(
|
||||
// image: AssetImage(
|
||||
// Assets.png.splash,
|
||||
|
|
|
@ -283,7 +283,7 @@ class OledBlackColors extends StackColorTheme {
|
|||
@override
|
||||
Color get infoItemText => const Color(0xFFDEDEDE);
|
||||
@override
|
||||
Color get infoItemIcons => const Color(0xFF5C94F4);
|
||||
Color get infoItemIcons => const Color(0xFFF26822); //const Color(0xFF5C94F4);
|
||||
|
||||
// popup
|
||||
@override
|
||||
|
@ -321,7 +321,8 @@ class OledBlackColors extends StackColorTheme {
|
|||
@override
|
||||
Color get myStackContactIconBG => const Color(0xFF747778);
|
||||
@override
|
||||
Color get textConfirmTotalAmount => const Color(0xFF144D35);
|
||||
Color get textConfirmTotalAmount =>
|
||||
textFieldSuccessLabel; //const Color(0xFF144D35);
|
||||
@override
|
||||
Color get textSelectedWordTableItem => const Color(0xFF143D8E);
|
||||
|
||||
|
|
Loading…
Reference in a new issue