🐛 Fix bugs
This commit is contained in:
@@ -6,7 +6,10 @@ import 'package:island/pods/network.dart';
|
|||||||
final poolsProvider = FutureProvider<List<SnFilePool>>((ref) async {
|
final poolsProvider = FutureProvider<List<SnFilePool>>((ref) async {
|
||||||
final dio = ref.watch(apiClientProvider);
|
final dio = ref.watch(apiClientProvider);
|
||||||
final response = await dio.get('/drive/pools');
|
final response = await dio.get('/drive/pools');
|
||||||
return response.data.map((e) => SnFilePool.fromJson(e)).toList();
|
return response.data
|
||||||
|
.map((e) => SnFilePool.fromJson(e))
|
||||||
|
.cast<SnFilePool>()
|
||||||
|
.toList();
|
||||||
});
|
});
|
||||||
|
|
||||||
String? resolveDefaultPoolId(WidgetRef ref, List<SnFilePool> pools) {
|
String? resolveDefaultPoolId(WidgetRef ref, List<SnFilePool> pools) {
|
||||||
|
@@ -130,7 +130,7 @@ class MessageItem extends HookConsumerWidget {
|
|||||||
|
|
||||||
useEffect(() {
|
useEffect(() {
|
||||||
if (flashing) {
|
if (flashing) {
|
||||||
if (flashTimer.value != null) return null;
|
flashTimer.value?.cancel();
|
||||||
isFlashing.value = true;
|
isFlashing.value = true;
|
||||||
flashTimer.value = Timer.periodic(
|
flashTimer.value = Timer.periodic(
|
||||||
const Duration(milliseconds: kFlashDuration),
|
const Duration(milliseconds: kFlashDuration),
|
||||||
|
Reference in New Issue
Block a user