Importált rétegek stílusának szerkesztése
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get_rx/src/rx_types/rx_types.dart';
|
||||
import 'package:terepi_seged/core/style_editable.dart';
|
||||
|
||||
class LayerStyleSession implements StyleEditable {
|
||||
@override
|
||||
Rx<Color> activeEditColor = Color(0xFF1565C0).obs;
|
||||
@override
|
||||
RxDouble activeEditOpacity = 0.35.obs;
|
||||
@override
|
||||
RxDouble activeEditStrokeWidth = 2.5.obs;
|
||||
|
||||
LayerStyleSession(
|
||||
{required Color color,
|
||||
required double opacity,
|
||||
required double strokeWidth}) {
|
||||
activeEditColor.value = color;
|
||||
activeEditOpacity.value = opacity;
|
||||
activeEditStrokeWidth.value = strokeWidth;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user