Skip to content

Commit

Permalink
fix warning and infos
Browse files Browse the repository at this point in the history
  • Loading branch information
zamaniafshar committed Feb 13, 2024
1 parent 63f552f commit b1ce310
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions lib/ui/home/widgets/contact_me/widgets/send_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ class SendMessage extends HookConsumerWidget {
hint: localization.contactEmailHint,
controller: emailController,
validator: (text) {
if (text == null || text.isEmpty)
if (text == null || text.isEmpty) {
return localization.contactEmptyFormError(localization.contactEmail);
if (!_emailValidationRegex.hasMatch(text))
}
if (!_emailValidationRegex.hasMatch(text)) {
return localization.contactInvalidEmailFormError;
}
return null;
},
),
Expand Down
3 changes: 0 additions & 3 deletions lib/ui/home/widgets/sliver_app_bar/home_appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,4 @@ class HomeAppBar extends HookConsumerWidget {
),
);
}

@override
Size get preferredSize => Size(double.infinity, kToolbarHeight);
}

0 comments on commit b1ce310

Please sign in to comment.