build method

  1. @override
Widget build(
  1. BuildContext context,
  2. SettingsModel model
)
override

Builds the UI according to the state in model.

Implementation

@override
Widget build(BuildContext context, SettingsModel model) => SizedBox(
    height: height,
    child: model.science.scrollableGraphs
		? ScrollConfiguration(
		  behavior: DesktopScrollBehavior(),
			child: ListView(
				scrollDirection: Axis.horizontal,
				children: [for (final child in children) SizedBox(width: 400, child: child)],
			),
		)
		: Row(
			children: [for (final child in children) Expanded(child: child)],
		),
  );