feat(home): 使用胶片盘图片导航图标

This commit is contained in:
Zhou Weidong committed 2026-10-22 19:24:34 +08:00
1 parent c24518c1a4
commit f47e4dd298
6 files changed
+132 -47

No files matched your search

+25
View File
@@ -179,4 +179,29 @@ void main() {
findsWidgets,
);
});
testWidgets('should_fallback_when_asset_icon_is_missing', (tester) async {
await tester.pumpWidget(
MaterialApp(
home: Scaffold(
bottomNavigationBar: AppBottomNav(
items: [
AppBottomNavItem(
tabKey: const Key('tab-home'),
icon: Icons.theaters_outlined,
selectedIcon: Icons.theaters,
assetPath: 'assets/icon/missing_film_reel.png',
label: 'Home',
selected: true,
onTap: () {},
),
],
),
),
),
);
await tester.pumpAndSettle();
expect(find.byIcon(Icons.theaters_outlined), findsOneWidget);
});
}