0
AngularDart의 어두운 테마와 밝은 테마를 번갈아 적용하고 싶습니다.AngularDart의 밝은 테마와 어두운 테마 간의 토글 스위치를 적용하려면 어떻게해야합니까?
app_component
<material-icon icon="brightness_2"
class="material-list-item-primary"
aria-hidden="true"></material-icon>
Dark Theme
<span class="material-list-item-secondary">
<material-toggle [checked]="dark" label="Off">
</material-toggle>
</span>
app_component.dart
class LayoutComponent {
bool dark = false;
}