Last active
July 25, 2018 19:54
-
-
Save alexd1971/84b868f7d2dd97e0fafae34315bf369d to your computer and use it in GitHub Desktop.
Angular Dart Material Datepicker theming is not working
This file contains 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
import 'package:angular/angular.dart'; | |
import 'package:angular_components/utils/browser/window/module.dart'; | |
import 'package:angular_components/material_datepicker/module.dart'; | |
import 'package:angular_components/material_datepicker/material_date_time_picker.dart'; | |
@Component( | |
selector: 'my-app', | |
styleUrls: ['app_component.css'], | |
templateUrl: 'app_component.html', | |
providers: const [ | |
windowBindings, | |
datepickerBindings | |
], | |
directives: const [ | |
MaterialDateTimePickerComponent, | |
] | |
) | |
class AppComponent { | |
} |
This file contains 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
<h1>Material DateTimePicker</h1> | |
<h2>Date and Time Picker</h2> | |
<material-date-time-picker></material-date-time-picker> |
This file contains 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
@import 'package:angular_components/css/material/material'; | |
@import 'package:angular_components/material_datepicker/mixins'; | |
:host { | |
@include material-calendar-picker-theme($mat-grey-map); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment