Skip to content

Commit

Permalink
haptic feedback on post refresh, updated version number for nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
hjiangsu committed Jul 1, 2023
1 parent e872889 commit 872c3da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/post/pages/post_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'package:flutter_bloc/flutter_bloc.dart';

Expand Down Expand Up @@ -139,6 +140,7 @@ class _PostPageState extends State<PostPage> {
if (state.postView != null) {
return RefreshIndicator(
onRefresh: () async {
HapticFeedback.mediumImpact();
return context.read<PostBloc>().add(GetPostEvent(postView: widget.postView, postId: widget.postId));
},
child: PostPageSuccess(postView: state.postView!, comments: state.comments, scrollController: _scrollController),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: thunder
description: An open-source cross-platform Lemmy client for iOS and Android built with Flutter
publish_to: "none"
version: 0.2.1-alpha.1+9
version: 0.2.1-alpha.2+9

environment:
sdk: ">=3.1.0-116.0.dev <4.0.0"
Expand Down

0 comments on commit 872c3da

Please sign in to comment.