Skip to content

Commit

Permalink
Quick UI bug fix because of flutter update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vustron committed Nov 18, 2023
1 parent 3c019da commit 19ba633
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 26 deletions.
6 changes: 3 additions & 3 deletions lib/auth/signin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ class _SignInState extends State<SignIn> {
backgroundColor: Colors.grey[900],
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.symmetric(vertical: 50.0, horizontal: 50.0),
padding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 50.0),
child: Form(
key: _formkey,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(height: 10.0),
SizedBox(height: 40.0),
Center(
child: CircleAvatar(
backgroundImage: AssetImage('assets/images/logo.png'),
Expand Down Expand Up @@ -243,7 +243,7 @@ class _SignInState extends State<SignIn> {
),
],
),
SizedBox(height: 80.0),
SizedBox(height: 50.0),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand Down
7 changes: 3 additions & 4 deletions lib/auth/signup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:google_fonts/google_fonts.dart';
import '../controller/localAuth.dart';
import 'package:social_auth_buttons/social_auth_buttons.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';

import 'signin.dart';

class SignUp extends StatefulWidget {
Expand Down Expand Up @@ -33,13 +32,13 @@ class _SignUpState extends State<SignUp> {
backgroundColor: Colors.grey[900],
body: SingleChildScrollView(
child: Container(
padding: EdgeInsets.symmetric(vertical: 50.0, horizontal: 50.0),
padding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 50.0),
child: Form(
key: _formkey,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SizedBox(height: 10.0),
SizedBox(height: 40.0),
Center(
child: CircleAvatar(
backgroundImage: AssetImage('assets/images/logo.png'),
Expand Down Expand Up @@ -210,7 +209,7 @@ class _SignUpState extends State<SignUp> {
),
],
),
SizedBox(height: 220.0),
SizedBox(height: 195.0),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand Down
3 changes: 1 addition & 2 deletions lib/components/editProfileContent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ class _EditProfileState extends State<EditProfile> {
onPressed: () async {
if (_formKey.currentState!.validate()) {
EasyLoading.show(status: 'Updating user profile...');

await _auth.updateUserData(
_currentDisplayName, _currentEmail);

EasyLoading.showSuccess('Update Success!');
Navigator.pushNamed(context, '/profile');
EasyLoading.dismiss();
Expand All @@ -89,6 +87,7 @@ class _EditProfileState extends State<EditProfile> {
'Update',
style: GoogleFonts.zenDots(
fontSize: 14.0,
color: Colors.white,
fontWeight: FontWeight.bold,
),
),
Expand Down
45 changes: 28 additions & 17 deletions lib/components/worldtimeContent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,25 +157,30 @@ class _WorldTimeContentState extends State<WorldTimeContent> {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
if (!provider.isGoogleUser)
SizedBox(
width: 100,
child: ElevatedButton.icon(
onPressed: () => _showEditProfilePanel(),
icon: Icon(Icons.settings),
label: Text(
'Edit',
style: GoogleFonts.zenDots(fontSize: 8),
SizedBox(
width: 100,
child: ElevatedButton.icon(
onPressed: () => _showEditProfilePanel(),
icon: Icon(
Icons.settings,
color: Colors.white,
),
label: Text(
'Edit',
style: GoogleFonts.zenDots(
fontSize: 10,
color: Colors.white,
),
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
Colors.green,
),
),
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
Colors.green,
),
),
),
),
SizedBox(
width: 100,
width: 121,
child: ElevatedButton.icon(
onPressed: () async {
try {
Expand All @@ -191,10 +196,16 @@ class _WorldTimeContentState extends State<WorldTimeContent> {
EasyLoading.showError('Logout Failed: $e');
}
},
icon: Icon(Icons.logout),
icon: Icon(
Icons.logout,
color: Colors.white,
),
label: Text(
'Logout',
style: GoogleFonts.zenDots(fontSize: 8),
style: GoogleFonts.zenDots(
fontSize: 10,
color: Colors.white,
),
),
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(
Expand All @@ -208,7 +219,7 @@ class _WorldTimeContentState extends State<WorldTimeContent> {
},
),
),
SizedBox(height: 139),
SizedBox(height: 126),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand Down

0 comments on commit 19ba633

Please sign in to comment.