Skip to content

Commit

Permalink
refactored local note model dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-which-qp committed Jun 9, 2024
1 parent 60d8059 commit 7510556
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 26 deletions.
2 changes: 1 addition & 1 deletion lib/app/helpers/hive_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lib/app/resources/home/views/local_notes/local_notes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
3 changes: 1 addition & 2 deletions lib/app/resources/trash/controller/trashed_notes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 0 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
13 changes: 0 additions & 13 deletions lib/models/could_note_model.dart

This file was deleted.

0 comments on commit 7510556

Please sign in to comment.