diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 952089b..41c5fc3 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -40,7 +40,7 @@ dependencies: lazy_load_scrollview: infinite_scroll_pagination: - likeminds_feed: 1.6.1 + likeminds_feed: 1.6.2 # path: ../../LikeMinds-Flutter-Feed-SDK likeminds_feed_ui_fl: diff --git a/lib/src/widgets/common/extras/loader.dart b/lib/src/widgets/common/extras/loader.dart index 087ee87..c9c2c76 100644 --- a/lib/src/widgets/common/extras/loader.dart +++ b/lib/src/widgets/common/extras/loader.dart @@ -2,13 +2,14 @@ import 'package:flutter/material.dart'; class LMLoader extends StatelessWidget { final bool isPrimary; + final Color? color; - const LMLoader({super.key, this.isPrimary = true}); + const LMLoader({super.key, this.isPrimary = true, this.color}); @override Widget build(BuildContext context) { return CircularProgressIndicator( - color: isPrimary ? Theme.of(context).primaryColor : Colors.white, + color: color ?? (isPrimary ? Theme.of(context).primaryColor : Colors.white), ); } } diff --git a/pubspec.yaml b/pubspec.yaml index c575196..5d1ef92 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -28,7 +28,7 @@ dependencies: media_kit_video: ^1.1.8 # For video rendering. media_kit_libs_video: ^1.0.1 - likeminds_feed: 1.6.1 + likeminds_feed: 1.6.2 # path: ../LikeMinds-Flutter-Feed-SDK