Skip to content

Updated the dependencies #466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 0 additions & 1 deletion lib/src/components/bug_hunt_search_delegate.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import './components_import.dart';

/// The search bar of app for searching issues based on keyword.
class BugHuntSearchDelegate extends SearchDelegate {
Expand Down
1 change: 0 additions & 1 deletion lib/src/pages/drawer/change_password.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '../pages_import.dart';

/// The change password page for the app.
class ChangePasswordPage extends StatefulWidget {
Expand Down
1 change: 0 additions & 1 deletion lib/src/pages/drawer/company_dashboard.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '../pages_import.dart';

class CompanyDashBoardPage extends ConsumerStatefulWidget {
const CompanyDashBoardPage({Key? key}) : super(key: key);
Expand Down
1 change: 0 additions & 1 deletion lib/src/pages/drawer/legal.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '../pages_import.dart';

/// Page stating the legal Terms and Conditions and Privacy
/// Policy applying to the BLT project.
Expand Down
19 changes: 6 additions & 13 deletions lib/src/providers/authstate_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,16 @@ class AuthNotifier extends StateNotifier<AsyncValue<AuthState>> {

Future<void> checkFirstLogin(BuildContext context) async {
String? firstLogin = await storage.read(key: "firstLogin");
if (firstLogin == null) {
await storage.write(key: "firstLogin", value: "false");
} else if (firstLogin == "false") {
Navigator.of(context).pushAndRemoveUntil(
MaterialPageRoute(builder: (context) => WelcomePage()),
(Route route) => false);
}
if (firstLogin == "false") {
Navigator.of(context).pushAndRemoveUntil(
MaterialPageRoute(builder: (context) => WelcomePage()),
(Route route) => false);
}
}

Future<bool> loadUserIfRemembered(BuildContext context) async {
String? remember = await storage.read(key: "remember");

if (remember == null) {
checkFirstLogin(context);
return false;
}

if (remember == "guest") {
state = AsyncValue.data(AuthState.loggedIn);
currentUser = guestUser;
Expand All @@ -62,7 +55,7 @@ class AuthNotifier extends StateNotifier<AsyncValue<AuthState>> {
String? username = await storage.read(key: "username");
String? accessToken = await storage.read(key: "token");

if (username == null || accessToken == null) {
if (accessToken == null) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import pasteboard
import path_provider_foundation
import sentry_flutter
import shared_preferences_foundation
import sqflite
import sqflite_darwin
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
Expand Down
1 change: 0 additions & 1 deletion test/integration_tests/issue_card_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '../test_imports.dart';

void main() {
testWidgets("Issue Card Test", (WidgetTester tester) async {
Expand Down
1 change: 0 additions & 1 deletion test/integration_tests/show_company_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '../test_imports.dart';

void main() {
testWidgets("Company List Test", (WidgetTester tester) async {
Expand Down
1 change: 0 additions & 1 deletion test/integration_tests/show_issues_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '../test_imports.dart';

void main() {
testWidgets("Issue List Test", (WidgetTester tester) async {
Expand Down
Loading