add vibration of refresh to communities tab
This commit is contained in:
parent
82ba55cbe3
commit
0bef4fe1af
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue