Skip to content

Commit

Permalink
did some little refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-which-qp committed Feb 22, 2024
1 parent e93fe74 commit a392716
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ import 'package:flutter/services.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:hive/hive.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'package:note_app/app/screens/local_notes/local_notes.dart';
import 'package:note_app/app/screens/notifications/notifications_view.dart';
import 'package:note_app/app/screens/settings_screen.dart';
import 'package:note_app/const_values.dart';
import 'package:note_app/app/resources/home/views/local_notes/local_notes.dart';
import 'package:note_app/app/resources/settings/controller/settings_screen.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/greetings.dart';
import 'package:note_app/utils/slide_transition.dart';
import 'package:provider/provider.dart';

import 'local_notes/create_note_screen.dart';
import '../views/local_notes/create_note_screen.dart';

class HomeScreen extends StatefulWidget {
const HomeScreen({Key? key}) : super(key: key);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:hive/hive.dart';
import 'package:note_app/app/screens/local_notes/local_notes.dart';
import 'package:note_app/const_values.dart';
import 'package:note_app/app/resources/home/views/local_notes/local_notes.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';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:hive/hive.dart';
import 'package:note_app/app/screens/local_notes/read_notes_screens.dart';
import 'package:note_app/const_values.dart';
import 'package:note_app/app/resources/home/views/local_notes/read_notes_screens.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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import 'package:flutter/services.dart';
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/screens/local_notes/read_notes_screens.dart';
import 'package:note_app/const_values.dart';
import 'package:note_app/app/resources/home/views/local_notes/read_notes_screens.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';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:io' show Platform;

import 'package:flutter/material.dart';
import 'package:note_app/app/screens/local_notes/edit_note_screen.dart';
import 'package:note_app/const_values.dart';
import 'package:note_app/app/resources/home/views/local_notes/edit_note_screen.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';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:note_app/app/screens/trash_screen/trashed_notes.dart';
import 'package:note_app/app/resources/trash/controller/trashed_notes.dart';
import 'package:note_app/providers/hide_play_button_provider.dart';
import 'package:note_app/providers/theme_provider.dart';
import 'package:package_info_plus/package_info_plus.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:hive/hive.dart';
import 'package:note_app/const_values.dart';
import 'package:note_app/utils/const_values.dart';
import 'package:note_app/models/note_model.dart';
import 'package:hive_flutter/hive_flutter.dart';

Expand Down
4 changes: 2 additions & 2 deletions lib/app/src/app.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:note_app/app/screens/home.dart';
import 'package:note_app/custom_theme.dart';
import 'package:note_app/app/resources/home/controller/home.dart';
import 'package:note_app/utils/custom_theme.dart';
import 'package:note_app/providers/theme_provider.dart';
import 'package:provider/provider.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:hive/hive.dart';
import 'package:note_app/app/src/app.dart';
import 'package:note_app/const_values.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';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/custom_theme.dart → lib/utils/custom_theme.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:note_app/const_values.dart';
import 'package:note_app/utils/const_values.dart';

ThemeData buildLightTheme() => ThemeData.light().copyWith(
cardColor: Colors.white,
Expand Down

0 comments on commit a392716

Please sign in to comment.