From f4919c3dec20d89d21e1da88d5da3b2b9f324ad3 Mon Sep 17 00:00:00 2001 From: Shubham Singh Date: Tue, 1 Oct 2024 23:46:06 +0530 Subject: [PATCH] Frontend: Fix HalfOnionDomeContainers not considering status bar height --- frontend/lib/features/auth/view/login_dialog.dart | 2 +- frontend/lib/features/dashboard/view/task_count_section.dart | 3 ++- frontend/lib/features/home/view/setup_profile_section.dart | 2 +- frontend/lib/features/vendors/view/location_selector.dart | 3 ++- frontend/pubspec.yaml | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/lib/features/auth/view/login_dialog.dart b/frontend/lib/features/auth/view/login_dialog.dart index 940abe0..dcae965 100644 --- a/frontend/lib/features/auth/view/login_dialog.dart +++ b/frontend/lib/features/auth/view/login_dialog.dart @@ -73,7 +73,7 @@ class _LoginDialogState extends ConsumerState { validator: (password) => password?.isNotEmpty ?? false ? null : 'Please enter a password', - keyboardType: TextInputType.emailAddress, + keyboardType: TextInputType.visiblePassword, ), if (loginState.hasError) Padding( diff --git a/frontend/lib/features/dashboard/view/task_count_section.dart b/frontend/lib/features/dashboard/view/task_count_section.dart index 352de80..1887247 100644 --- a/frontend/lib/features/dashboard/view/task_count_section.dart +++ b/frontend/lib/features/dashboard/view/task_count_section.dart @@ -1,3 +1,4 @@ +import 'package:awesome_extensions/awesome_extensions.dart'; import 'package:flutter/material.dart'; import 'package:frontend/common/view/app_colors.dart'; import 'package:frontend/common/view/dta_app_bar.dart'; @@ -10,7 +11,7 @@ class TaskCountSection extends StatelessWidget { @override Widget build(BuildContext context) { return HalfOnionDomeContainer( - height: 276, + height: 276 + context.mqViewPadding.top, child: Column( children: [ const DTAAppBar(title: 'Dashboard'), diff --git a/frontend/lib/features/home/view/setup_profile_section.dart b/frontend/lib/features/home/view/setup_profile_section.dart index 1d90b10..adbc21b 100644 --- a/frontend/lib/features/home/view/setup_profile_section.dart +++ b/frontend/lib/features/home/view/setup_profile_section.dart @@ -22,7 +22,7 @@ class SetupProfileSection extends ConsumerWidget { return HalfOnionDomeContainer( width: context.width, - height: 350, + height: 350 + context.mqViewPadding.top, child: Stack( children: [ Image.asset( diff --git a/frontend/lib/features/vendors/view/location_selector.dart b/frontend/lib/features/vendors/view/location_selector.dart index 084826c..423ad2e 100644 --- a/frontend/lib/features/vendors/view/location_selector.dart +++ b/frontend/lib/features/vendors/view/location_selector.dart @@ -1,3 +1,4 @@ +import 'package:awesome_extensions/awesome_extensions.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/svg.dart'; import 'package:frontend/common/view/app_colors.dart'; @@ -59,7 +60,7 @@ class _LocationSelectorState extends State { Assets.imageLocationAgra, height: 104, ), - const SizedBox(height: 80), + SizedBox(height: 80 + context.mqViewPadding.top), ], ), ); diff --git a/frontend/pubspec.yaml b/frontend/pubspec.yaml index 702c9ae..13e183c 100644 --- a/frontend/pubspec.yaml +++ b/frontend/pubspec.yaml @@ -1,7 +1,7 @@ name: frontend description: "A new Flutter project." publish_to: 'none' -version: 0.1.0 +version: 0.1.1 environment: sdk: ^3.5.2