diff --git a/lib/ui/tools/create_collage_page.dart b/lib/ui/tools/create_collage_page.dart index 1ca3285b5..f9d6000ba 100644 --- a/lib/ui/tools/create_collage_page.dart +++ b/lib/ui/tools/create_collage_page.dart @@ -16,6 +16,7 @@ class CreateCollagePage extends StatefulWidget { class _CreateCollagePageState extends State { final _logger = Logger("CreateCollagePage"); + bool _isLayoutVertical = false; @override Widget build(BuildContext context) { @@ -32,7 +33,37 @@ class _CreateCollagePageState extends State { } Widget _getBody() { - return VerticalSplit(widget.files[0], widget.files[1]); + return Column( + children: [ + _isLayoutVertical + ? VerticalSplit(widget.files[0], widget.files[1]) + : HorizontalSplit(widget.files[0], widget.files[1]), + const SizedBox( + height: 24, + ), + const Text("Choose layout"), + Row( + children: [ + TextButton( + child: const Icon(Icons.border_vertical_rounded), + onPressed: () { + setState(() { + _isLayoutVertical = true; + }); + }, + ), + TextButton( + child: const Icon(Icons.splitscreen), + onPressed: () { + setState(() { + _isLayoutVertical = false; + }); + }, + ) + ], + ) + ], + ); } Widget _getGrid() {