Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test integration #2739

Merged
merged 10 commits into from
Jun 25, 2024
4 changes: 2 additions & 2 deletions assets/terms/mobile_cgu_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ When creating a wallet, we strongly recommend taking precautionary measures to p



* Creating a strong and unique PIN Code, distinct from pin code used for other purposes (e.g., different from your phone PIN Code or pin code used on websites or online services), and utilizing biometric authentication if available.
* Creating a strong and unique PIN Code, distinct from PIN Code used for other purposes (e.g., different from your phone PIN Code or PIN Code used on websites or online services), and utilizing biometric authentication if available.
* Avoiding the storage of private keys and the Recovery Phrase in plain text online or in insecure physical locations.
* Restricting access to your devices and wallet.
* Taking necessary precautions against malware on your devices and networks.
Expand Down Expand Up @@ -259,7 +259,7 @@ User Obligations:


* Users commit to refraining from engaging in illegal or harmful use of the service and promptly reporting errors.
* Users are also required to select a pin code in line with policy guidelines.
* Users are also required to select a PIN Code in line with policy guidelines.
* Users must securely store their electronic identification means and refrain from sharing them with third parties.

Prohibited actions:
Expand Down
Binary file added google_fonts/Poppins-Black.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-BlackItalic.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-Bold.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-BoldItalic.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-ExtraBold.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-ExtraLight.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-ExtraLightItalic.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-Italic.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-Light.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-LightItalic.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-Medium.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-MediumItalic.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-Regular.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-SemiBold.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-SemiBoldItalic.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-Thin.ttf
Binary file not shown.
Binary file added google_fonts/Poppins-ThinItalic.ttf
Binary file not shown.
7 changes: 7 additions & 0 deletions lib/app/shared/constants/parameters.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:altme/app/shared/enum/enum.dart';
import 'package:altme/dashboard/dashboard.dart';
import 'package:flutter/material.dart';

