mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-11-27 18:54:55 +00:00
layout web
This commit is contained in:
@ -29,11 +29,11 @@ class TreeWidget extends StatelessWidget {
|
||||
if (state is HomeInitial) {
|
||||
return Wrap(
|
||||
children: [
|
||||
Container(
|
||||
SizedBox(
|
||||
width: 100,
|
||||
child: TextFormField(
|
||||
decoration:
|
||||
InputDecoration(labelText: "Subtree separation"),
|
||||
const InputDecoration(labelText: "Subtree separation"),
|
||||
onChanged: (text) {
|
||||
firstNodeName = text;
|
||||
},
|
||||
@ -55,7 +55,6 @@ class TreeWidget extends StatelessWidget {
|
||||
onPressed: () {
|
||||
final node1 = Node.Id(firstNodeName);
|
||||
final node2 = Node.Id(secondNodeName);
|
||||
|
||||
context.read<HomeBloc>().add(CreateNewNode(
|
||||
sourceNode: node1, destinationNode: node2));
|
||||
},
|
||||
@ -99,7 +98,6 @@ class TreeWidget extends StatelessWidget {
|
||||
|
||||
Widget rectangleWidget(String text, Node node, BuildContext blocContext) {
|
||||
String nodeName = '';
|
||||
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
showDialog(
|
||||
@ -145,6 +143,7 @@ Widget rectangleWidget(String text, Node node, BuildContext blocContext) {
|
||||
BoxShadow(color: Colors.blue[100]!, spreadRadius: 1),
|
||||
],
|
||||
),
|
||||
child: Text(text)),
|
||||
child: Text(text)
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user