Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/features/auth/screens/splash_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ class _SplashScreenState extends State<SplashScreen> {
Toast.showToast(
message: 'New App Update Available! 🎉', context: context);
}
}).catchError((e) {
Toast.showToast(message: e.toString(), context: context);
});
}

Expand Down
2 changes: 1 addition & 1 deletion lib/features/theme/cubit/theme_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class ThemeCubit extends Cubit<ThemeState> {

Future<void> setDarkMode() async {
bool? mode = prefs.getBool(LocalStorage.darkTheme);
emit(state.copyWith(darkMode: mode ?? false));
emit(state.copyWith(darkMode: mode ?? true));
}
}
2 changes: 1 addition & 1 deletion lib/utils/requests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class Requests {
return throw Exception('Invalid host url');
}

if (res.statusCode == 401) {
if (res.statusCode == 401 && !endpoint.contains('auth/login')) {
await AuthRepo.tokenExpired();
return null;
}
Expand Down
3 changes: 3 additions & 0 deletions lib/utils/utils.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:in_app_update/in_app_update.dart';
import 'package:logger/logger.dart';
import 'package:pulse/utils/colors.dart';
import 'package:pulse/utils/text.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:url_launcher/url_launcher.dart';
Expand Down Expand Up @@ -35,6 +36,7 @@ class Toast {
}
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
backgroundColor: Theme.of(context).appBarTheme.backgroundColor,
action: message.contains('App Update')
? SnackBarAction(
label: 'Update!',
Expand All @@ -48,6 +50,7 @@ class Toast {
style: kBodyTextStyle.copyWith(color: Colors.white),
),
showCloseIcon: true,
closeIconColor: kGreyColor,
duration: Duration(seconds: 6),
),
);
Expand Down
7 changes: 5 additions & 2 deletions lib/widgets/action_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ class _ActionDialogState extends State<ActionDialog> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(widget.title,
style: kTitleTextStyle.copyWith(
fontSize: 16, color: Colors.black87)),
style:
Theme.of(context).textTheme.bodyMedium?.copyWith(
fontSize: 16,
fontWeight: FontWeight.bold,
)),
SizedBox(height: 5),
Text(widget.des,
style: kTitleTextStyle.copyWith(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "A new Flutter project."
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: "none" # Remove this line if you wish to publish to pub.dev

version: 1.0.13+14
version: 1.0.14+15

environment:
sdk: ^3.6.1
Expand Down
Binary file added screenshots/overview-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/session-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading