Graph Node: Render with a black border

This way the nodes are more easily recognizable when they overlap each
other.
This commit is contained in:
Vishesh Handa
2020-09-26 00:32:33 +02:00
parent 445beb850d
commit 4928143b31

View File

@ -160,9 +160,14 @@ class NodeWidget extends StatelessWidget {
Container( Container(
width: size, width: size,
height: size, height: size,
decoration: const BoxDecoration( decoration: BoxDecoration(
color: Colors.orange, color: Colors.orange,
shape: BoxShape.circle, shape: BoxShape.circle,
border: Border.all(
width: 1,
color: Colors.black,
style: BorderStyle.solid,
),
), ),
), ),
Text(label, style: textStyle), Text(label, style: textStyle),