Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
unimegan59781 committed May 1, 2024
1 parent 557d01d commit 2f0a80e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
17 changes: 8 additions & 9 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/services.dart';
import 'package:fyp/pages/login.dart';

Future main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();

runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({super.key});


// This widget is the root of your application.
@override
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
return MaterialApp(
title: 'Flutter Demo',
title: 'Locum Health',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const Login(),//WorkerNavigationBar(workerId: "o1RuN9qhbedY7jEbSlekYo91zKY2")//, jobId: "625994e7-1b13-46ae-9572-7b7bed453a25"), //const Login(),
debugShowCheckedModeBanner: false,
home: const Login(),
);
}
}





4 changes: 1 addition & 3 deletions lib/pages/company/companyJob.dart
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,7 @@ class CompanyJobState extends State<CompanyJob> {
).show(context);
await addRiskSupportDb(jobId);
await subitRiskSupport(jobId);

// addRiskSupportDb(jobId);
// subitRiskSupport(jobId);
Navigator.of(context).pop();
} else {
Flushbar(
backgroundColor: Colors.black,
Expand Down

0 comments on commit 2f0a80e

Please sign in to comment.