change
This commit is contained in:
@@ -4,6 +4,7 @@ import 'package:flutter_flow_chart/src/ui/draw_arrow.dart';
|
||||
import 'package:flutter_flow_chart/flutter_flow_chart.dart';
|
||||
import 'package:flutter_colorpicker/flutter_colorpicker.dart';
|
||||
import 'package:number_text_input_formatter/number_text_input_formatter.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
|
||||
class FlowChartSelectedMenu extends StatefulWidget {
|
||||
Dashboard dashboard;
|
||||
@@ -50,6 +51,8 @@ class FlowChartSelectedMenuState extends State<FlowChartSelectedMenu> {
|
||||
child: InkWell( mouseCursor: SystemMouseCursors.click,
|
||||
onTap: () {
|
||||
for (var sel in widget.dashboard.elementSelected) {
|
||||
var el =FlowElement.fromMap(widget.dashboard, sel.toMap());
|
||||
el.id = Uuid().v8();
|
||||
widget.dashboard.addElement(FlowElement.fromMap(widget.dashboard, sel.toMap()), context);
|
||||
widget.dashboard.elements.last.position += Offset(50, 50);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user