mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-04 04:51:30 +03:00
fix: flutter remove setState in initState (#8807)
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -1271,12 +1271,14 @@ class ActionIcon extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _ActionIconState extends State<ActionIcon> {
|
||||
var hover = false.obs;
|
||||
final hover = false.obs;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
hover.value = false;
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
hover.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user