class Parameters {
static const int multipleCredentialsProcessDelay = 1;
Expand Down Expand Up @@ -95,4 +96,10 @@ class Parameters {
static const DidKeyType didKeyTypeForDefault = DidKeyType.edDSA;
static const DidKeyType didKeyTypeForDutch = DidKeyType.jwkP256;
static const DidKeyType didKeyTypeForOwfBaselineProfile = DidKeyType.jwkP256;

// seed color for the app Theme
// Altme
static const Color seedColor = Color(0xff6600FF);
// Talao
// static const Color seedColor = Color(0xff1EAADC);
}
4 changes: 2 additions & 2 deletions lib/app/shared/widget/add_account/add_account_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ class AddAccountButton extends StatelessWidget {
),
Text(
l10n.cryptoAddAccount,
style: Theme.of(context).textTheme.headlineSmall,
style: Theme.of(context).textTheme.titleMedium,
),
],
),
const SizedBox(height: 3),
Text(
l10n.createOrImportNewAccount,
style: Theme.of(context).textTheme.titleSmall,
style: Theme.of(context).textTheme.bodyMedium,
),
],
),
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.secondaryContainer,
color: color ?? Theme.of(context).colorScheme.surfaceContainer,
borderRadius: const BorderRadius.all(Radius.circular(15)),
),
child: child,
Expand Down
1 change: 0 additions & 1 deletion lib/app/shared/widget/button/button.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export 'my_elevated_button.dart';
export 'my_gradient_button.dart';
export 'my_outlined_button.dart';
33 changes: 21 additions & 12 deletions lib/app/shared/widget/button/my_elevated_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MyElevatedButton extends StatelessWidget {
required this.icon,
this.backgroundColor,
this.textColor,
this.borderRadius = 40,
this.borderRadius = 8,
this.verticalSpacing = 15,
this.elevation = 2,
this.fontSize = 18,
Expand Down Expand Up @@ -53,14 +53,21 @@ class MyElevatedButton extends StatelessWidget {
onPressed: onPressed,
),
onPressed: onPressed,
child: ElevatedButtonText(
text: text,
fontSize: fontSize,
textColor: textColor,
child: Text(
text.toUpperCase(),
style: Theme.of(context).textTheme.titleLarge!.copyWith(
fontWeight: FontWeight.bold,
),
),
)
: ElevatedButton.icon(
icon: icon,
icon: ColorFiltered(
colorFilter: ColorFilter.mode(
textColor ?? Theme.of(context).textTheme.titleLarge!.color!,
BlendMode.srcIn,
),
child: icon,
),
style: elevatedStyleFrom(
borderRadius: borderRadius,
context: context,
Expand All @@ -70,10 +77,11 @@ class MyElevatedButton extends StatelessWidget {
onPressed: onPressed,
),
onPressed: onPressed,
label: ElevatedButtonText(
text: text,
fontSize: fontSize,
textColor: textColor,
label: Text(
text.toUpperCase(),
style: Theme.of(context).textTheme.titleLarge!.copyWith(
fontWeight: FontWeight.bold,
),
),
),
);
Expand All @@ -95,8 +103,8 @@ ButtonStyle elevatedStyleFrom({
),
backgroundColor: WidgetStateProperty.all(
onPressed == null
? Theme.of(context).colorScheme.onSurface.withOpacity(0.12)
: backgroundColor ?? Theme.of(context).colorScheme.primary,
? Theme.of(context).colorScheme.outline
: backgroundColor ?? Theme.of(context).colorScheme.secondaryContainer,
),
shape: WidgetStateProperty.all(
RoundedRectangleBorder(
Expand All @@ -106,6 +114,7 @@ ButtonStyle elevatedStyleFrom({
);
}

// @TODO: remove if buttons OK
class ElevatedButtonText extends StatelessWidget {
const ElevatedButtonText({
super.key,
Expand Down
146 changes: 0 additions & 146 deletions lib/app/shared/widget/button/my_gradient_button.dart

This file was deleted.

48 changes: 34 additions & 14 deletions lib/app/shared/widget/button/my_outlined_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MyOutlinedButton extends StatelessWidget {
this.backgroundColor,
this.textColor,
this.borderColor,
this.borderRadius = 50,
this.borderRadius = 8,
this.verticalSpacing = 15,
this.elevation = 2,
this.fontSize = 18,
Expand Down Expand Up @@ -56,15 +56,28 @@ class MyOutlinedButton extends StatelessWidget {
onPressed: onPressed,
),
onPressed: onPressed,
child: OutlinedButtonText(
text: text,
fontSize: fontSize,
textColor: textColor,
onPressed: onPressed,
child: Text(
text.toUpperCase(),
style: Theme.of(context).textTheme.titleLarge!.copyWith(
fontWeight: FontWeight.bold,
color: onPressed == null
? Theme.of(context)
.colorScheme
.onSurface
.withOpacity(0.12)
: textColor ??
Theme.of(context).colorScheme.secondaryContainer,
),
),
)
: OutlinedButton.icon(
icon: icon,
icon: ColorFiltered(
colorFilter: ColorFilter.mode(
textColor ?? Theme.of(context).colorScheme.secondaryContainer,
BlendMode.srcIn,
),
child: icon,
),
style: outlinedStyleFrom(
borderRadius: borderRadius,
context: context,
Expand All @@ -75,11 +88,18 @@ class MyOutlinedButton extends StatelessWidget {
onPressed: onPressed,
),
onPressed: onPressed,
label: OutlinedButtonText(
text: text,
fontSize: fontSize,
textColor: textColor,
onPressed: onPressed,
label: Text(
text.toUpperCase(),
style: Theme.of(context).textTheme.titleLarge!.copyWith(
fontWeight: FontWeight.bold,
color: onPressed == null
? Theme.of(context)
.colorScheme
.onSurface
.withOpacity(0.12)
: textColor ??
Theme.of(context).colorScheme.secondaryContainer,
),
),
),
);
Expand All @@ -102,7 +122,7 @@ ButtonStyle outlinedStyleFrom({
side: BorderSide(
color: onPressed == null
? Theme.of(context).colorScheme.onSurface.withOpacity(0.12)
: borderColor ?? Theme.of(context).colorScheme.primary,
: borderColor ?? Theme.of(context).colorScheme.secondaryContainer,
width: 2,
),
shape: RoundedRectangleBorder(
Expand Down Expand Up @@ -132,7 +152,7 @@ class OutlinedButtonText extends StatelessWidget {
style: TextStyle(
color: onPressed == null
? Theme.of(context).colorScheme.onSurface.withOpacity(0.12)
: textColor ?? Theme.of(context).colorScheme.primary,
: textColor ?? Theme.of(context).colorScheme.secondaryContainer,
fontSize: fontSize,
fontWeight: FontWeight.w700,
),
Expand Down
2 changes: 1 addition & 1 deletion lib/app/shared/widget/checkbox_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CheckboxItem extends StatelessWidget {
),
Text(
text,
style: textStyle ?? Theme.of(context).textTheme.labelLarge,
style: textStyle ?? Theme.of(context).textTheme.bodyLarge,
),
],
),
Expand Down
4 changes: 1 addition & 3 deletions lib/app/shared/widget/custom_app_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ class CustomAppBar extends PreferredSize {
title ?? '',
maxLines: 2,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.headlineMedium!.copyWith(
fontWeight: FontWeight.bold,
),
style: Theme.of(context).textTheme.headlineSmall,
),
),
],
Expand Down
Loading