From c47fbac5feaa821bb18c77be56b6702f88eed525 Mon Sep 17 00:00:00 2001 From: MohammadTaha Basiri Date: Thu, 10 Mar 2022 14:34:29 +0330 Subject: [PATCH] web bugs fixed --- lib/routes/route_generator.dart | 6 +++++- lib/views/home/radar/widgets/category_item.dart | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/routes/route_generator.dart b/lib/routes/route_generator.dart index 205d9b7..205dcb6 100644 --- a/lib/routes/route_generator.dart +++ b/lib/routes/route_generator.dart @@ -170,7 +170,11 @@ class RouteGenerator { final shortestSide = MediaQuery.of(context).size.shortestSide; final bool useMobileLayout = shortestSide < 600; if (kIsWeb && !useMobileLayout) { - return Center(child: AspectRatio(aspectRatio: 9 / 16, child: page)); + return Container( + color: Theme.of(context).colorScheme.background, + alignment: Alignment.center, + child: AspectRatio(aspectRatio: 9 / 16, child: page), + ); } return Container( color: Theme.of(context).colorScheme.surface, diff --git a/lib/views/home/radar/widgets/category_item.dart b/lib/views/home/radar/widgets/category_item.dart index e223d00..faee630 100644 --- a/lib/views/home/radar/widgets/category_item.dart +++ b/lib/views/home/radar/widgets/category_item.dart @@ -66,10 +66,10 @@ class CategoryItem extends StatelessWidget { isVisible: !isColapsed, child: Container( width: !_useWebMobileLayout(context) - ? _width(context) / 1.75 + ? _width(context) / 2 : ds.width / 5, height: !_useWebMobileLayout(context) - ? _width(context) / 1.75 + ? _width(context) / 2 : ds.width / 5, decoration: BoxDecoration( color: Theme.of(context).colorScheme.surface,