This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final RiffSwitchType type; | |
RiffSwitchType get _type => type; | |
@override | |
Widget build(BuildContext context) { | |
// Dart 2 | |
/*switch (_type) { | |
case RiffSwitchType.simple: | |
return _buildSimpleSwitch(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="todoapp"> | |
<header class="header"> | |
<h1>Tareas</h1> | |
<input id="new-todo-input" class="new-todo" placeholder="¿Qué necesita ser hecho?" autofocus> | |
</header> | |
<!-- This section should be hidden by default and shown when there are todos --> | |
<section class="main"> | |
<input id="toggle-all" class="toggle-all" type="checkbox"> | |
<label for="toggle-all">Mark all as complete</label> |