Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/lib/presentation/resources/custom_network_image.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:app/presentation/themes/local_theme.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';

Expand Down Expand Up @@ -45,7 +46,7 @@ class CustomNetworkImage extends StatelessWidget {
decoration: BoxDecoration(boxShadow: [
if ((shadow ?? false))
BoxShadow(
color: Colors.black.withOpacity(_shadowOpacity),
color: Colors.black.shadow(_shadowOpacity),
spreadRadius: 0,
blurRadius: _blurRadius,
offset: const Offset(5, 5),
Expand All @@ -62,7 +63,7 @@ class CustomNetworkImage extends StatelessWidget {
decoration: BoxDecoration(boxShadow: [
if ((shadow ?? false))
BoxShadow(
color: Colors.black.withOpacity(_shadowOpacity),
color: Colors.black.shadow(_shadowOpacity),
spreadRadius: 0,
blurRadius: _blurRadius,
offset: const Offset(5, 5),
Expand Down
1 change: 0 additions & 1 deletion app/lib/presentation/resources/images.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ class _SvgImage {
Alignment alignment = Alignment.center,
String? semanticLabel,
String? package,
@visibleForTesting bool isWeb = false,
}) {
return SvgPicture.asset(
assetPath,
Expand Down
8 changes: 8 additions & 0 deletions app/lib/presentation/themes/local_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@ abstract class LocalTheme {
}

extension ColorShadow on Color {
/// Returns a color with the specified shadow opacity.
/// If no opacity is specified, it defaults to 1.0 (fully opaque).
/// @param opacity value between 0.0 and 1.0
Color shadow(double opacity) {
assert(opacity >= 0.0 && opacity <= 1.0);
return withValues(alpha: opacity);
}

Color variant(int variant) {
try {
return (this as MaterialColor)[variant] ?? this;
Expand Down
12 changes: 6 additions & 6 deletions app/lib/presentation/themes/resources/dark_theme_colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DarkThemeColors implements ThemeColors {
* **/
@override
// TODO: implement primary
MaterialColor get primary => const MaterialColor(40, {
MaterialColor get primary => const MaterialColor(0xFFFFFFDE, {
0: Color(0xFFFFFFDE),
10: Color(0xFFFFFFDE),
20: Color(0xFFFFFFDE),
Expand All @@ -35,7 +35,7 @@ class DarkThemeColors implements ThemeColors {
* **/
@override
// TODO: implement secondary
MaterialColor get secondary => const MaterialColor(40, {
MaterialColor get secondary => const MaterialColor(0xFFFFFFFD, {
0: Color(0xFFFFFFDE),
10: Color(0xFF1D192B),
20: Color(0xFFFFFFDE),
Expand All @@ -59,7 +59,7 @@ class DarkThemeColors implements ThemeColors {
* **/
@override
// TODO: implement tertiary
MaterialColor get tertiary => const MaterialColor(40, {
MaterialColor get tertiary => const MaterialColor(0xFFFFFFDE, {
0: Color(0xFFFFFFDE),
10: Color(0xFFFFFFDE),
20: Color(0xFFFFFFDE),
Expand All @@ -83,7 +83,7 @@ class DarkThemeColors implements ThemeColors {
* **/
@override
// TODO: implement error
MaterialColor get error => const MaterialColor(40, {
MaterialColor get error => const MaterialColor(0xFFB3261E, {
0: Color(0xFFFFFFDE),
10: Color(0xFF410E0B),
20: Color(0xFFF0524D),
Expand All @@ -106,7 +106,7 @@ class DarkThemeColors implements ThemeColors {
* **/
@override
// TODO: implement neutral
MaterialColor get neutral => const MaterialColor(40, {
MaterialColor get neutral => const MaterialColor(0xFF410E0B, {
0: Color(0xFF410E0B),
10: Color(0xFF410E0B),
20: Color(0xFF410E0B),
Expand All @@ -130,7 +130,7 @@ class DarkThemeColors implements ThemeColors {
* **/
@override
// TODO: implement neutralVariant
MaterialColor get neutralVariant => const MaterialColor(40, {
MaterialColor get neutralVariant => const MaterialColor(0xFFFDDDDE, {
0: Color(0xFF000000),
10: Color(0xFF49454F),
20: Color(0xFFF0524D),
Expand Down
12 changes: 6 additions & 6 deletions app/lib/presentation/themes/resources/light_theme_colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LightThemeColors implements ThemeColors {
* **/
@override
// TODO: implement primary
MaterialColor get primary => const MaterialColor(40, {
MaterialColor get primary => const MaterialColor(0xFF6750A4, {
0: Color(0xFF000000),
10: Color(0xFF21005D),
20: Color(0xFFF0524D),
Expand All @@ -34,7 +34,7 @@ class LightThemeColors implements ThemeColors {
* **/
@override
// TODO: implement secondary
MaterialColor get secondary => const MaterialColor(40, {
MaterialColor get secondary => const MaterialColor(0xFF625B71, {
0: Color(0xFF000000),
10: Color(0xFF1D192B),
20: Color(0xFFF0524D),
Expand All @@ -58,7 +58,7 @@ class LightThemeColors implements ThemeColors {
* **/
@override
// TODO: implement tertiary
MaterialColor get tertiary => const MaterialColor(40, {
MaterialColor get tertiary => const MaterialColor(0xFF7D5260, {
0: Color(0xFF000000),
10: Color(0xFF31111D),
20: Color(0xFFF0524D),
Expand All @@ -82,7 +82,7 @@ class LightThemeColors implements ThemeColors {
* **/
@override
// TODO: implement error
MaterialColor get error => const MaterialColor(40, {
MaterialColor get error => const MaterialColor(0xFFB3261E, {
0: Color(0xFF000000),
10: Color(0xFF410E0B),
20: Color(0xFFF0524D),
Expand All @@ -105,7 +105,7 @@ class LightThemeColors implements ThemeColors {
* **/
@override
// TODO: implement neutral
MaterialColor get neutral => const MaterialColor(40, {
MaterialColor get neutral => const MaterialColor(0xFFFFFFFF, {
0: Color(0xFFFFFFFF),
10: Color(0xFFFFFFFF),
20: Color(0xFFFFFFFF),
Expand All @@ -129,7 +129,7 @@ class LightThemeColors implements ThemeColors {
* **/
@override
// TODO: implement neutralVariant
MaterialColor get neutralVariant => const MaterialColor(40, {
MaterialColor get neutralVariant => const MaterialColor(0xFFF0524D, {
0: Color(0xFF000000),
10: Color(0xFF49454F),
20: Color(0xFFF0524D),
Expand Down
11 changes: 11 additions & 0 deletions app/linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// Generated file. Do not edit.
//

// clang-format off

#include "generated_plugin_registrant.h"


void fl_register_plugins(FlPluginRegistry* registry) {
}
15 changes: 15 additions & 0 deletions app/linux/flutter/generated_plugin_registrant.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// Generated file. Do not edit.
//

// clang-format off

#ifndef GENERATED_PLUGIN_REGISTRANT_
#define GENERATED_PLUGIN_REGISTRANT_

#include <flutter_linux/flutter_linux.h>

// Registers Flutter plugins.
void fl_register_plugins(FlPluginRegistry* registry);

#endif // GENERATED_PLUGIN_REGISTRANT_
23 changes: 23 additions & 0 deletions app/linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Generated file, do not edit.
#

list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
)

set(PLUGIN_BUNDLED_LIBRARIES)

foreach(plugin ${FLUTTER_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
endforeach(plugin)

foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
endforeach(ffi_plugin)
6 changes: 3 additions & 3 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ environment:
dependencies:
flutter:
sdk: flutter
flutter_svg: ^2.0.5
flutter_svg: ^2.2.0
shared_preferences: ^2.5.3
intl: ^0.19.0
intl: ^0.20.2
intl_utils: ^2.8.7
cupertino_icons: ^1.0.5
dio: ^5.1.2
Expand Down Expand Up @@ -56,7 +56,7 @@ dependencies:
example_presentation:
path: ../example/example_presentation

http: ^0.13.6
http: ^1.5.0
melos: ^3.4.0
dev: ^1.0.0

Expand Down
2 changes: 1 addition & 1 deletion modules/common/.flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -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"}
{"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}}
4 changes: 2 additions & 2 deletions modules/common/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ environment:
dependencies:
flutter:
sdk: flutter
intl: ^0.19.0
intl_utils: ^2.8.6
intl: ^0.20.2
intl_utils: ^2.8.11
cupertino_icons: ^1.0.5
async: ^2.11.0
flutter_bloc: ^8.1.2
Expand Down
Loading