From cb93038f518561abedf0b46095c753906604a21c Mon Sep 17 00:00:00 2001 From: Eduardo Azevedo Date: Thu, 30 Nov 2023 18:31:10 -0300 Subject: [PATCH] rename --- lib/src/features/home/data/enums/home_page_tabs.dart | 2 +- lib/src/features/home/presentation/pages/home_page.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/features/home/data/enums/home_page_tabs.dart b/lib/src/features/home/data/enums/home_page_tabs.dart index ae13aa1..9d7173c 100644 --- a/lib/src/features/home/data/enums/home_page_tabs.dart +++ b/lib/src/features/home/data/enums/home_page_tabs.dart @@ -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(), diff --git a/lib/src/features/home/presentation/pages/home_page.dart b/lib/src/features/home/presentation/pages/home_page.dart index d7a6a1f..7ca6e7f 100644 --- a/lib/src/features/home/presentation/pages/home_page.dart +++ b/lib/src/features/home/presentation/pages/home_page.dart @@ -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) {