mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-21 00:03:21 +03:00
add loading
This commit is contained in:
@@ -5,6 +5,7 @@ import 'dart:io';
|
||||
import 'dart:ffi';
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'package:flutter_easyloading/flutter_easyloading.dart';
|
||||
|
||||
class HexColor extends Color {
|
||||
HexColor(final String hexColor) : super(_getColorFromHex(hexColor));
|
||||
@@ -104,3 +105,12 @@ class Peer {
|
||||
hostname = json['hostname'],
|
||||
platform = json['platform'];
|
||||
}
|
||||
|
||||
// https://github.com/huangjianke/flutter_easyloading
|
||||
void showLoading(String text) {
|
||||
EasyLoading.show(status: text);
|
||||
}
|
||||
|
||||
void dismissLoading() {
|
||||
EasyLoading.dismiss();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user