From b19005585d5d1a68de3b3199151c3b987856ab77 Mon Sep 17 00:00:00 2001 From: juan Date: Thu, 24 Oct 2024 17:57:24 -0400 Subject: [PATCH] another placeholder to avoid confusion --- lib/home_page.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/home_page.dart b/lib/home_page.dart index 24eaad5..c185c1f 100644 --- a/lib/home_page.dart +++ b/lib/home_page.dart @@ -18,7 +18,7 @@ class _HomeScreenState extends State with TickerProviderStateMixin { bool _isSidebarOpen = true; bool querySearches = false; - List _tabs = ['INBOX']; + List _tabs = ['Emails']; Map _tabWidgets = {}; TabController? _tabController; @@ -26,7 +26,7 @@ class _HomeScreenState extends State with TickerProviderStateMixin { void initState() { super.initState(); _tabController = TabController(length: _tabs.length, vsync: this); - _tabWidgets['INBOX'] = EmailPage( + _tabWidgets['Emails'] = EmailPage( key: _emailPageKey, ); } @@ -45,7 +45,7 @@ class _HomeScreenState extends State with TickerProviderStateMixin { // Remove a tab void _removeTab(int index) { - if (_tabs[index] != 'INBOX') { + if (_tabs[index] != 'Emails') { setState(() { String tabToRemove = _tabs[index]; _tabs.removeAt(index); @@ -99,8 +99,8 @@ class _HomeScreenState extends State with TickerProviderStateMixin { trailing: Text(email.date.toString()), onTap: () async { // print('tapped'); - String emailContent = await apiService - .fetchEmailContent([email.id]); + String emailContent = + await apiService.fetchEmailContent([email.id]); // print('content below'); // print(emailContent); Navigator.push( @@ -278,7 +278,7 @@ class _HomeScreenState extends State with TickerProviderStateMixin { child: Row( children: [ Text(entry.value), - if (entry.value != 'INBOX') + if (entry.value != 'Emails') GestureDetector( onTap: () => _removeTab(entry.key), child: Icon(Icons.close, size: 16),