Skip to content

Commit

Permalink
keyboard issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-Adnani committed Sep 21, 2021
1 parent 9d77348 commit 4d70bee
Show file tree
Hide file tree
Showing 5 changed files with 320 additions and 296 deletions.
2 changes: 1 addition & 1 deletion lib/core/helpers/AltScreenHelpers/alt.profile.helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ class AltProfileHelper with ChangeNotifier {
Widget status({BuildContext context, String userUid}) {
return Center(
child: Padding(
padding: EdgeInsets.only(top: 8.0, left: 40.0, right: 40.0),
padding: EdgeInsets.only(left: 40.0, right: 40.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand Down
16 changes: 13 additions & 3 deletions lib/core/helpers/LandingHelpers/landingService.notifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class LandingService with ChangeNotifier {
builder: (context) {
return Padding(
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.horizontal * 0.2),
bottom: MediaQuery.of(context).viewInsets.bottom),
child: Container(
height: MediaQuery.of(context).size.height * 0.30,
width: MediaQuery.of(context).size.width,
Expand Down Expand Up @@ -170,6 +170,9 @@ class LandingService with ChangeNotifier {
context: context)
.then((value) {
if (value) {
userEmailController.clear();
userPasswordController.clear();
userNameController.clear();
if (Provider.of<Authentication>(context,
listen: false)
.isVerified) {
Expand Down Expand Up @@ -239,7 +242,7 @@ class LandingService with ChangeNotifier {
builder: (context) {
return Padding(
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.horizontal * 0.3),
bottom: MediaQuery.of(context).viewInsets.bottom),
child: Container(
height: MediaQuery.of(context).size.height * 0.5,
width: MediaQuery.of(context).size.width,
Expand Down Expand Up @@ -371,6 +374,10 @@ class LandingService with ChangeNotifier {
listen: false)
.getUserAvatarUrl,
'userPassword': userPasswordController.text,
}).whenComplete(() {
userEmailController.clear();
userPasswordController.clear();
userNameController.clear();
});
} else {
warningText(
Expand Down Expand Up @@ -447,7 +454,7 @@ class LandingService with ChangeNotifier {
builder: (context) {
return Padding(
padding: EdgeInsets.only(
bottom: MediaQuery.of(context).viewInsets.horizontal * 0.2),
bottom: MediaQuery.of(context).viewInsets.bottom),
child: Container(
height: MediaQuery.of(context).size.height * 0.25,
width: MediaQuery.of(context).size.width,
Expand Down Expand Up @@ -492,6 +499,9 @@ class LandingService with ChangeNotifier {
context: context)
.then((value) {
if (value) {
userEmailController.clear();
userPasswordController.clear();
userNameController.clear();
warningText(
context, 'Please Check Your Mail ID', 12.0);
} else {
Expand Down
4 changes: 2 additions & 2 deletions lib/core/helpers/ProfileHelper/profile.helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class ProfileHelpers with ChangeNotifier {
Widget status({BuildContext context}) {
return Center(
child: Padding(
padding: EdgeInsets.only(top: 8.0, left: 40.0, right: 40.0),
padding: EdgeInsets.only(left: 40.0, right: 40.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand Down Expand Up @@ -306,7 +306,7 @@ class ProfileHelpers with ChangeNotifier {
backgroundColor: redColor,
child: Icon(
EvaIcons.uploadOutline,
color: greenColor,
color: whiteColor,
),
onPressed: () async {
if (editBioController.text.isNotEmpty) {
Expand Down
Loading

0 comments on commit 4d70bee

Please sign in to comment.