angulardart_components 3.1.0
angulardart_components: ^3.1.0 copied to clipboard
Material Design UI components for AngularDart. Community-maintained fork of Google's original components.

AngularDart Components #
Material Design UI components for AngularDart. Community-maintained fork of Google's original components.
Part of the AngularDart ecosystem.
Components #
Buttons #
MaterialButtonComponent- Standard buttonMaterialFabComponent- Floating action buttonMaterialIconButtonComponent- Icon-only buttonMaterialYesNoButtonsComponent- Confirm/cancel buttons
Form Controls #
MaterialCheckboxComponent- Checkbox inputMaterialRadioComponent/MaterialRadioGroupComponent- Radio buttonsMaterialInputComponent- Text input with floating labelMaterialAutoSuggestInputComponent- Input with autocompleteMaterialSelectComponent/MaterialDropdownSelectComponent- Dropdown selectionMaterialToggleComponent- Toggle switchMaterialSliderComponent- Range sliderMaterialDatepickerComponent- Date pickerMaterialDateRangePickerComponent- Date range pickerMaterialTimePickerComponent- Time picker
Navigation #
MaterialTabComponent/MaterialTabPanelComponent- TabsMaterialMenuComponent/MaterialDropdownMenuComponent- MenusMaterialTreeComponent- Tree viewMaterialStepperComponent- Step-by-step wizard
Layout #
MaterialCardComponent- Card containerMaterialDialogComponent- Modal dialogMaterialExpansionPanelComponent- Expandable panelMaterialPopupComponent- Popup overlayMaterialTooltipComponent/MaterialIconTooltipComponent- TooltipsMaterialSpinnerComponent- Loading indicatorMaterialProgressComponent- Progress bar
Content #
MaterialIconComponent- Material iconsMaterialGlyphComponent- Custom glyphsMaterialChipComponent/MaterialChipsComponent- Chips/tagsMaterialListComponent/MaterialListItemComponent- List itemsMaterialScorecardComponent/MaterialScoreboardComponent- Score displayMaterialReorderListComponent- Drag-and-drop reorderable listSimpleHtmlComponent- Safe HTML rendering
Installation #
Add to your pubspec.yaml:
dependencies:
angulardart: ^8.0.0
angulardart_components: ^2.0.0
Quick Start #
import 'package:angulardart/angular.dart';
import 'package:angulardart_components/angulardart_components.dart';
@Component(
selector: 'my-app',
template: '''
<material-button (trigger)="onClick()">Click me</material-button>
<material-checkbox [(checked)]="isChecked">Accept terms</material-checkbox>
<material-input label="Name" [(ngModel)]="name"></material-input>
''',
directives: [
MaterialButtonComponent,
MaterialCheckboxComponent,
MaterialInputComponent,
],
)
class AppComponent {
bool isChecked = false;
String name = '';
void onClick() {
print('Button clicked!');
}
}
Material Design Theming #
Customize the look and feel with Material Design themes:
import 'package:angulardart_components/css/material/material.scss';
Forms Integration #
Use components with AngularDart Forms:
@Component(
selector: 'my-form',
template: '''
<material-input
label="Email"
[ngModel]="email"
(ngModelChange)="email = \$event"
required>
</material-input>
<material-checkbox [(ngModel)]="acceptTerms">
I accept the terms
</material-checkbox>
''',
directives: [
MaterialInputComponent,
MaterialCheckboxComponent,
formDirectives,
],
)
class MyForm {
String email = '';
bool acceptTerms = false;
}
Dialogs #
@Component(
selector: 'my-app',
template: '''
<material-button (trigger)="showDialog()">Open Dialog</material-button>
<material-dialog #dialog>
<h3 header>Confirm</h3>
<div>Are you sure?</div>
<material-yes-no-buttons
footer
(yes)="dialog.close()"
(no)="dialog.close()">
</material-yes-no-buttons>
</material-dialog>
''',
directives: [
MaterialButtonComponent,
MaterialDialogComponent,
MaterialYesNoButtonsComponent,
],
)
class AppComponent {
@ViewChild('dialog')
MaterialDialogComponent? dialog;
void showDialog() {
dialog?.open();
}
}
Documentation #
- API Reference
- AngularDart main package
- SEO & Prerendering Guide - Add SEO meta tags and static prerendering to your components
Related Packages #
- angulardart_seo - Dynamic meta tags, titles, Open Graph, Twitter Cards
- angulardart_prerender - Static prerendering for search engine optimization
Requirements #
- Dart SDK >= 3.0.0
- AngularDart >= 8.0.0
License #
MIT License
Disclaimer #
AngularDart Reborn is a community-maintained fork of Google's original AngularDart framework (formerly known as AngularDart by Google). This project is not affiliated with, endorsed by, or sponsored by Google LLC.
- Angular, AngularDart, and all associated packages (
angulardart,angulardart_router,angulardart_compiler,angulardart_forms,angulardart_meta,angulardart_ast,angulardart_cli,angulardart_seo,angulardart_prerender,angulardart_test,angulardart_components) are trademarks and projects of the AngularDart Reborn community. - The original AngularDart framework was developed by Google LLC and hosted at github.com/angulardart.
- This is an independent, 100% community-driven project that continues the work started by Google's AngularDart team after Google ceased active maintenance.
For the official Angular Framework (TypeScript/JavaScript), visit angular.io. For the original Google-maintained AngularDart repository, see github.com/angulardart.