Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoazvd17 committed Nov 30, 2023
1 parent 69a8763 commit cb93038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/features/home/data/enums/home_page_tabs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extension HomePageTabsExtension on HomePageTabs {
};
}

Widget get tab {
Widget get content {
return switch (this) {
HomePageTabs.aboutMe => const AboutMeTab(),
HomePageTabs.myProjects => const MyProjectsTab(),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/features/home/presentation/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class HomePage extends StatelessWidget {
return Center(
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: AppConstants.maxPageWidth),
child: Observer(builder: (context) => controller.currentPage.tab),
child: Observer(builder: (context) => controller.currentPage.content),
),
)
.animate(onInit: (controller) {
Expand Down

0 comments on commit cb93038

Please sign in to comment.