Flutter – How to change parent of widgets without rebuilding their states
In flutter, I have widgets like: class _MyHomePageState extends State<MyHomePage> { @override Widget build(BuildContext context) => Scaffold( body: OrientationBuilder( builder: (context, orientation) { const List<ColorfulBox> children = [ColorfulBox(), ColorfulBox()]; return orientation == Orientation.portrait ? const Row(children: children) : const Column(children:…