From e9f02affd5dd0f2996e01030368e680ffc2ab017 Mon Sep 17 00:00:00 2001 From: ivirtex Date: Wed, 1 Nov 2023 11:26:16 +0100 Subject: [PATCH] Rename TrackUsingDynamicIslandButton to TrackUsingLiveActivityButton --- lib/explore/widgets/next_launch_card.dart | 2 +- ...land_button.dart => track_using_live_activity_button.dart} | 4 ++-- lib/notifications/widgets/widgets.dart | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename lib/notifications/widgets/{track_using_dynamic_island_button.dart => track_using_live_activity_button.dart} (94%) diff --git a/lib/explore/widgets/next_launch_card.dart b/lib/explore/widgets/next_launch_card.dart index e2a1e3d..3474b8f 100644 --- a/lib/explore/widgets/next_launch_card.dart +++ b/lib/explore/widgets/next_launch_card.dart @@ -75,7 +75,7 @@ class NextLaunchCard extends StatelessWidget { ), const SizedBox(height: kListSpacing), if (timeLeft != null && timeLeft < 6.hours && launch != null) - TrackUsingDynamicIslandButton(launch: launch!), + TrackUsingLiveActivityButton(launch: launch!), ThemedButton( onPressed: doesExist ? () => context.go('/explore/launch/${launch!.id}') diff --git a/lib/notifications/widgets/track_using_dynamic_island_button.dart b/lib/notifications/widgets/track_using_live_activity_button.dart similarity index 94% rename from lib/notifications/widgets/track_using_dynamic_island_button.dart rename to lib/notifications/widgets/track_using_live_activity_button.dart index 16d6b6d..6dfabe9 100644 --- a/lib/notifications/widgets/track_using_dynamic_island_button.dart +++ b/lib/notifications/widgets/track_using_live_activity_button.dart @@ -9,8 +9,8 @@ import 'package:launch_library_repository/launch_library_repository.dart'; import 'package:starcat/constants.dart'; import 'package:starcat/notifications/notifications.dart'; -class TrackUsingDynamicIslandButton extends StatelessWidget { - const TrackUsingDynamicIslandButton({ +class TrackUsingLiveActivityButton extends StatelessWidget { + const TrackUsingLiveActivityButton({ required this.launch, super.key, }); diff --git a/lib/notifications/widgets/widgets.dart b/lib/notifications/widgets/widgets.dart index d97d6cf..6aad513 100644 --- a/lib/notifications/widgets/widgets.dart +++ b/lib/notifications/widgets/widgets.dart @@ -1,2 +1,2 @@ export 'notifications_preference_modal.dart'; -export 'track_using_dynamic_island_button.dart'; +export 'track_using_live_activity_button.dart';