mirror of
https://github.com/immich-app/immich.git
synced 2025-11-21 15:30:41 +09:00
chore(mobile): update casting to new asset viewer (#19994)
* update casting to new asset viewer * handle websocket --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
@@ -6,6 +6,7 @@ class BaseActionButton extends StatelessWidget {
|
||||
super.key,
|
||||
required this.label,
|
||||
required this.iconData,
|
||||
this.iconColor,
|
||||
this.onPressed,
|
||||
this.onLongPressed,
|
||||
this.maxWidth = 90.0,
|
||||
@@ -15,6 +16,7 @@ class BaseActionButton extends StatelessWidget {
|
||||
|
||||
final String label;
|
||||
final IconData iconData;
|
||||
final Color? iconColor;
|
||||
final double maxWidth;
|
||||
final double? minWidth;
|
||||
final bool menuItem;
|
||||
@@ -27,7 +29,8 @@ class BaseActionButton extends StatelessWidget {
|
||||
minWidth ?? (context.isMobile ? context.width / 4.5 : 75.0);
|
||||
final iconTheme = IconTheme.of(context);
|
||||
final iconSize = iconTheme.size ?? 24.0;
|
||||
final iconColor = iconTheme.color ?? context.themeData.iconTheme.color;
|
||||
final iconColor =
|
||||
this.iconColor ?? iconTheme.color ?? context.themeData.iconTheme.color;
|
||||
final textColor = context.themeData.textTheme.labelLarge?.color;
|
||||
|
||||
if (menuItem) {
|
||||
|
||||
Reference in New Issue
Block a user