From e365b28160f5be46ce6a2defd8bff714703a9878 Mon Sep 17 00:00:00 2001 From: FabianVarela Date: Mon, 2 Dec 2024 22:59:04 -0500 Subject: [PATCH] Modify code --- lib/ui/form_category_view.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ui/form_category_view.dart b/lib/ui/form_category_view.dart index fb945c2..e299882 100644 --- a/lib/ui/form_category_view.dart +++ b/lib/ui/form_category_view.dart @@ -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;