add vibration of refresh to communities tab

This commit is contained in:
krawieck 2021-01-09 02:36:27 +01:00
parent 82ba55cbe3
commit 0bef4fe1af
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import 'dart:async';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:fuzzy/fuzzy.dart';
import 'package:lemmy_api_client/lemmy_api_client.dart';
@ -94,6 +95,7 @@ class CommunitiesTab extends HookWidget {
}
refresh() async {
await HapticFeedback.mediumImpact();
try {
final i = getInstances();
final c = getCommunities();