Skip to content

Commit

Permalink
Merge pull request #243 from takenet/release/0.0.94
Browse files Browse the repository at this point in the history
[Release] 0.0.94
  • Loading branch information
mpamaro authored Jan 3, 2024
2 parents 984e0c1 + 48c4364 commit 7b04b18
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.94

- [DSExpandedImage] Centered the circular progress loading.

## 0.0.93

- [DSColors] Added a new color.
Expand Down
9 changes: 5 additions & 4 deletions lib/src/widgets/utils/ds_circular_progress.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ class DSCircularProgress extends StatelessWidget {
: null,
),
),
DSCaptionSmallText(
_buildProgress(),
color: foregroundColor ?? DSColors.neutralDarkCity,
)
if (currentProgress.value > 0 && maximumProgress.value > 0)
DSCaptionSmallText(
_buildProgress(),
color: foregroundColor ?? DSColors.neutralDarkCity,
)
],
),
);
Expand Down
29 changes: 12 additions & 17 deletions lib/src/widgets/utils/ds_expanded_image.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,23 +165,18 @@ class DSExpandedImage extends StatelessWidget {
),
);

Widget _buildLoading() => Column(
mainAxisSize: MainAxisSize.min,
children: [
Padding(
padding: const EdgeInsets.symmetric(
vertical: 8.0,
),
child: Center(
child: DSSpinnerLoading(
color: style.isLightBubbleBackground(align)
? DSColors.primaryNight
: DSColors.neutralLightSnow,
size: 32.0,
lineWidth: 4.0,
),
),
Widget _buildLoading() => Center(
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 8.0,
),
],
child: DSSpinnerLoading(
color: style.isLightBubbleBackground(align)
? DSColors.primaryNight
: DSColors.neutralLightSnow,
size: 32.0,
lineWidth: 4.0,
),
),
);
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: blip_ds
description: Blip Design System for Flutter.
version: 0.0.93
version: 0.0.94
homepage: https://github.com/takenet/blip-ds-flutter#readme
repository: https://github.com/takenet/blip-ds-flutter

Expand Down

0 comments on commit 7b04b18

Please sign in to comment.