diff --git a/lib/controllers/database.dart b/lib/controllers/database_controller.dart similarity index 99% rename from lib/controllers/database.dart rename to lib/controllers/database_controller.dart index dc6e49b..b24a71c 100644 --- a/lib/controllers/database.dart +++ b/lib/controllers/database_controller.dart @@ -2,7 +2,7 @@ import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_storage/firebase_storage.dart'; import 'package:flutter/material.dart'; -import 'package:news_app/controllers/navigation.dart'; +import 'package:news_app/controllers/navigation_controller.dart'; import 'package:shared_preferences/shared_preferences.dart'; class Database { diff --git a/lib/controllers/navigation.dart b/lib/controllers/navigation_controller.dart similarity index 100% rename from lib/controllers/navigation.dart rename to lib/controllers/navigation_controller.dart diff --git a/lib/pages/artical_page.dart b/lib/pages/artical_page.dart index bfc1d1d..d62d3ab 100644 --- a/lib/pages/artical_page.dart +++ b/lib/pages/artical_page.dart @@ -1,6 +1,6 @@ import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; -import 'package:news_app/controllers/database.dart'; +import 'package:news_app/controllers/database_controller.dart'; import 'package:upi_india/upi_india.dart'; class ArticalPage extends StatefulWidget { diff --git a/lib/pages/bookmark_page.dart b/lib/pages/bookmark_page.dart index 6bbbac6..3d1f556 100644 --- a/lib/pages/bookmark_page.dart +++ b/lib/pages/bookmark_page.dart @@ -1,7 +1,7 @@ import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; -import 'package:news_app/controllers/database.dart'; -import 'package:news_app/controllers/navigation.dart'; +import 'package:news_app/controllers/database_controller.dart'; +import 'package:news_app/controllers/navigation_controller.dart'; import 'package:news_app/modules/cart_sream.dart'; class BookmarkPage extends StatefulWidget { diff --git a/lib/pages/edit_page.dart b/lib/pages/edit_page.dart index d6aa0e0..10496a7 100644 --- a/lib/pages/edit_page.dart +++ b/lib/pages/edit_page.dart @@ -4,7 +4,7 @@ import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:file_picker/file_picker.dart'; import 'package:firebase_storage/firebase_storage.dart'; import 'package:flutter/material.dart'; -import 'package:news_app/controllers/database.dart'; +import 'package:news_app/controllers/database_controller.dart'; class EditPage extends StatefulWidget { const EditPage({super.key, required this.snapshot}); diff --git a/lib/pages/reader_home.dart b/lib/pages/reader_home.dart index 5d650c3..942de03 100644 --- a/lib/pages/reader_home.dart +++ b/lib/pages/reader_home.dart @@ -1,7 +1,7 @@ import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; -import 'package:news_app/controllers/database.dart'; -import 'package:news_app/controllers/navigation.dart'; +import 'package:news_app/controllers/database_controller.dart'; +import 'package:news_app/controllers/navigation_controller.dart'; import 'package:shared_preferences/shared_preferences.dart'; class ReaderHome extends StatefulWidget { diff --git a/lib/pages/register_account.dart b/lib/pages/register_account.dart index e3ce752..8e17c42 100644 --- a/lib/pages/register_account.dart +++ b/lib/pages/register_account.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:news_app/controllers/database.dart'; +import 'package:news_app/controllers/database_controller.dart'; class RegisterAccount extends StatefulWidget { diff --git a/lib/pages/user_login.dart b/lib/pages/user_login.dart index d36748a..7dd6a7a 100644 --- a/lib/pages/user_login.dart +++ b/lib/pages/user_login.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:news_app/controllers/database.dart'; -import 'package:news_app/controllers/navigation.dart'; +import 'package:news_app/controllers/database_controller.dart'; +import 'package:news_app/controllers/navigation_controller.dart'; class UserLogin extends StatefulWidget { const UserLogin({super.key}); diff --git a/lib/pages/writer_home.dart b/lib/pages/writer_home.dart index f5eb145..f1f1e29 100644 --- a/lib/pages/writer_home.dart +++ b/lib/pages/writer_home.dart @@ -1,7 +1,7 @@ import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; -import 'package:news_app/controllers/database.dart'; -import 'package:news_app/controllers/navigation.dart'; +import 'package:news_app/controllers/database_controller.dart'; +import 'package:news_app/controllers/navigation_controller.dart'; import 'package:shared_preferences/shared_preferences.dart'; class WriterHome extends StatefulWidget {