bubble page

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-09 20:51:28 +08:00
parent db30aa8041
commit 222c9d01a0
22 changed files with 571 additions and 9 deletions

View File

@@ -105,7 +105,8 @@ class _HistoryPageState extends State<HistoryPage>
right: padding.right,
),
child: Obx(() {
if (_historyController.tabs.isEmpty) {
final tabs = _historyController.tabs;
if (tabs.isEmpty) {
return child;
}
return Column(
@@ -128,9 +129,7 @@ class _HistoryPageState extends State<HistoryPage>
},
tabs: [
const Tab(text: '全部'),
..._historyController.tabs.map(
(item) => Tab(text: item.name),
),
...tabs.map((item) => Tab(text: item.name)),
],
),
Expanded(
@@ -143,9 +142,7 @@ class _HistoryPageState extends State<HistoryPage>
CustomHorizontalDragGestureRecognizer.new,
children: [
KeepAliveWrapper(child: child),
..._historyController.tabs.map(
(item) => HistoryPage(type: item.type),
),
...tabs.map((item) => HistoryPage(type: item.type)),
],
),
),