put andriod custom client logo to settings section list (#7768)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-04-19 12:44:52 +08:00
committed by GitHub
parent e83c28bf54
commit 5d5547ffef
2 changed files with 19 additions and 15 deletions

View File

@@ -26,8 +26,9 @@ class HomePageState extends State<HomePage> {
var _selectedIndex = 0;
int get selectedIndex => _selectedIndex;
final List<PageShape> _pages = [];
int _chatPageTabIndex = -1;
bool get isChatPageCurrentTab => isAndroid
? _selectedIndex == 1
? _selectedIndex == _chatPageTabIndex
: false; // change this when ios have chat page
void refreshPages() {
@@ -46,6 +47,7 @@ class HomePageState extends State<HomePage> {
_pages.clear();
if (!bind.isIncomingOnly()) _pages.add(ConnectionPage());
if (isAndroid && !bind.isOutgoingOnly()) {
_chatPageTabIndex = _pages.length;
_pages.addAll([ChatPage(type: ChatPageType.mobileMain), ServerPage()]);
}
_pages.add(SettingsPage());