Skip to content

Commit

Permalink
Frontend: Fix HalfOnionDomeContainers not considering status bar height
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamsinghshubham777 committed Oct 1, 2024
1 parent 78689df commit f4919c3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/lib/features/auth/view/login_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class _LoginDialogState extends ConsumerState<LoginDialog> {
validator: (password) => password?.isNotEmpty ?? false
? null
: 'Please enter a password',
keyboardType: TextInputType.emailAddress,
keyboardType: TextInputType.visiblePassword,
),
if (loginState.hasError)
Padding(
Expand Down
3 changes: 2 additions & 1 deletion frontend/lib/features/dashboard/view/task_count_section.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/features/home/view/setup_profile_section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 2 additions & 1 deletion frontend/lib/features/vendors/view/location_selector.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -59,7 +60,7 @@ class _LocationSelectorState extends State<LocationSelector> {
Assets.imageLocationAgra,
height: 104,
),
const SizedBox(height: 80),
SizedBox(height: 80 + context.mqViewPadding.top),
],
),
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f4919c3

Please sign in to comment.