- BLE: 修复 BlueZ LocalName 与 Includes 冲突,串行注册与退避 - HTTP: 语音对话补 Live2D talking 标志与 session;Web 补 X-Session-Id - Flutter: 角色/对话/模型页 + API,Gradle/依赖升级,麦克风权限 - 文档: 新增 docs/STATUS.md,校准 CLAUDE/PROGRESS/README - 清理: 移除根目录截图与临时模型,运维脚本迁入 scripts/device
64 lines
1.8 KiB
Dart
64 lines
1.8 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
|
|
import '../widgets/connection_status_banner.dart';
|
|
|
|
class AppShell extends StatelessWidget {
|
|
const AppShell({required this.navigationShell, super.key});
|
|
|
|
final StatefulNavigationShell navigationShell;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Column(
|
|
children: [
|
|
const ConnectionStatusBanner(),
|
|
Expanded(child: navigationShell),
|
|
],
|
|
),
|
|
bottomNavigationBar: NavigationBar(
|
|
selectedIndex: navigationShell.currentIndex,
|
|
onDestinationSelected: (index) {
|
|
navigationShell.goBranch(
|
|
index,
|
|
initialLocation: index == navigationShell.currentIndex,
|
|
);
|
|
},
|
|
destinations: const [
|
|
NavigationDestination(
|
|
icon: Icon(Icons.home_outlined),
|
|
selectedIcon: Icon(Icons.home),
|
|
label: '首页',
|
|
),
|
|
NavigationDestination(
|
|
icon: Icon(Icons.face_outlined),
|
|
selectedIcon: Icon(Icons.face),
|
|
label: '角色',
|
|
),
|
|
NavigationDestination(
|
|
icon: Icon(Icons.chat_bubble_outline),
|
|
selectedIcon: Icon(Icons.chat_bubble),
|
|
label: '对话',
|
|
),
|
|
NavigationDestination(
|
|
icon: Icon(Icons.play_circle_outline),
|
|
selectedIcon: Icon(Icons.play_circle),
|
|
label: '播放',
|
|
),
|
|
NavigationDestination(
|
|
icon: Icon(Icons.wifi_outlined),
|
|
selectedIcon: Icon(Icons.wifi),
|
|
label: '网络',
|
|
),
|
|
NavigationDestination(
|
|
icon: Icon(Icons.settings_outlined),
|
|
selectedIcon: Icon(Icons.settings),
|
|
label: '设置',
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|