 import Material
 
 struct ButtonLayout {
-    
     struct Flat {
         static let width: CGFloat = 120
         static let height: CGFloat = 36

    private func prepareFlatButton() {
        let button = FlatButton(title: "Flat Button", titleColor: Color.blue.base)
        
        view.layout(button).width(ButtonLayout.Flat.width).height(ButtonLayout.Flat.height).center(offsetY: ButtonLayout.Flat.offsetY)
    }
    
    private func prepareRaisedButton() {

        button.pulseColor = Color.white
        button.backgroundColor = Color.blue.base
        
        view.layout(button)
            .width(ButtonLayout.Raised.width)
            .height(ButtonLayout.Raised.height)
            .center(offsetY: ButtonLayout.Raised.offsetY)
    }
    
    private func prepareFabButton() {
        let button = FabButton(image: Icon.cm.add, tintColor: Color.white)
        
        view.layout(button)
            .width(ButtonLayout.Fab.diameter)
            .height(ButtonLayout.Fab.diameter)
            .center()
    }
    
    private func prepareIconButton() {
        let button = IconButton(image: Icon.cm.search, tintColor: Color.blue.base)
        
        view.layout(button)
            .width(ButtonLayout.Icon.width)
            .height(ButtonLayout.Icon.height)
            .center(offsetY: ButtonLayout.Icon.offsetY)
    }
}

