Skip to content

Commit

Permalink
fix: ui kit crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-molinski committed Feb 5, 2025
1 parent b763800 commit 5b7aaa5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class TimezoneDateTimeText extends StatelessWidget {
Widget build(BuildContext context) {
final theme = Theme.of(context);
final textTheme = theme.textTheme;
final timezone = context.select<SessionCubit, TimezonePreferences>(
(value) => value.state.settings.timezone,
final timezone = context.select<SessionCubit?, TimezonePreferences>(
(value) => value?.state.settings.timezone ?? TimezonePreferences.local,
);

final effectiveData = switch (timezone) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,10 @@ class _VoicesTextFieldState extends State<VoicesTextField> {
case VoicesTextFieldStatus.none:
return null;
case VoicesTextFieldStatus.success:
return VoicesAssets.icons.checkCircle.buildIcon(color: color);
return VoicesAssets.icons.checkCircle.buildIcon(
color: color,
fit: BoxFit.scaleDown,
);
case VoicesTextFieldStatus.warning:
// TODO(dtscalac): this is not the right icon, it should be outlined
// & rounded, ask designers to provide it and update it
Expand Down

0 comments on commit 5b7aaa5

Please sign in to comment.