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

October #2695

Closed
wants to merge 172 commits into from
Closed

October #2695

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
a71d385
Eudi settings (#2641)
hawkbee1 May 3, 2024
e627e53
update version
hawkbee1 May 3, 2024
300dadd
automatic change from Xcode
hawkbee1 May 6, 2024
2e80024
fix: Update private key use #2630
bibash28 Apr 30, 2024
d391e72
feat: Start package creation #2298
bibash28 Apr 30, 2024
44cdaac
Add some tests in oidc4vc
bibash28 May 2, 2024
8fe77ed
feat: Add tests for oidc4vc
bibash28 May 3, 2024
dcdf0d4
Add oidc4vc in github test flow
bibash28 May 3, 2024
2c49d4b
Add oidc4vc in github test flow
bibash28 May 3, 2024
65c9732
Add didkit mockup test
bibash28 May 3, 2024
d065af0
Add didkit mockup test
bibash28 May 3, 2024
722d2ed
revert and remove didkit from test
bibash28 May 3, 2024
773435e
optimise some tests
bibash28 May 3, 2024
9eebb67
Update test for network_test - box-decoration-test - illustration_pag…
bibash28 May 6, 2024
6ac7d2b
Add shared widgets tests
bibash28 May 6, 2024
47eed10
Add-update tests basic widgets
bibash28 May 6, 2024
f6825a8
Add splash cubit test
bibash28 May 7, 2024
9a49d8e
Update splash_test.dart
bibash28 May 7, 2024
eafd87b
Add tests for app_theme
bibash28 May 8, 2024
a8e640e
Update markdown page test
bibash28 May 8, 2024
25b4d6b
Add tests for cyptocurrency_keys
bibash28 May 8, 2024
67cdcb3
Remove oidc4vc from test
bibash28 May 8, 2024
42e4038
Update tests for jwt_decode
bibash28 May 8, 2024
1fbf8ab
add some tests
bibash28 May 8, 2024
b57af64
remove key_generateor from github workflow
bibash28 May 8, 2024
70672a6
Add some secure storage tests
bibash28 May 8, 2024
6b06e93
Add tests for secure storage
bibash28 May 8, 2024
eff8eb7
Read all can be called any time
bibash28 May 8, 2024
736476c
feat: Update to Interop event verifier fails #2651
bibash28 May 9, 2024
23e9e7d
small bug fix
bibash28 May 10, 2024
633ec43
Add extension and date tests
bibash28 May 10, 2024
ba3ac3f
Add some enum test
bibash28 May 10, 2024
8fedb6a
Add some tests
bibash28 May 13, 2024
5a2cf28
Added more helper functions test
bibash28 May 14, 2024
51423f5
solve app version test of splash cubit
bibash28 May 16, 2024
d6fa196
add some tests
bibash28 May 16, 2024
66e284b
bug fix in the code
bibash28 May 16, 2024
47ecdb1
Add some tests and remove notification code
bibash28 May 17, 2024
b89036d
remove some code of notification
bibash28 May 17, 2024
5b31de6
add more tests
bibash28 May 17, 2024
2162f7a
Add some flutter tests
bibash28 May 20, 2024
cb8c793
Add dialog tests
bibash28 May 21, 2024
a7083e8
add more tests
bibash28 May 22, 2024
d6a8815
some onboarding tests
bibash28 May 22, 2024
469c3d2
Merge branch 'october' into EUDI
hawkbee1 May 23, 2024
198bd74
update intl dependency
hawkbee1 May 23, 2024
8ecbad8
linter + flutter 3.22.0
hawkbee1 May 23, 2024
4ce34a1
Add test for active biometrics
bibash28 May 24, 2024
c3f7630
Merge branch 'october' into EUDI
hawkbee1 May 24, 2024
7d6637d
add some test
bibash28 May 27, 2024
3d7919f
Merge remote-tracking branch 'origin/october' into EUDI
hawkbee1 May 27, 2024
64edda8
[green] refactoring fat function collection
hawkbee1 May 27, 2024
47d844c
Shorten credentialOfferOrPresent in scan_cubit
hawkbee1 May 28, 2024
a073d0a
Initialize tests of scan_cubit
hawkbee1 May 28, 2024
39e0534
fix: Update private key use #2630
bibash28 Apr 30, 2024
03e6c20
feat: Start package creation #2298
bibash28 Apr 30, 2024
6ba77b9
Add some tests in oidc4vc
bibash28 May 2, 2024
e90eb53
feat: Add tests for oidc4vc
bibash28 May 3, 2024
c4b41ca
Add oidc4vc in github test flow
bibash28 May 3, 2024
e006fe8
Add oidc4vc in github test flow
bibash28 May 3, 2024
6abd61d
Add didkit mockup test
bibash28 May 3, 2024
9abbbda
Add didkit mockup test
bibash28 May 3, 2024
87c153c
revert and remove didkit from test
bibash28 May 3, 2024
f49fe1d
optimise some tests
bibash28 May 3, 2024
e2b23e6
Update test for network_test - box-decoration-test - illustration_pag…
bibash28 May 6, 2024
0157b87
Add shared widgets tests
bibash28 May 6, 2024
d18e3ad
Add-update tests basic widgets
bibash28 May 6, 2024
694f373
Add splash cubit test
bibash28 May 7, 2024
293bbe5
Update splash_test.dart
bibash28 May 7, 2024
ee7140c
Add tests for app_theme
bibash28 May 8, 2024
800659f
Update markdown page test
bibash28 May 8, 2024
50e310e
Add tests for cyptocurrency_keys
bibash28 May 8, 2024
41da22c
Remove oidc4vc from test
bibash28 May 8, 2024
1809c9d
Update tests for jwt_decode
bibash28 May 8, 2024
ee9c409
add some tests
bibash28 May 8, 2024
0957628
remove key_generateor from github workflow
bibash28 May 8, 2024
da67e67
Add some secure storage tests
bibash28 May 8, 2024
507c96f
Add tests for secure storage
bibash28 May 8, 2024
17d1586
Read all can be called any time
bibash28 May 8, 2024
0070792
feat: Update to Interop event verifier fails #2651
bibash28 May 9, 2024
b5e105d
small bug fix
bibash28 May 10, 2024
108878e
Add extension and date tests
bibash28 May 10, 2024
879fb21
Add some enum test
bibash28 May 10, 2024
aac3731
Add some tests
bibash28 May 13, 2024
8074dce
Added more helper functions test
bibash28 May 14, 2024
defacba
solve app version test of splash cubit
bibash28 May 16, 2024
2f09b03
add some tests
bibash28 May 16, 2024
f3fd8cb
bug fix in the code
bibash28 May 16, 2024
8497fbb
Add some tests and remove notification code
bibash28 May 17, 2024
9cb2ca5
remove some code of notification
bibash28 May 17, 2024
a09cede
add more tests
bibash28 May 17, 2024
3da0b27
Add some flutter tests
bibash28 May 20, 2024
0a15bde
Add dialog tests
bibash28 May 21, 2024
961ff1b
add more tests
bibash28 May 22, 2024
1684fae
some onboarding tests
bibash28 May 22, 2024
207497c
Add test for active biometrics
bibash28 May 24, 2024
100e550
add some test
bibash28 May 27, 2024
80d5326
use real cubit for onboarding gen phrase
bibash28 May 27, 2024
3582518
add some onboarding tests
bibash28 May 28, 2024
5ba2690
add more onboarding tests
bibash28 May 28, 2024
8755b63
add more onboarding tests
bibash28 May 29, 2024
98c7286
add more onboarding test and routing tests
bibash28 May 30, 2024
46f1f74
some bug fix
bibash28 May 31, 2024
1bd3ca2
update based on what new removed
bibash28 May 31, 2024
32b3111
Merge branch 'october' into EUDI
hawkbee1 May 31, 2024
221d6e8
Merge branch 'EUDI' into october
hawkbee1 May 31, 2024
a89d278
unplug config caching
hawkbee1 May 31, 2024
de0cd26
package update and add some test for pincode but commented for now
bibash28 May 31, 2024
60f5ba0
Add builder in more pages to avoid provider error
bibash28 May 31, 2024
0aa043d
delete fvm config
bibash28 May 31, 2024
0c7bd1f
add some polygon id test
bibash28 May 31, 2024
9698500
add polygon id test
bibash28 Jun 3, 2024
1c114f6
add polygon id in github workflow
bibash28 Jun 3, 2024
99e3e11
remove unused import
bibash28 Jun 3, 2024
5fa34b0
attempt to add didkit tests
bibash28 Jun 3, 2024
96348de
Attempt to pass didkit test
bibash28 Jun 3, 2024
7c99007
Attempt to pass didkit test
bibash28 Jun 3, 2024
cbe4d87
fix bug for polygon Id test
bibash28 Jun 3, 2024
8eb94d2
some update for keygenerator
bibash28 Jun 4, 2024
ca933bb
feat: Update key generator test and update flutter and dart version f…
bibash28 Jun 4, 2024
25e0bd2
update polygon id test
bibash28 Jun 4, 2024
c172c4b
update didkit path
bibash28 Jun 4, 2024
6a29ba1
Update didkit path in github workflow
bibash28 Jun 4, 2024
e9fece4
add oidc4vc in github workflow test
bibash28 Jun 4, 2024
53b56a2
merge pincode from jeprouvemonage
hawkbee1 May 31, 2024
f704680
migrate pincode system from jeprouvemonage
hawkbee1 Jun 3, 2024
5cab5d9
enabling didkit package tests on github
hawkbee1 Jun 4, 2024
395a8aa
update didkit path
hawkbee1 Jun 4, 2024
aaa7122
update symliks for didkit
hawkbee1 Jun 4, 2024
808af5d
update didkit library
hawkbee1 Jun 4, 2024
6de39fb
update didkit linking
hawkbee1 Jun 4, 2024
cb928b2
remove override of workflow
bibash28 Jun 4, 2024
404ada5
test workflow path update for didkit
bibash28 Jun 4, 2024
ae19917
Update oidc4vc.yaml
hawkbee1 Jun 4, 2024
b0764ca
update flutter_package.yaml
hawkbee1 Jun 4, 2024
5caf9da
analyze issue
hawkbee1 Jun 4, 2024
a234456
flutter analyze lib test
hawkbee1 Jun 4, 2024
46984c3
Revert "flutter analyze lib test"
hawkbee1 Jun 4, 2024
9e93b3d
flutter analyze lib test
hawkbee1 Jun 4, 2024
a6e92b4
fix: Remove didkit folder and fix some warning
bibash28 Jun 5, 2024
1bcfb86
run build runner for dependent package
bibash28 Jun 5, 2024
a5f9cd6
fix: initial dir parameter reading
bibash28 Jun 5, 2024
62f4529
fix: Mock secure storage
bibash28 Jun 5, 2024
2b78188
remove trailing comma
bibash28 Jun 5, 2024
7028ff8
fix: Always depend upon the flutter_package.yaml of main branch
bibash28 Jun 5, 2024
5a14eba
feat: Display developer mode for default profile #2654
bibash28 Jun 5, 2024
2a7e782
feat: Use public fallback if universal resolver fails #2665
bibash28 Jun 5, 2024
5c8bcef
fix: Remove linter problems
bibash28 Jun 5, 2024
3365fbd
user pin validation when getting credential
hawkbee1 Jun 5, 2024
99232e7
Merge branch 'october' into test_integration
hawkbee1 Jun 5, 2024
ee6ded1
linter
hawkbee1 Jun 5, 2024
1ceb1f9
CustomColorScheme factorisation
hawkbee1 Jun 5, 2024
09f0296
remove a few CustomColorScheme
hawkbee1 Jun 5, 2024
d78ef5d
remove colorScheme extension
hawkbee1 Jun 5, 2024
3d87a25
Adjust surfaces colors
hawkbee1 Jun 5, 2024
d2bac4a
Migrate CustomTextTheme to standar TextThem
hawkbee1 Jun 10, 2024
4ef05d9
implement requirePushedAuthorizationRequests parameter #2712
bibash28 Jun 10, 2024
67f8532
OIDC4VCI test 10 fails when PAR is false #2712
hawkbee1 Jun 10, 2024
49a3340
parmater bug fix
bibash28 Jun 11, 2024
5bfb4ad
update test
bibash28 Jun 11, 2024
bfdf289
Merge remote-tracking branch 'origin/october' into test_integration
hawkbee1 Jun 11, 2024
332394c
update script.sh
hawkbee1 Jun 11, 2024
1d6e4c3
Merge branch 'test_integration' into textTheme
hawkbee1 Jun 11, 2024
11d366a
Material 3 and compact TextTheme
hawkbee1 Jun 12, 2024
ebd822a
authorization_servers draft 13 #2714
hawkbee1 Jun 14, 2024
8e55c50
[red] draft 13 attribute authorization_servers #2714
hawkbee1 Jun 18, 2024
627f7ef
fix: Solve issue for JsonPath with pre-authorized value
bibash28 Jun 18, 2024
28c862b
refactor: Organise const value for tests
bibash28 Jun 18, 2024
e5d1ec9
fix: Solve OIDC4VP test 6 issue #2650
bibash28 Jun 19, 2024
b9f2fef
fix: Apply timer debounce to avoid bombardment of request within 1 se…
bibash28 Jun 19, 2024
1e4954c
update debouncer placement and cancelling approach #2647
bibash28 Jun 19, 2024
f29c581
fix: Get FAQs and added tests for drawer and help_center_menu #2644
bibash28 Jun 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions .fvm/fvm_config.json

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/credential_manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: credential_manifest

on: [ pull_request, push ]
on: [pull_request, push]

jobs:
build:
uses: TalaoDAO/AltMe/.github/workflows/flutter_package.yaml@main
with:
flutter_channel: stable
flutter_version: 3.19.6
flutter_version: 3.22.1
min_coverage: 30
working_directory: packages/credential_manifest
dart_sdk: 3.3.4
dart_sdk: 3.4.1
6 changes: 3 additions & 3 deletions .github/workflows/cryptocurrency_keys.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: cryptocurrency_keys

on: [ pull_request, push ]
on: [pull_request, push]

jobs:
build:
uses: TalaoDAO/AltMe/.github/workflows/flutter_package.yaml@main
with:
flutter_channel: stable
flutter_version: 3.19.6
flutter_version: 3.22.1
min_coverage: 30
working_directory: packages/cryptocurrency_keys
dart_sdk: 3.3.4
dart_sdk: 3.4.1
14 changes: 14 additions & 0 deletions .github/workflows/did_kit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: did_kit

on: [pull_request, push]

jobs:
build:
uses: TalaoDAO/AltMe/.github/workflows/flutter_package.yaml@main
with:
flutter_channel: stable
flutter_version: 3.22.1
min_coverage: 30
working_directory: packages/did_kit
dart_sdk: 3.4.1
build_runner: false
16 changes: 15 additions & 1 deletion .github/workflows/flutter_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,23 @@ jobs:

- name: 📦 Install Dependencies
run: |
if grep -q 'path: ../../../didkit/lib/flutter' ../did_kit/pubspec.yaml; then
sed -i 's|path: ../../../didkit/lib/flutter|git:\n url: https://github.com/spruceid/didkit.git\n path: lib/flutter|' ../did_kit/pubspec.yaml
fi
flutter pub global activate very_good_cli
very_good packages get --recursive --ignore=${{inputs.package_get_excludes}}

- name: 📦 Run build_runner for nested package if necessary
run: |
if grep -q 'path: ../credential_manifest' pubspec.yaml; then
initial_dir=$(pwd)
echo $initial_dir
cd ../credential_manifest
flutter pub get
dart pub run build_runner build --delete-conflicting-outputs
cd $initial_dir
fi

- name: ⚙️ Run Setup
if: "${{inputs.setup != ''}}"
run: ${{inputs.setup}}
Expand Down Expand Up @@ -131,4 +145,4 @@ jobs:
with:
path: ${{inputs.working_directory}}/coverage/lcov.info
exclude: ${{inputs.coverage_excludes}}
min_coverage: ${{inputs.min_coverage}}
min_coverage: ${{inputs.min_coverage}}
6 changes: 3 additions & 3 deletions .github/workflows/jwt_decode.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: jwt_decode

on: [ pull_request, push ]
on: [pull_request, push]

jobs:
build:
uses: TalaoDAO/AltMe/.github/workflows/flutter_package.yaml@main
with:
flutter_channel: stable
flutter_version: 3.19.6
flutter_version: 3.22.1
min_coverage: 30
working_directory: packages/jwt_decode
dart_sdk: 3.3.4
dart_sdk: 3.4.1
build_runner: false
6 changes: 3 additions & 3 deletions .github/workflows/key_generator.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: key_generator

on: [ pull_request, push ]
on: [pull_request, push]

jobs:
build:
uses: TalaoDAO/AltMe/.github/workflows/flutter_package.yaml@main
with:
flutter_channel: stable
flutter_version: 3.19.6
flutter_version: 3.22.1
min_coverage: 30
working_directory: packages/key_generator
dart_sdk: 3.3.4
dart_sdk: 3.4.1
build_runner: false
14 changes: 14 additions & 0 deletions .github/workflows/oidc4vc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: oidc4vc

on: [pull_request, push]

jobs:
build:
uses: TalaoDAO/AltMe/.github/workflows/flutter_package.yaml@main
with:
flutter_channel: stable
flutter_version: 3.22.1
min_coverage: 30
working_directory: packages/oidc4vc
dart_sdk: 3.4.1
build_runner: true
6 changes: 3 additions & 3 deletions .github/workflows/polygonid.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: polygonid

on: [ pull_request, push ]
on: [pull_request, push]

jobs:
build:
uses: TalaoDAO/AltMe/.github/workflows/flutter_package.yaml@main
with:
flutter_channel: stable
flutter_version: 3.19.6
flutter_version: 3.22.1
min_coverage: 30
working_directory: packages/polygonid
dart_sdk: 3.3.4
dart_sdk: 3.4.1
build_runner: false
14 changes: 14 additions & 0 deletions .github/workflows/secure_storage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: secure_storage

on: [pull_request, push]

jobs:
build:
uses: TalaoDAO/AltMe/.github/workflows/flutter_package.yaml@main
with:
flutter_channel: stable
flutter_version: 3.22.1
min_coverage: 30
working_directory: packages/secure_storage
dart_sdk: 3.4.1
build_runner: false
70 changes: 29 additions & 41 deletions lib/app/shared/dio_client/dio_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,35 +55,14 @@ class DioClient {
bool isCachingEnabled = false,
}) async {
try {
final isInternetAvailable = await isConnected();
if (!isInternetAvailable) {
throw NetworkException(
message: NetworkError.NETWORK_ERROR_NO_INTERNET_CONNECTION,
);
}

final stopwatch = Stopwatch()..start();
await getSpecificHeader(uri, headers);
log.i('uri - $uri');

final cachedData = await secureStorageProvider.get(uri);
dynamic response;

if (!isCachingEnabled || cachedData == null) {
response = await dio.get<dynamic>(
uri,
queryParameters: queryParameters,
options: options,
cancelToken: cancelToken,
onReceiveProgress: onReceiveProgress,
);
} else {
final cachedDataJson = jsonDecode(cachedData);
final expiry = int.parse(cachedDataJson['expiry'].toString());

final isExpired = DateTime.now().millisecondsSinceEpoch > expiry;

if (isExpired) {
if (isCachingEnabled) {
final cachedData = await secureStorageProvider.get(uri);
if (cachedData == null) {
response = await dio.get<dynamic>(
uri,
queryParameters: queryParameters,
Expand All @@ -92,18 +71,34 @@ class DioClient {
onReceiveProgress: onReceiveProgress,
);
} else {
/// directly return cached data
/// returned here to avoid the caching override everytime
final response = await cachedDataJson['data'];
log.i('Time - ${stopwatch.elapsed}');
return response;
final cachedDataJson = jsonDecode(cachedData);
final expiry = int.parse(cachedDataJson['expiry'].toString());

final isExpired = DateTime.now().millisecondsSinceEpoch > expiry;
if (isExpired) {
response = await dio.get<dynamic>(
uri,
queryParameters: queryParameters,
options: options,
cancelToken: cancelToken,
onReceiveProgress: onReceiveProgress,
);
} else {
/// directly return cached data
/// returned here to avoid the caching override everytime
final response = await cachedDataJson['data'];
return response;
}
}
} else {
response = await dio.get<dynamic>(
uri,
queryParameters: queryParameters,
options: options,
cancelToken: cancelToken,
onReceiveProgress: onReceiveProgress,
);
}
final expiry =
DateTime.now().add(const Duration(days: 2)).millisecondsSinceEpoch;

final value = {'expiry': expiry, 'data': response.data};
await secureStorageProvider.set(uri, jsonEncode(value));

log.i('Time - ${stopwatch.elapsed}');
return response.data;
Expand Down Expand Up @@ -153,13 +148,6 @@ class DioClient {
},
}) async {
try {
final isInternetAvailable = await isConnected();
if (!isInternetAvailable) {
throw NetworkException(
message: NetworkError.NETWORK_ERROR_NO_INTERNET_CONNECTION,
);
}

final stopwatch = Stopwatch()..start();
await getSpecificHeader(uri, headers);
final response = await dio.post<dynamic>(
Expand Down
4 changes: 1 addition & 3 deletions lib/app/shared/enum/credential_category.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:altme/l10n/l10n.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';

enum CredentialCategory {
advantagesCards,
Expand Down Expand Up @@ -80,8 +79,7 @@ extension CredentialCategoryX on CredentialCategory {
}
}

CredentialCategoryConfig config(BuildContext context) {
final l10n = context.l10n;
CredentialCategoryConfig config(AppLocalizations l10n) {
switch (this) {
case CredentialCategory.advantagesCards:
return CredentialCategoryConfig(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:altme/app/app.dart';
import 'package:altme/l10n/l10n.dart';
import 'package:altme/theme/theme.dart';
import 'package:flutter/material.dart';

extension CredentialStatusExtension on CredentialStatus {
Expand Down Expand Up @@ -44,15 +43,15 @@ extension CredentialStatusExtension on CredentialStatus {
Color color(BuildContext context) {
switch (this) {
case CredentialStatus.active:
return Theme.of(context).colorScheme.activeColor;
return Theme.of(context).colorScheme.onTertiary;
case CredentialStatus.invalidStatus:
case CredentialStatus.expired:
case CredentialStatus.pending:
case CredentialStatus.unknown:
case CredentialStatus.invalidSignature:
case CredentialStatus.statusListInvalidSignature:
case CredentialStatus.noStatus:
return Theme.of(context).colorScheme.inactiveColor;
return Theme.of(context).colorScheme.error;
}
}
}
1 change: 1 addition & 0 deletions lib/app/shared/enum/status/status.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export 'app_status.dart';
export 'beacon_status.dart';
export 'credential_detail_tab_status.dart';
export 'credential_status.dart';
export 'credential_status_extension.dart';
export 'credentials_status.dart';
export 'home_status.dart';
export 'kyc_verification_status.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/app/shared/enum/type/message_type/message_type.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:altme/app/shared/constants/icon_strings.dart';
import 'package:altme/theme/theme.dart';
import 'package:flutter/material.dart';

part 'message_type_extension.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ extension MessageTypeX on MessageType {
Color getColor(BuildContext context) {
switch (this) {
case MessageType.error:
return Theme.of(context).colorScheme.alertErrorMessage;
return Theme.of(context).colorScheme.error;
case MessageType.warning:
return Theme.of(context).colorScheme.alertWarningMessage;
return Theme.of(context).colorScheme.onErrorContainer;
case MessageType.info:
return Theme.of(context).colorScheme.alertInfoMessage;
return Theme.of(context).colorScheme.outline;
case MessageType.success:
return Theme.of(context).colorScheme.alertSuccessMessage;
return Theme.of(context).colorScheme.onTertiary;
}
}

Expand Down
3 changes: 1 addition & 2 deletions lib/app/shared/extension/extension.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export 'bigint_extension.dart';
export 'credential_status.dart';
export 'double_extension.dart';
export 'iterable_extension.dart';
export 'string_extension.dart';
export 'unit8List_extension.dart';
export 'unit8_list_extension.dart';
Loading
Loading