Skip to content

Commit

Permalink
Modify code
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianVarela committed Dec 3, 2024
1 parent 24b4690 commit e365b28
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/ui/form_category_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ class FormCategoryView extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) {
final categoryState = ref.watch(categoryViewModelProvider);

final isDesktopOrTablet = [
ScreenType.desktop,
ScreenType.tablet,
].contains(context.formFactor);
final isDesktopOrTablet = [ScreenType.desktop, ScreenType.tablet].contains(
context.formFactor,
);

final desktopWidth = isDesktopOrTablet ? 600.0 : null;
final mobileWidth = !context.isPortrait ? 400.0 : null;
Expand Down

0 comments on commit e365b28

Please sign in to comment.