From 872c3da044f5954dd1acc22054cd3c2db16662a0 Mon Sep 17 00:00:00 2001 From: Hamlet Jiang Su Date: Sat, 1 Jul 2023 10:43:52 -0700 Subject: [PATCH] haptic feedback on post refresh, updated version number for nightly --- lib/post/pages/post_page.dart | 2 ++ pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/post/pages/post_page.dart b/lib/post/pages/post_page.dart index 2921e1ee1..4aa89eabc 100644 --- a/lib/post/pages/post_page.dart +++ b/lib/post/pages/post_page.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; @@ -139,6 +140,7 @@ class _PostPageState extends State { if (state.postView != null) { return RefreshIndicator( onRefresh: () async { + HapticFeedback.mediumImpact(); return context.read().add(GetPostEvent(postView: widget.postView, postId: widget.postId)); }, child: PostPageSuccess(postView: state.postView!, comments: state.comments, scrollController: _scrollController), diff --git a/pubspec.yaml b/pubspec.yaml index f8eb010bf..bf8d1fe74 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"