Skip to content

Commit

Permalink
Debug 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vustron committed Nov 16, 2023
1 parent b3417c2 commit 4042cec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions lib/auth/signin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class _SignInState extends State<SignIn> {
},
style: GoogleFonts.zenDots(color: Colors.amber),
),
SizedBox(height: 10.0),
SizedBox(height: 30.0),
TextFormField(
controller: _passwordController,
decoration: InputDecoration(
Expand Down Expand Up @@ -110,7 +110,7 @@ class _SignInState extends State<SignIn> {
},
style: GoogleFonts.zenDots(color: Colors.amber),
),
SizedBox(height: 10.0),
SizedBox(height: 30.0),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Expand Down Expand Up @@ -165,7 +165,7 @@ class _SignInState extends State<SignIn> {
),
],
),
SizedBox(height: 10.0),
SizedBox(height: 30.0),
Divider(
height: 20,
thickness: 2,
Expand Down
6 changes: 3 additions & 3 deletions lib/components/worldtimeContent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class _WorldTimeContentState extends State<WorldTimeContent> {
),
),
child: Padding(
padding: EdgeInsets.fromLTRB(0, 150.0, 0, 0),
padding: EdgeInsets.fromLTRB(0, 140.0, 0, 0),
child: Column(
children: <Widget>[
TextButton.icon(
Expand Down Expand Up @@ -84,8 +84,8 @@ class _WorldTimeContentState extends State<WorldTimeContent> {
widget.data = {
'time': result['time'],
'location': result['location'],
'isDayTime': result['isDayTime'],
'flag': result['flag'],
'isDayTime': result['isDayTime'],
};
});
});
Expand All @@ -101,7 +101,7 @@ class _WorldTimeContentState extends State<WorldTimeContent> {
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
widget.data?['location'] ?? '',
widget.data != null ? widget.data!['location'] ?? '' : '',
style: GoogleFonts.abrilFatface(
fontSize: 28.0,
letterSpacing: 2.0,
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Loading extends StatefulWidget {
class _LoadingState extends State<Loading> {
Future<void> setupWorldTimeData() async {
WorldTimeData instance = WorldTimeData(
location: 'Manila', flag: 'philippines.png', url: 'Asia/Manila');
location: 'Manila', flag: 'philippines.jpg', url: 'Asia/Manila');
await instance.getTime();
Navigator.pushReplacementNamed(context, '/', arguments: {
'location': instance.location,
Expand Down
2 changes: 1 addition & 1 deletion lib/views/worldtimeView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class _WorldTimeState extends State<WorldTime> {

String bgImage = (data['isDayTime'] ?? false) ? 'day.jpg' : 'night.jpg';
Color textColor =
(data['isDayTime'] ?? false) ? Colors.white70 : Colors.white70;
(data['isDayTime'] ?? false) ? Colors.white : Colors.amber;

return Scaffold(
body: Column(
Expand Down

0 comments on commit 4042cec

Please sign in to comment.