refactor tabbar: Homepage adaptation

1. remove redundant MaterialApp in GetMaterialApp
2. unified background color

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-08-11 16:03:04 +08:00
parent 1440d26376
commit c799fb1857
13 changed files with 307 additions and 206 deletions

View File

@@ -82,11 +82,13 @@ class _FileManagerTabPageState extends State<FileManagerTabPage>
Obx(
() => DesktopTabBar(
controller: tabController,
tabs: connectionIds.toList(),
tabs: connectionIds
.map((e) => TabInfo(label: e, icon: Icons.file_copy_sharp))
.toList(),
onTabClose: onRemoveId,
tabIcon: Icons.file_copy_sharp,
selected: _selected,
dark: isDarkTheme(),
mainTab: false,
),
),
Expanded(