Skip to content

Commit

Permalink
refactor(navigation): move navigation related to nav directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gruvw committed Apr 8, 2024
1 parent 6fb5953 commit c5288b5
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "package:flutter/material.dart";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:proxima/views/bottom_navigation_bar/navigation_bar_routes.dart";
import "package:proxima/views/navigation/bottom_navigation_bar/navigation_bar_routes.dart";

/// This widget is the bottom navigation bar of the home page.
/// It contains the navigation routes to the different pages.
Expand Down
2 changes: 1 addition & 1 deletion lib/views/pages/create_account_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "package:flutter/material.dart";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:proxima/utils/ui/scrollable_if_too_high.dart";
import "package:proxima/viewmodels/login_view_model.dart";
import "package:proxima/views/leading_back_button/leading_back_button.dart";
import "package:proxima/views/navigation/leading_back_button/leading_back_button.dart";
import "package:proxima/views/navigation/routes.dart";

class CreateAccountPage extends HookConsumerWidget {
Expand Down
4 changes: 2 additions & 2 deletions lib/views/pages/home/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import "package:flutter/material.dart";
import "package:flutter_hooks/flutter_hooks.dart";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:proxima/viewmodels/login_view_model.dart";
import "package:proxima/views/bottom_navigation_bar/navigation_bar_routes.dart";
import "package:proxima/views/bottom_navigation_bar/navigation_bottom_bar.dart";
import "package:proxima/views/navigation/bottom_navigation_bar/navigation_bar_routes.dart";
import "package:proxima/views/navigation/bottom_navigation_bar/navigation_bottom_bar.dart";
import "package:proxima/views/navigation/routes.dart";
import "package:proxima/views/pages/home/top_bar/home_top_bar.dart";

Expand Down
2 changes: 1 addition & 1 deletion lib/views/pages/new_post/new_post_page.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "package:flutter/material.dart";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:proxima/views/leading_back_button/leading_back_button.dart";
import "package:proxima/views/navigation/leading_back_button/leading_back_button.dart";

import "package:proxima/views/pages/new_post/new_post_form.dart";

Expand Down
2 changes: 1 addition & 1 deletion lib/views/pages/profile/profile_page.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "package:flutter/material.dart";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:proxima/viewmodels/profile_view_model.dart";
import "package:proxima/views/leading_back_button/leading_back_button.dart";
import "package:proxima/views/navigation/leading_back_button/leading_back_button.dart";
import "package:proxima/views/pages/profile/posts_info/info_card.dart";
import "package:proxima/views/pages/profile/posts_info/info_column.dart";
import "package:proxima/views/pages/profile/posts_info/info_row.dart";
Expand Down
6 changes: 3 additions & 3 deletions test/component/home/navigation_home_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import "package:flutter/material.dart";
import "package:flutter_test/flutter_test.dart";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:proxima/viewmodels/home_view_model.dart";
import "package:proxima/views/bottom_navigation_bar/navigation_bar_routes.dart";
import "package:proxima/views/bottom_navigation_bar/navigation_bottom_bar.dart";
import "package:proxima/views/content/feed/home_feed.dart";
import "package:proxima/views/leading_back_button/leading_back_button.dart";
import "package:proxima/views/navigation/bottom_navigation_bar/navigation_bar_routes.dart";
import "package:proxima/views/navigation/bottom_navigation_bar/navigation_bottom_bar.dart";
import "package:proxima/views/navigation/leading_back_button/leading_back_button.dart";
import "package:proxima/views/navigation/routes.dart";
import "package:proxima/views/pages/home/home_page.dart";
import "package:proxima/views/pages/new_post/new_post_page.dart";
Expand Down
5 changes: 3 additions & 2 deletions test/component/home/static_home_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import "package:flutter/material.dart";
import "package:flutter_test/flutter_test.dart";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:proxima/viewmodels/home_view_model.dart";
import "package:proxima/views/bottom_navigation_bar/navigation_bar_routes.dart";
import "package:proxima/views/bottom_navigation_bar/navigation_bottom_bar.dart";
import "package:proxima/views/content/feed/home_feed.dart";
import "package:proxima/views/content/feed/post_card/post_card.dart";
import "package:proxima/views/navigation/bottom_navigation_bar/navigation_bar_routes.dart";
import "package:proxima/views/navigation/bottom_navigation_bar/navigation_bottom_bar.dart";
import "package:proxima/views/pages/home/home_page.dart";
import "package:proxima/views/pages/home/top_bar/home_top_bar.dart";

import "../utils/mock_data/home/mock_posts.dart";

void main() {
Expand Down
2 changes: 1 addition & 1 deletion test/component/login_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:proxima/main.dart";
import "package:proxima/models/database/user/user_firestore.dart";
import "package:proxima/services/database/user_repository_service.dart";
import "package:proxima/views/leading_back_button/leading_back_button.dart";
import "package:proxima/views/navigation/leading_back_button/leading_back_button.dart";
import "package:proxima/views/pages/create_account_page.dart";
import "package:proxima/views/pages/home/home_page.dart";
import "package:proxima/views/pages/login/login_button.dart";
Expand Down
2 changes: 1 addition & 1 deletion test/component/new_post_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "package:firebase_core/firebase_core.dart";
import "package:flutter/material.dart";
import "package:flutter_test/flutter_test.dart";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:proxima/views/leading_back_button/leading_back_button.dart";
import "package:proxima/views/navigation/leading_back_button/leading_back_button.dart";
import "package:proxima/views/pages/new_post/new_post_form.dart";
import "package:proxima/views/pages/new_post/new_post_page.dart";

Expand Down

0 comments on commit c5288b5

Please sign in to comment.