Skip to content

Commit 6605b09

Browse files
Merge pull request LikeMindsCommunity#66 from LikeMindsCommunity/release/v1.3.10
Release/v1.3.10
2 parents 6d4838c + 55af4b9 commit 6605b09

File tree

6 files changed

+21
-18
lines changed

6 files changed

+21
-18
lines changed

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 1.3.9
19+
version: 1.3.10
2020

2121
environment:
2222
sdk: ">=3.0.0 <4.0.0"

lib/src/utils/constants.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
const String kRegexLinksAndTags =
22
r'(?:(?:http|https|ftp|www)\:\/\/)?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{1,}(?::[a-zA-Z0-9]*)?\/?[^\s\n]+|[\w\.-]+@[a-zA-Z\d\.-]+\.[a-zA-Z]{2,}|<<([^<>]+)\|route://member/([a-zA-Z-0-9]+)>>';
33

4-
const String uiVersion = '1.3.8';

lib/src/utils/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
55
import 'package:timeago/timeago.dart';
66
import 'package:likeminds_feed_ui_fl/src/utils/theme.dart';
77

8-
const String feedUIVersion = "1.3.9";
8+
const String feedUIVersion = "1.3.10";
99

1010
extension StringColor on String {
1111
Color? toColor() {

lib/src/widgets/media/carousel.dart

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class LMCarousel extends StatefulWidget {
1717
final Color? borderColor;
1818
final Color? activeIndicatorColor;
1919
final Color? inactiveIndicatorColor;
20-
20+
final Color? backgroundColor;
2121
final Widget? activeIndicator;
2222
final Widget? inactiveIndicator;
2323

@@ -35,6 +35,7 @@ class LMCarousel extends StatefulWidget {
3535
this.borderRadius,
3636
this.borderSize,
3737
this.borderColor,
38+
this.backgroundColor,
3839
this.activeIndicator,
3940
this.inactiveIndicator,
4041
this.imageItem,
@@ -69,8 +70,8 @@ class _LMCarouselState extends State<LMCarousel> {
6970
mediaWidgets = widget.attachments.map((e) {
7071
if (e.attachmentType == 1) {
7172
return Container(
72-
color: Colors.black,
73-
width: MediaQuery.of(context).size.width,
73+
color: widget.backgroundColor ?? Colors.black,
74+
width:widget.width?? MediaQuery.of(context).size.width,
7475
child: Center(
7576
child: widget.imageItem ??
7677
LMImage(
@@ -87,19 +88,21 @@ class _LMCarouselState extends State<LMCarousel> {
8788
);
8889
} else if ((e.attachmentType == 2)) {
8990
return Container(
90-
color: Colors.black,
91+
color: widget.backgroundColor ?? Colors.black,
9192
width: MediaQuery.of(context).size.width,
9293
child: widget.videoItem ??
93-
LMVideo(
94-
initialiseVideoController: widget.initialiseVideoController,
95-
videoUrl: e.attachmentMeta.url,
96-
width: widget.width,
97-
height: widget.height,
98-
borderRadius: widget.borderRadius,
99-
borderColor: widget.borderColor,
100-
boxFit: widget.boxFit ?? BoxFit.contain,
101-
showControls: false,
102-
errorWidget: widget.errorWidget,
94+
Center(
95+
child: LMVideo(
96+
initialiseVideoController: widget.initialiseVideoController,
97+
videoUrl: e.attachmentMeta.url,
98+
width: widget.width,
99+
height: widget.height,
100+
borderRadius: widget.borderRadius,
101+
borderColor: widget.borderColor,
102+
boxFit: widget.boxFit ?? BoxFit.contain,
103+
showControls: false,
104+
errorWidget: widget.errorWidget,
105+
),
103106
),
104107
);
105108
} else {

lib/src/widgets/post/post_media.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class _LMPostMediaState extends State<LMPostMedia> {
9797
initialiseVideoController: widget.initialiseVideoController,
9898
attachments: attachments!,
9999
borderRadius: widget.borderRadius,
100+
backgroundColor: widget.backgroundColor,
100101
activeIndicatorColor: widget.carouselActiveIndicatorColor,
101102
inactiveIndicatorColor: widget.carouselInactiveIndicatorColor,
102103
errorWidget: widget.errorWidget,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: likeminds_feed_ui_fl
22
description: A Flutter package for Likeminds Feed UI widgets. Used alongside the Likeminds Feed SDK package (likeminds_feed) to build custom interfaces.
3-
version: 1.3.9
3+
version: 1.3.10
44
publish_to: none
55
homepage: "www.likeminds.community/"
66

0 commit comments

Comments
 (0)