Skip to content

Commit

Permalink
Merge pull request #2731 from TalaoDAO/test_integration
Browse files Browse the repository at this point in the history
Test integration
  • Loading branch information
hawkbee1 authored Jun 20, 2024
2 parents 6ec1f14 + 9f044fb commit 254cc23
Show file tree
Hide file tree
Showing 65 changed files with 2,363 additions and 543 deletions.
11 changes: 6 additions & 5 deletions lib/app/shared/enum/status/mnemonic_status.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:ui';

import 'package:flutter/material.dart';

enum MnemonicStatus {
unselected,
Expand All @@ -17,14 +18,14 @@ extension MnemonicStatusX on MnemonicStatus {
}
}

Color get color {
Color color(BuildContext context) {
switch (this) {
case MnemonicStatus.unselected:
return const Color(0xff86809D);
return Theme.of(context).colorScheme.secondaryContainer;
case MnemonicStatus.wrongSelection:
return const Color(0xffFF0045);
return Theme.of(context).colorScheme.error;
case MnemonicStatus.selected:
return const Color(0xff6600FF);
return Theme.of(context).colorScheme.primary;
}
}
}
2 changes: 1 addition & 1 deletion lib/app/shared/widget/back_leading_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class BackLeadingButton extends StatelessWidget {

@override
Widget build(BuildContext context) {
final colorValue = color ?? Theme.of(context).colorScheme.onPrimary;
final colorValue = color ?? Theme.of(context).colorScheme.onSurface;
return IconButton(
padding: padding,
onPressed: onPressed ?? () => Navigator.of(context).pop(),
Expand Down
2 changes: 1 addition & 1 deletion lib/app/shared/widget/base/background_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BackgroundCard extends StatelessWidget {
height: height,
width: width,
decoration: BoxDecoration(
color: color ?? Theme.of(context).colorScheme.surfaceBright,
color: color ?? Theme.of(context).colorScheme.secondaryContainer,
borderRadius: const BorderRadius.all(Radius.circular(15)),
),
child: child,
Expand Down
4 changes: 3 additions & 1 deletion lib/app/shared/widget/custom_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class CustomAppBar extends PreferredSize {
title ?? '',
maxLines: 2,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.headlineMedium,
style: Theme.of(context).textTheme.headlineMedium!.copyWith(
fontWeight: FontWeight.bold,
),
),
),
],
Expand Down
46 changes: 27 additions & 19 deletions lib/app/shared/widget/wallet_logo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,33 @@ class WalletLogo extends StatelessWidget {
return Column(
children: [
Center(
child: SizedBox(
width: width,
height: height,
child: profileModel.profileType == ProfileType.enterprise
? CachedImageFromNetwork(
image,
fit: BoxFit.contain,
width: width,
bgColor: Colors.transparent,
height: height,
errorMessage: '',
showLoading: false,
)
: Image.asset(
image,
fit: BoxFit.contain,
width: width,
height: height,
),
child: ColorFiltered(
colorFilter: ColorFilter.mode(
profileModel.profileType == ProfileType.enterprise
? Colors.transparent
: Theme.of(context).colorScheme.primary,
BlendMode.srcIn,
),
child: SizedBox(
width: width,
height: height,
child: profileModel.profileType == ProfileType.enterprise
? CachedImageFromNetwork(
image,
fit: BoxFit.contain,
width: width,
bgColor: Colors.transparent,
height: height,
errorMessage: '',
showLoading: false,
)
: Image.asset(
image,
fit: BoxFit.contain,
width: width,
height: height,
),
),
),
),
// if (showPoweredBy &&
Expand Down
Loading

0 comments on commit 254cc23

Please sign in to comment.