mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Display the list of friends of the user
This commit is contained in:
13
lib/ui/widgets/safe_state.dart
Normal file
13
lib/ui/widgets/safe_state.dart
Normal file
@ -0,0 +1,13 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// Little State hack to avoid issues
|
||||
///
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
abstract class SafeState<T extends StatefulWidget> extends State<T> {
|
||||
@override
|
||||
void setState(fn) {
|
||||
if(mounted)
|
||||
super.setState(fn);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user