Skip to content

Commit 6d4838c

Browse files
Merge pull request #62 from LikeMindsCommunity/release/v1.3.9
Release/v1.3.9
2 parents 230e589 + 06e0d6f commit 6d4838c

39 files changed

+156
-168
lines changed

example/lib/services/likeminds_service.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ class LikeMindsService implements ILikeMindsService {
6363

6464
int? get getFeedroomId => feedroomId;
6565

66-
LikeMindsService(LMSDKCallback sdkCallback, String apiKey) {
66+
LikeMindsService(LMSDKCallback sdkCallback, String apiKey,
67+
{Function(Exception, StackTrace)? onErrorHandler}) {
6768
debugPrint("UI Layer: LikeMindsService initialized");
6869
_mediaService = MediaService(_prodFlag);
6970
final String key = apiKey.isEmpty

example/lib/services/media_service.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'dart:io';
2+
import 'package:flutter/material.dart';
23
import 'package:lm_feed_ui_example/utils/credentials/credentials.dart';
34
import 'package:path/path.dart';
45

@@ -29,7 +30,7 @@ class MediaService {
2930
);
3031
return result;
3132
} on SimpleS3Errors catch (e) {
32-
print(e.toString());
33+
debugPrint(e.toString());
3334
return null;
3435
}
3536
}

example/lib/views/feed/feed_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class _FeedScreenState extends State<FeedScreen> {
155155
}
156156

157157
class MyPostWidget extends LMPostWidget {
158-
MyPostWidget({
158+
const MyPostWidget({
159159
super.key,
160160
required PostViewData post,
161161
required User user,

example/lib/views/new_post/new_post/new_post_bloc.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'dart:async';
22
import 'dart:io';
33

44
import 'package:equatable/equatable.dart';
5+
import 'package:flutter/material.dart';
56
import 'package:flutter_bloc/flutter_bloc.dart';
67
import 'package:likeminds_feed/likeminds_feed.dart';
78
import 'package:lm_feed_ui_example/services/likeminds_service.dart';
@@ -145,7 +146,7 @@ class NewPostBloc extends Bloc<NewPostEvents, NewPostState> {
145146
}
146147
} catch (err) {
147148
emit(const NewPostError(message: 'An error occurred'));
148-
print(err.toString());
149+
debugPrint(err.toString());
149150
}
150151
}
151152
if (event is EditPost) {

example/lib/views/new_post/new_post_screen.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ class _NewPostScreenState extends State<NewPostScreen> {
235235
@override
236236
Widget build(BuildContext context) {
237237
// SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);
238-
final screenSize = MediaQuery.of(context).size;
239238
newPostBloc = BlocProvider.of<NewPostBloc>(context);
240239
return WillPopScope(
241240
onWillPop: () {

example/lib/views/post_detail/post_detail/comment/all_comments/all_comments_state.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class AllCommentsInitial extends AllCommentsState {
1414
class AllCommentsLoaded extends AllCommentsState {
1515
final PostDetailResponse postDetails;
1616
final bool hasReachedMax;
17-
const AllCommentsLoaded({required this.postDetails, required this.hasReachedMax});
17+
const AllCommentsLoaded(
18+
{required this.postDetails, required this.hasReachedMax});
1819

1920
@override
2021
List<Object?> get props => [postDetails, hasReachedMax];

example/lib/views/post_detail/post_detail/comment/comment_replies/comment_replies_bloc.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'dart:async';
22

33
import 'package:bloc/bloc.dart';
44
import 'package:equatable/equatable.dart';
5+
import 'package:flutter/material.dart';
56
import 'package:likeminds_feed/likeminds_feed.dart';
67
import 'package:lm_feed_ui_example/services/likeminds_service.dart';
78
import 'package:lm_feed_ui_example/services/service_locator.dart';
@@ -40,7 +41,7 @@ class CommentRepliesBloc
4041
} else {
4142
emit(CommentRepliesLoading());
4243
}
43-
print("hellobook");
44+
debugPrint("hellobook");
4445

4546
GetCommentResponse response =
4647
await lmService.getComment(commentDetailRequest);

example/pubspec.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: lm_feed_ui_example
22
description: An example app showing the usage of LikeMinds Flutter UI package based on our default designs
33
# The following line prevents the package from being accidentally published to
44
# pub.dev using `flutter pub publish`. This is preferred for private packages.
5-
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
5+
publish_to: "none" # Remove this line if you wish to publish to pub.dev
66

77
# The following defines the version and build number for your application.
88
# A version number is three numbers separated by dots, like 1.2.43
@@ -16,10 +16,10 @@ 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.8
19+
version: 1.3.9
2020

2121
environment:
22-
sdk: '>=3.0.0 <4.0.0'
22+
sdk: ">=3.0.0 <4.0.0"
2323

2424
# Dependencies specify other packages that your package needs in order to work.
2525
# To automatically upgrade your package dependencies to the latest versions
@@ -31,21 +31,23 @@ dependencies:
3131
flutter:
3232
sdk: flutter
3333

34-
get_it:
34+
get_it:
3535
envied:
36-
shared_preferences:
37-
simple_s3:
36+
shared_preferences:
37+
simple_s3:
38+
equatable:
39+
bloc:
3840
flutter_bloc:
39-
overlay_support:
40-
lazy_load_scrollview:
41-
infinite_scroll_pagination:
41+
overlay_support:
42+
lazy_load_scrollview:
43+
infinite_scroll_pagination:
4244

43-
likeminds_feed: 1.6.3
44-
# path: ../../LikeMinds-Flutter-Feed-SDK
45-
46-
likeminds_feed_ui_fl:
45+
likeminds_feed_ui_fl:
4746
path: ../
4847

48+
likeminds_feed: 1.6.5
49+
# path: ../../LikeMinds-Flutter-Feed-SDK
50+
4951
# The following adds the Cupertino Icons font to your application.
5052
# Use with the CupertinoIcons class for iOS style icons.
5153
cupertino_icons: ^1.0.2
@@ -66,7 +68,6 @@ dev_dependencies:
6668

6769
# The following section is specific to Flutter packages.
6870
flutter:
69-
7071
# The following line ensures that the Material Icons font is
7172
# included with your application, so that you can use the icons in
7273
# the material Icons class.

example/test/widget_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// gestures. You can also use WidgetTester to find child widgets in the widget
66
// tree, read text, and verify that the values of widget properties are correct.
77

8-
import 'package:flutter/material.dart';
9-
import 'package:flutter_test/flutter_test.dart';
8+
// import 'package:flutter/material.dart';
9+
// import 'package:flutter_test/flutter_test.dart';
1010

11-
import 'package:lm_feed_ui_example/main.dart';
11+
// import 'package:lm_feed_ui_example/main.dart';
1212

1313
void main() {
1414
// testWidgets('Counter increments smoke test', (WidgetTester tester) async {

lib/likeminds_feed_ui_fl.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ export 'src/utils/typedefs.dart';
55
export 'src/utils/helpers.dart';
66
export 'src/utils/utils.dart';
77
export 'src/models/models.dart';
8+
export 'src/utils/constants.dart';

0 commit comments

Comments
 (0)