buildSplit method
Implementation
Widget buildSplit(BuildContext context) {
return Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.end, // Align content at the bottom
children: [
Expanded(
flex: 1, // Takes 1/3 of the space
child: Align(
alignment: Alignment.center,
child: buildTicker(context),
),
),
Expanded(
flex: 2, // Takes 2/3 of the space
child: ClipRect(
// ✅ Ensures no overflow outside the defined space
child: buildGraph(context), // The graph or content
),
),
],
);
}