| OLD | NEW |
| 1 part of widgets; | 1 part of widgets; |
| 2 | 2 |
| 3 class Button extends ButtonBase { | 3 class Button extends ButtonBase { |
| 4 | 4 |
| 5 static Style _style = new Style(''' | 5 static Style _style = new Style(''' |
| 6 transform: translateX(0); | 6 transform: translateX(0); |
| 7 display: inline-flex; | 7 display: inline-flex; |
| 8 border-radius: 4px; | 8 border-radius: 4px; |
| 9 justify-content: center; | 9 justify-content: center; |
| 10 align-items: center; | 10 align-items: center; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 border: 1px solid blue; | 22 border: 1px solid blue; |
| 23 -webkit-user-select: none; | 23 -webkit-user-select: none; |
| 24 margin: 5px; | 24 margin: 5px; |
| 25 background-color: orange;''' | 25 background-color: orange;''' |
| 26 ); | 26 ); |
| 27 | 27 |
| 28 Node content; | 28 Node content; |
| 29 | 29 |
| 30 Button({ Object key, this.content }) : super(key: key); | 30 Button({ Object key, this.content }) : super(key: key); |
| 31 | 31 |
| 32 Node render() { | 32 Node build() { |
| 33 return new Container( | 33 return new Container( |
| 34 key: 'Button', | 34 key: 'Button', |
| 35 style: _highlight ? _highlightStyle : _style, | 35 style: _highlight ? _highlightStyle : _style, |
| 36 children: [super.render(), content] | 36 children: [super.build(), content] |
| 37 ); | 37 ); |
| 38 } | 38 } |
| 39 } | 39 } |
| OLD | NEW |