diff --git a/lib/app/helpers/hive_manager.dart b/lib/app/helpers/hive_manager.dart index 360a0e6..d5061d2 100644 --- a/lib/app/helpers/hive_manager.dart +++ b/lib/app/helpers/hive_manager.dart @@ -3,7 +3,7 @@ import 'dart:io'; import 'package:hive_flutter/hive_flutter.dart'; import 'package:note_app/app/resources/home/views/cloud_notes/models/cloud_note_model.dart'; import 'package:note_app/app/resources/home/views/cloud_notes/models/user_model.dart'; -import 'package:note_app/models/note_model.dart'; +import 'package:note_app/app/resources/home/views/local_notes/models/note_model.dart'; import 'package:note_app/utils/const_values.dart'; import 'package:path_provider/path_provider.dart'; diff --git a/lib/app/resources/home/views/local_notes/create_note_screen.dart b/lib/app/resources/home/views/local_notes/create_note_screen.dart index 1622d96..a080252 100644 --- a/lib/app/resources/home/views/local_notes/create_note_screen.dart +++ b/lib/app/resources/home/views/local_notes/create_note_screen.dart @@ -6,8 +6,8 @@ import 'package:fluttertoast/fluttertoast.dart'; import 'package:hive/hive.dart'; import 'package:note_app/app/helpers/hive_manager.dart'; import 'package:note_app/app/resources/home/views/local_notes/local_notes.dart'; +import 'package:note_app/app/resources/home/views/local_notes/models/note_model.dart'; import 'package:note_app/utils/const_values.dart'; -import 'package:note_app/models/note_model.dart'; import 'package:note_app/providers/theme_provider.dart'; import 'package:note_app/utils/slide_transition.dart'; import 'package:provider/provider.dart'; diff --git a/lib/app/resources/home/views/local_notes/edit_note_screen.dart b/lib/app/resources/home/views/local_notes/edit_note_screen.dart index 4911ceb..e711b88 100644 --- a/lib/app/resources/home/views/local_notes/edit_note_screen.dart +++ b/lib/app/resources/home/views/local_notes/edit_note_screen.dart @@ -2,10 +2,10 @@ import 'package:flutter/material.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'package:hive/hive.dart'; import 'package:note_app/app/helpers/hive_manager.dart'; +import 'package:note_app/app/resources/home/views/local_notes/models/note_model.dart'; import 'package:note_app/app/resources/home/views/local_notes/read_notes_screens.dart'; import 'package:note_app/m_functions/navigate_to.dart'; import 'package:note_app/utils/const_values.dart'; -import 'package:note_app/models/note_model.dart'; import 'package:note_app/providers/theme_provider.dart'; import 'package:note_app/utils/slide_transition.dart'; import 'package:provider/provider.dart'; diff --git a/lib/app/resources/home/views/local_notes/local_notes.dart b/lib/app/resources/home/views/local_notes/local_notes.dart index 4da3f9d..15d43d8 100644 --- a/lib/app/resources/home/views/local_notes/local_notes.dart +++ b/lib/app/resources/home/views/local_notes/local_notes.dart @@ -7,10 +7,10 @@ import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; import 'package:hive/hive.dart'; import 'package:hive_flutter/hive_flutter.dart'; import 'package:note_app/app/helpers/hive_manager.dart'; +import 'package:note_app/app/resources/home/views/local_notes/models/note_model.dart'; import 'package:note_app/app/resources/home/views/local_notes/read_notes_screens.dart'; import 'package:note_app/m_functions/navigate_to.dart'; import 'package:note_app/utils/const_values.dart'; -import 'package:note_app/models/note_model.dart'; import 'package:note_app/providers/change_view_style_provider.dart'; import 'package:note_app/providers/theme_provider.dart'; import 'package:note_app/utils/slide_transition.dart'; diff --git a/lib/models/note_model.dart b/lib/app/resources/home/views/local_notes/models/note_model.dart similarity index 100% rename from lib/models/note_model.dart rename to lib/app/resources/home/views/local_notes/models/note_model.dart diff --git a/lib/models/note_model.g.dart b/lib/app/resources/home/views/local_notes/models/note_model.g.dart similarity index 100% rename from lib/models/note_model.g.dart rename to lib/app/resources/home/views/local_notes/models/note_model.g.dart diff --git a/lib/app/resources/home/views/local_notes/read_notes_screens.dart b/lib/app/resources/home/views/local_notes/read_notes_screens.dart index 40a365a..1a0125d 100644 --- a/lib/app/resources/home/views/local_notes/read_notes_screens.dart +++ b/lib/app/resources/home/views/local_notes/read_notes_screens.dart @@ -2,9 +2,9 @@ import 'dart:io' show Platform; import 'package:flutter/material.dart'; import 'package:note_app/app/resources/home/views/local_notes/edit_note_screen.dart'; +import 'package:note_app/app/resources/home/views/local_notes/models/note_model.dart'; import 'package:note_app/m_functions/navigate_to.dart'; import 'package:note_app/utils/const_values.dart'; -import 'package:note_app/models/note_model.dart'; import 'package:note_app/providers/hide_play_button_provider.dart'; import 'package:note_app/utils/slide_transition.dart'; import 'package:flutter_tts/flutter_tts.dart'; diff --git a/lib/app/resources/trash/controller/trashed_notes.dart b/lib/app/resources/trash/controller/trashed_notes.dart index 05a9877..5902261 100644 --- a/lib/app/resources/trash/controller/trashed_notes.dart +++ b/lib/app/resources/trash/controller/trashed_notes.dart @@ -4,9 +4,8 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:hive/hive.dart'; import 'package:note_app/app/helpers/hive_manager.dart'; -import 'package:note_app/utils/const_values.dart'; -import 'package:note_app/models/note_model.dart'; import 'package:hive_flutter/hive_flutter.dart'; +import 'package:note_app/app/resources/home/views/local_notes/models/note_model.dart'; class TrashedNotes extends StatefulWidget { const TrashedNotes({Key? key}) : super(key: key); diff --git a/lib/main.dart b/lib/main.dart index 883194c..590844c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,16 +1,10 @@ -import 'dart:io'; - import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:hive/hive.dart'; import 'package:note_app/app/helpers/hive_manager.dart'; import 'package:note_app/app/src/app.dart'; -import 'package:note_app/utils/const_values.dart'; -import 'package:note_app/models/note_model.dart'; import 'package:note_app/providers/change_view_style_provider.dart'; import 'package:note_app/providers/hide_play_button_provider.dart'; import 'package:note_app/providers/theme_provider.dart'; -import 'package:path_provider/path_provider.dart'; import 'package:provider/provider.dart'; void main() async { diff --git a/lib/models/could_note_model.dart b/lib/models/could_note_model.dart deleted file mode 100644 index e265458..0000000 --- a/lib/models/could_note_model.dart +++ /dev/null @@ -1,13 +0,0 @@ -class CloudNoteModel { - final String? id; - final String? title; - final String? noteBody; - final DateTime? timeAdded; - - CloudNoteModel({ - this.id, - this.title, - this.noteBody, - this.timeAdded, - }); -}