From 81745264dc8dec997054648a40e483c64cf12a66 Mon Sep 17 00:00:00 2001 From: Andre Rossi Date: Mon, 13 Nov 2023 13:17:32 -0300 Subject: [PATCH] feat: rename widget DSProgressiveProgress --- lib/blip_ds.dart | 4 ++-- lib/src/widgets/chat/ds_image_message_bubble.widget.dart | 4 ++-- .../widgets/chat/video/ds_video_message_bubble.widget.dart | 4 ++-- ..._progress.widget.dart => ds_circular_progress.widget.dart} | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) rename lib/src/widgets/utils/{ds_progressive_progress.widget.dart => ds_circular_progress.widget.dart} (95%) diff --git a/lib/blip_ds.dart b/lib/blip_ds.dart index dab4246c..c6723372 100644 --- a/lib/blip_ds.dart +++ b/lib/blip_ds.dart @@ -151,6 +151,8 @@ export 'src/widgets/utils/ds_cached_network_image_view.widget.dart' show DSCachedNetworkImageView; export 'src/widgets/utils/ds_card.widget.dart' show DSCard; export 'src/widgets/utils/ds_chip.widget.dart' show DSChip; +export 'src/widgets/utils/ds_circular_progress.widget.dart' + show DSCircularProgress; export 'src/widgets/utils/ds_divider.widget.dart' show DSDivider; export 'src/widgets/utils/ds_expanded_image.widget.dart' show DSExpandedImage; export 'src/widgets/utils/ds_file_extension_icon.util.dart' @@ -158,6 +160,4 @@ export 'src/widgets/utils/ds_file_extension_icon.util.dart' export 'src/widgets/utils/ds_group_card.widget.dart' show DSGroupCard; export 'src/widgets/utils/ds_header.widget.dart' show DSHeader; export 'src/widgets/utils/ds_progress_bar.widget.dart' show DSProgressBar; -export 'src/widgets/utils/ds_progressive_progress.widget.dart' - show DSProgressiveProgress; export 'src/widgets/utils/ds_user_avatar.widget.dart' show DSUserAvatar; diff --git a/lib/src/widgets/chat/ds_image_message_bubble.widget.dart b/lib/src/widgets/chat/ds_image_message_bubble.widget.dart index 96245274..260c9ecd 100644 --- a/lib/src/widgets/chat/ds_image_message_bubble.widget.dart +++ b/lib/src/widgets/chat/ds_image_message_bubble.widget.dart @@ -8,8 +8,8 @@ import '../../models/ds_document_select.model.dart'; import '../../models/ds_message_bubble_style.model.dart'; import '../../themes/colors/ds_colors.theme.dart'; import '../texts/ds_caption_text.widget.dart'; +import '../utils/ds_circular_progress.widget.dart'; import '../utils/ds_expanded_image.widget.dart'; -import '../utils/ds_progressive_progress.widget.dart'; import 'ds_document_select.widget.dart'; import 'ds_message_bubble.widget.dart'; import 'ds_show_more_text.widget.dart'; @@ -115,7 +115,7 @@ class _DSImageMessageBubbleState extends State isLoading: false, shouldAuthenticate: widget.shouldAuthenticate, ) - : DSProgressiveProgress( + : DSCircularProgress( currentProgress: _controller.downloadProgress, maximumProgress: _controller.maximumProgress, foregroundColor: foregroundColor, diff --git a/lib/src/widgets/chat/video/ds_video_message_bubble.widget.dart b/lib/src/widgets/chat/video/ds_video_message_bubble.widget.dart index 76b38c15..204850c0 100644 --- a/lib/src/widgets/chat/video/ds_video_message_bubble.widget.dart +++ b/lib/src/widgets/chat/video/ds_video_message_bubble.widget.dart @@ -11,7 +11,7 @@ import '../../../services/ds_auth.service.dart'; import '../../../themes/colors/ds_colors.theme.dart'; import '../../../themes/icons/ds_icons.dart'; import '../../buttons/ds_button.widget.dart'; -import '../../utils/ds_progressive_progress.widget.dart'; +import '../../utils/ds_circular_progress.widget.dart'; import '../ds_message_bubble.widget.dart'; import '../ds_show_more_text.widget.dart'; import 'ds_video_body.widget.dart'; @@ -131,7 +131,7 @@ class _DSVideoMessageBubbleState extends State color: DSColors.neutralDarkRooftop, ) : _controller.isDownloading.value - ? DSProgressiveProgress( + ? DSCircularProgress( currentProgress: _controller.downloadProgress, maximumProgress: _controller.maximumProgress, foregroundColor: foregroundColor, diff --git a/lib/src/widgets/utils/ds_progressive_progress.widget.dart b/lib/src/widgets/utils/ds_circular_progress.widget.dart similarity index 95% rename from lib/src/widgets/utils/ds_progressive_progress.widget.dart rename to lib/src/widgets/utils/ds_circular_progress.widget.dart index 77ff175e..7166996f 100644 --- a/lib/src/widgets/utils/ds_progressive_progress.widget.dart +++ b/lib/src/widgets/utils/ds_circular_progress.widget.dart @@ -5,12 +5,12 @@ import 'package:get/get.dart'; import '../../themes/colors/ds_colors.theme.dart'; import '../texts/ds_caption_small_text.widget.dart'; -class DSProgressiveProgress extends StatelessWidget { +class DSCircularProgress extends StatelessWidget { final RxInt maximumProgress; final RxInt currentProgress; final Color? foregroundColor; - const DSProgressiveProgress({ + const DSCircularProgress({ super.key, required this.maximumProgress, required this.currentProgress,