feat: add operation buttons and tooltip background.

This commit is contained in:
2021-10-12 14:18:59 +08:00
parent f58e76ba25
commit 12cdbaecbe
5 changed files with 168 additions and 47 deletions
+4
View File
@@ -6,6 +6,9 @@ import 'package:dde_gesture_manager/utils/helper.dart';
@ProviderModel(copyable: true)
class Scheme {
@ProviderModelProp()
String? id;
@ProviderModelProp()
String? name;
@@ -18,6 +21,7 @@ class Scheme {
Scheme.parse(scheme) {
if (scheme is String) scheme = json.decode(scheme);
assert(scheme is Map);
id = scheme['id'];
name = scheme['name'];
description = scheme['desc'];
gestures = (scheme['gestures'] as List? ?? []).map<GestureProp>((ele) => GestureProp.parse(ele)).toList();