layout web

This commit is contained in:
mohammad
2024-07-18 15:12:06 +03:00
parent 71bba79887
commit 68fe7d9634
23 changed files with 1242 additions and 226 deletions

View File

@ -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)
),
);
}