mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
* Update sample index dependencies * Update to tuneup 0.3.8, update dependencies * Upgrade to null safety, lock sass version * fix analyzer warnings * Fix unit tests * Fix issues from upgrading to null safety
14 lines
409 B
Dart
14 lines
409 B
Dart
import 'dart:html';
|
|
|
|
import 'package:mdc_web/mdc_web.dart';
|
|
import 'package:samples_index/src/carousel.dart';
|
|
|
|
void main() {
|
|
querySelectorAll('.mdc-card__primary-action').forEach((el) => MDCRipple(el));
|
|
|
|
// Initialize carousel
|
|
// This carousel will use the div slider-container as the base
|
|
// withArrowKeyControl is used to listen for arrow key up events
|
|
Carousel.init(withArrowKeyControl: true);
|
|
}
|