diff --git a/lib/bloc/eeg_state.dart b/lib/bloc/eeg_state.dart deleted file mode 100644 index 8b13789..0000000 --- a/lib/bloc/eeg_state.dart +++ /dev/null @@ -1 +0,0 @@ - diff --git a/lib/bloc/gemini_state.dart b/lib/bloc/gemini_state.dart index 629995b..1a5adfe 100644 --- a/lib/bloc/gemini_state.dart +++ b/lib/bloc/gemini_state.dart @@ -180,8 +180,6 @@ class GeminiCubit extends Cubit { final quizQuestions = await loadQuizQuestions(lessonId); final String lessonScript = await rootBundle.loadString('assets/lessons/$lessonId.md'); - // final String prompt = - // "Jesteś nauczycielem/chatbotem prowadzącym zajęcia z jednym uczniem. Uczeń ma możliwość zadawania pytań w trakcie, natomiast jesteś odpowiedzialny za prowadzenie lekcji i przedstawienie tematu. Zacznij prowadzić lekcje dla jednego ucznia na podstawie poniszego skryptu:\n$rjp"; final String prompt = "You are a lecturer teaching a class with one student. The student has the ability to ask questions during the lesson, while you are responsible for lecturing and presenting the topic. Start conducting the lecture for one student based on the script below:\n$lessonScript"; diff --git a/lib/config.dart b/lib/config.dart index fa541a8..4caa39c 100644 --- a/lib/config.dart +++ b/lib/config.dart @@ -1 +1,2 @@ const bool isDebug = false; +const bool isSimulatedEEG = true; \ No newline at end of file diff --git a/lib/eeg/eeg_service.dart b/lib/eeg/eeg_service.dart index 571bf1e..bfda99e 100644 --- a/lib/eeg/eeg_service.dart +++ b/lib/eeg/eeg_service.dart @@ -21,7 +21,7 @@ class EegService { EegService() : state = EegState(mindWandering: 0.1, focus: 0.9) { // Start the timer when the cubit is created - if (false) { + if (!isSimulatedEEG) { startPolling(); } } @@ -48,7 +48,7 @@ class EegService { } Future> fetchEegData() async { - if (true) { + if (isSimulatedEEG) { return [0.9, 0.1]; // Placeholder ret } diff --git a/lib/main.dart b/lib/main.dart index 3d8345b..94c8219 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -16,6 +16,7 @@ class MyApp extends StatelessWidget { Widget build(BuildContext context) { return MaterialApp( title: 'MindEasy', + debugShowCheckedModeBanner: false, theme: ThemeData( brightness: Brightness.dark, primarySwatch: Colors.teal,