Skip to content

Commit 9b2936b

Browse files
committed
update dependencies and local theme colors
1 parent 377b635 commit 9b2936b

13 files changed

+80
-23
lines changed

app/lib/presentation/resources/custom_network_image.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import 'package:app/presentation/themes/local_theme.dart';
12
import 'package:flutter/material.dart';
23
import 'package:flutter_svg/svg.dart';
34

@@ -45,7 +46,7 @@ class CustomNetworkImage extends StatelessWidget {
4546
decoration: BoxDecoration(boxShadow: [
4647
if ((shadow ?? false))
4748
BoxShadow(
48-
color: Colors.black.withOpacity(_shadowOpacity),
49+
color: Colors.black.shadow(_shadowOpacity),
4950
spreadRadius: 0,
5051
blurRadius: _blurRadius,
5152
offset: const Offset(5, 5),
@@ -62,7 +63,7 @@ class CustomNetworkImage extends StatelessWidget {
6263
decoration: BoxDecoration(boxShadow: [
6364
if ((shadow ?? false))
6465
BoxShadow(
65-
color: Colors.black.withOpacity(_shadowOpacity),
66+
color: Colors.black.shadow(_shadowOpacity),
6667
spreadRadius: 0,
6768
blurRadius: _blurRadius,
6869
offset: const Offset(5, 5),

app/lib/presentation/resources/images.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ class _SvgImage {
9999
Alignment alignment = Alignment.center,
100100
String? semanticLabel,
101101
String? package,
102-
@visibleForTesting bool isWeb = false,
103102
}) {
104103
return SvgPicture.asset(
105104
assetPath,

app/lib/presentation/themes/local_theme.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,14 @@ abstract class LocalTheme {
250250
}
251251

252252
extension ColorShadow on Color {
253+
/// Returns a color with the specified shadow opacity.
254+
/// If no opacity is specified, it defaults to 1.0 (fully opaque).
255+
/// @param opacity value between 0.0 and 1.0
256+
Color shadow(double opacity) {
257+
assert(opacity >= 0.0 && opacity <= 1.0);
258+
return withValues(alpha: opacity);
259+
}
260+
253261
Color variant(int variant) {
254262
try {
255263
return (this as MaterialColor)[variant] ?? this;

app/lib/presentation/themes/resources/dark_theme_colors.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class DarkThemeColors implements ThemeColors {
1111
* **/
1212
@override
1313
// TODO: implement primary
14-
MaterialColor get primary => const MaterialColor(40, {
14+
MaterialColor get primary => const MaterialColor(0xFFFFFFDE, {
1515
0: Color(0xFFFFFFDE),
1616
10: Color(0xFFFFFFDE),
1717
20: Color(0xFFFFFFDE),
@@ -35,7 +35,7 @@ class DarkThemeColors implements ThemeColors {
3535
* **/
3636
@override
3737
// TODO: implement secondary
38-
MaterialColor get secondary => const MaterialColor(40, {
38+
MaterialColor get secondary => const MaterialColor(0xFFFFFFFD, {
3939
0: Color(0xFFFFFFDE),
4040
10: Color(0xFF1D192B),
4141
20: Color(0xFFFFFFDE),
@@ -59,7 +59,7 @@ class DarkThemeColors implements ThemeColors {
5959
* **/
6060
@override
6161
// TODO: implement tertiary
62-
MaterialColor get tertiary => const MaterialColor(40, {
62+
MaterialColor get tertiary => const MaterialColor(0xFFFFFFDE, {
6363
0: Color(0xFFFFFFDE),
6464
10: Color(0xFFFFFFDE),
6565
20: Color(0xFFFFFFDE),
@@ -83,7 +83,7 @@ class DarkThemeColors implements ThemeColors {
8383
* **/
8484
@override
8585
// TODO: implement error
86-
MaterialColor get error => const MaterialColor(40, {
86+
MaterialColor get error => const MaterialColor(0xFFB3261E, {
8787
0: Color(0xFFFFFFDE),
8888
10: Color(0xFF410E0B),
8989
20: Color(0xFFF0524D),
@@ -106,7 +106,7 @@ class DarkThemeColors implements ThemeColors {
106106
* **/
107107
@override
108108
// TODO: implement neutral
109-
MaterialColor get neutral => const MaterialColor(40, {
109+
MaterialColor get neutral => const MaterialColor(0xFF410E0B, {
110110
0: Color(0xFF410E0B),
111111
10: Color(0xFF410E0B),
112112
20: Color(0xFF410E0B),
@@ -130,7 +130,7 @@ class DarkThemeColors implements ThemeColors {
130130
* **/
131131
@override
132132
// TODO: implement neutralVariant
133-
MaterialColor get neutralVariant => const MaterialColor(40, {
133+
MaterialColor get neutralVariant => const MaterialColor(0xFFFDDDDE, {
134134
0: Color(0xFF000000),
135135
10: Color(0xFF49454F),
136136
20: Color(0xFFF0524D),

app/lib/presentation/themes/resources/light_theme_colors.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class LightThemeColors implements ThemeColors {
1010
* **/
1111
@override
1212
// TODO: implement primary
13-
MaterialColor get primary => const MaterialColor(40, {
13+
MaterialColor get primary => const MaterialColor(0xFF6750A4, {
1414
0: Color(0xFF000000),
1515
10: Color(0xFF21005D),
1616
20: Color(0xFFF0524D),
@@ -34,7 +34,7 @@ class LightThemeColors implements ThemeColors {
3434
* **/
3535
@override
3636
// TODO: implement secondary
37-
MaterialColor get secondary => const MaterialColor(40, {
37+
MaterialColor get secondary => const MaterialColor(0xFF625B71, {
3838
0: Color(0xFF000000),
3939
10: Color(0xFF1D192B),
4040
20: Color(0xFFF0524D),
@@ -58,7 +58,7 @@ class LightThemeColors implements ThemeColors {
5858
* **/
5959
@override
6060
// TODO: implement tertiary
61-
MaterialColor get tertiary => const MaterialColor(40, {
61+
MaterialColor get tertiary => const MaterialColor(0xFF7D5260, {
6262
0: Color(0xFF000000),
6363
10: Color(0xFF31111D),
6464
20: Color(0xFFF0524D),
@@ -82,7 +82,7 @@ class LightThemeColors implements ThemeColors {
8282
* **/
8383
@override
8484
// TODO: implement error
85-
MaterialColor get error => const MaterialColor(40, {
85+
MaterialColor get error => const MaterialColor(0xFFB3261E, {
8686
0: Color(0xFF000000),
8787
10: Color(0xFF410E0B),
8888
20: Color(0xFFF0524D),
@@ -105,7 +105,7 @@ class LightThemeColors implements ThemeColors {
105105
* **/
106106
@override
107107
// TODO: implement neutral
108-
MaterialColor get neutral => const MaterialColor(40, {
108+
MaterialColor get neutral => const MaterialColor(0xFFFFFFFF, {
109109
0: Color(0xFFFFFFFF),
110110
10: Color(0xFFFFFFFF),
111111
20: Color(0xFFFFFFFF),
@@ -129,7 +129,7 @@ class LightThemeColors implements ThemeColors {
129129
* **/
130130
@override
131131
// TODO: implement neutralVariant
132-
MaterialColor get neutralVariant => const MaterialColor(40, {
132+
MaterialColor get neutralVariant => const MaterialColor(0xFFF0524D, {
133133
0: Color(0xFF000000),
134134
10: Color(0xFF49454F),
135135
20: Color(0xFFF0524D),
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//
2+
// Generated file. Do not edit.
3+
//
4+
5+
// clang-format off
6+
7+
#include "generated_plugin_registrant.h"
8+
9+
10+
void fl_register_plugins(FlPluginRegistry* registry) {
11+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// Generated file. Do not edit.
3+
//
4+
5+
// clang-format off
6+
7+
#ifndef GENERATED_PLUGIN_REGISTRANT_
8+
#define GENERATED_PLUGIN_REGISTRANT_
9+
10+
#include <flutter_linux/flutter_linux.h>
11+
12+
// Registers Flutter plugins.
13+
void fl_register_plugins(FlPluginRegistry* registry);
14+
15+
#endif // GENERATED_PLUGIN_REGISTRANT_
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# Generated file, do not edit.
3+
#
4+
5+
list(APPEND FLUTTER_PLUGIN_LIST
6+
)
7+
8+
list(APPEND FLUTTER_FFI_PLUGIN_LIST
9+
)
10+
11+
set(PLUGIN_BUNDLED_LIBRARIES)
12+
13+
foreach(plugin ${FLUTTER_PLUGIN_LIST})
14+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
15+
target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
16+
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
17+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
18+
endforeach(plugin)
19+
20+
foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
21+
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
22+
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
23+
endforeach(ffi_plugin)

app/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ environment:
2323
dependencies:
2424
flutter:
2525
sdk: flutter
26-
flutter_svg: ^2.0.5
26+
flutter_svg: ^2.2.0
2727
shared_preferences: ^2.5.3
28-
intl: ^0.19.0
28+
intl: ^0.20.2
2929
intl_utils: ^2.8.7
3030
cupertino_icons: ^1.0.5
3131
dio: ^5.1.2
@@ -56,7 +56,7 @@ dependencies:
5656
example_presentation:
5757
path: ../example/example_presentation
5858

59-
http: ^0.13.6
59+
http: ^1.5.0
6060
melos: ^3.4.0
6161
dev: ^1.0.0
6262

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/permission_handler_apple-9.1.4/","native_build":true,"dependencies":[]}],"android":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/permission_handler_android-10.3.6/","native_build":true,"dependencies":[]}],"macos":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":false,"dependencies":[]}],"windows":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","native_build":false,"dependencies":[]},{"name":"permission_handler_windows","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/permission_handler_windows-0.1.3/","native_build":true,"dependencies":[]}],"web":[{"name":"package_info_plus","path":"/Users/fabianvalencia/.pub-cache/hosted/pub.dev/package_info_plus-4.2.0/","dependencies":[]}]},"dependencyGraph":[{"name":"package_info_plus","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]}],"date_created":"2024-05-02 16:35:44.210631","version":"3.19.3"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"package_info_plus","path":"/Users/rr/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"permission_handler_apple","path":"/Users/rr/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.7/","native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"package_info_plus","path":"/Users/rr/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"permission_handler_android","path":"/Users/rr/.pub-cache/hosted/pub.dev/permission_handler_android-12.1.0/","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"package_info_plus","path":"/Users/rr/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[{"name":"package_info_plus","path":"/Users/rr/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":false,"dependencies":[],"dev_dependency":false}],"windows":[{"name":"package_info_plus","path":"/Users/rr/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"permission_handler_windows","path":"/Users/rr/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[],"dev_dependency":false}],"web":[{"name":"package_info_plus","path":"/Users/rr/.pub-cache/hosted/pub.dev/package_info_plus-8.3.1/","dependencies":[],"dev_dependency":false},{"name":"permission_handler_html","path":"/Users/rr/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+5/","dependencies":[],"dev_dependency":false}]},"dependencyGraph":[{"name":"package_info_plus","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]}],"date_created":"2025-09-01 09:52:41.772309","version":"3.32.8","swift_package_manager_enabled":{"ios":false,"macos":false}}

0 commit comments

Comments
 (0)