feat: add operation buttons and tooltip background.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user