diff --git a/lib/ui/pages/home.dart b/lib/ui/pages/home.dart index 71e08b5..d51c99b 100644 --- a/lib/ui/pages/home.dart +++ b/lib/ui/pages/home.dart @@ -72,7 +72,7 @@ class HomePageState extends ConsumerState { ), Flexible( child: queryResultState.when( - loading: () => const InitialCard(), + loading: () => const EmptyCard(), data: (state) => state.issues.isEmpty ? const EmptyCard() : IssueListDataView( diff --git a/lib/ui/widgets/initial_card.dart b/lib/ui/widgets/initial_card.dart deleted file mode 100644 index cb41af3..0000000 --- a/lib/ui/widgets/initial_card.dart +++ /dev/null @@ -1,17 +0,0 @@ -import 'package:flutter/material.dart'; - -class InitialCard extends StatelessWidget { - const InitialCard({ - Key? key, - }) : super(key: key); - - @override - Widget build(BuildContext context) { - return Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: const [], - ), - ); - } -} diff --git a/lib/ui/widgets/widgets.dart b/lib/ui/widgets/widgets.dart index 63602fd..f9c39d4 100644 --- a/lib/ui/widgets/widgets.dart +++ b/lib/ui/widgets/widgets.dart @@ -1,4 +1,3 @@ export 'empty_card.dart'; -export 'initial_card.dart'; export 'issue_list.dart'; export 'search_panel.dart'; diff --git a/test/pages/home_test.dart b/test/pages/home_test.dart index 6d5a0a0..f3d11a1 100644 --- a/test/pages/home_test.dart +++ b/test/pages/home_test.dart @@ -47,7 +47,7 @@ void main() { ); // Verify that loading displays. - expect(find.byType(InitialCard), findsOneWidget); + expect(find.byType(EmptyCard), findsOneWidget); await tester.pump(); @@ -76,7 +76,7 @@ void main() { ); // Verify that loading displays. - expect(find.byType(InitialCard), findsOneWidget); + expect(find.byType(EmptyCard), findsOneWidget); await tester.tap(find.byIcon(Icons.more_vert)); @@ -115,7 +115,7 @@ void main() { ); // Verify that loading displays. - expect(find.byType(InitialCard), findsOneWidget); + expect(find.byType(EmptyCard), findsOneWidget); await tester.pump();