Packages

Brings CSS-like grid as well as auto-layouts for components. This allows one to dynamically add components to a scene. The goal is to bring some familiar layout apis to Scenic.

Current section

Files

Jump to
scenic_layout_o_matic lib layout_o_matic.ex
Raw

lib/layout_o_matic.ex

defmodule LayoutOMatic do
@moduledoc """
Starter application using the Scenic framework.
"""
def start(_type, _args) do
# load the viewport configuration from config
main_viewport_config = Application.get_env(:scenic_layout_o_matic, :viewport)
# start the application with the viewport
children = [
{Scenic, viewports: [main_viewport_config]}
]
Supervisor.start_link(children, strategy: :one_for_one)
end
end