Skip to content

Instantly share code, notes, and snippets.

@johnpryan
Created October 18, 2023 16:50
Show Gist options
  • Save johnpryan/c2e13b349d69e4a6f8e1223d2082fcdf to your computer and use it in GitHub Desktop.
Save johnpryan/c2e13b349d69e4a6f8e1223d2082fcdf to your computer and use it in GitHub Desktop.
lively-performance-3668

lively-performance-3668

Created with <3 with dartpad.dev.

bool isVertical = false;
Widget build() {
return const Column(
direction: isVertical ? 'vertical' : 'horizontal',
children: [
Widget(),
Widget(),
],
);
}
class Widget {
const Widget();
}
class Column extends Widget {
final List<Widget> children;
final String? direction;
const Column({required this.children, this.direction = 'vertical'});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment