mensapluskit 0.1.0 copy "mensapluskit: ^0.1.0" to clipboard
mensapluskit: ^0.1.0 copied to clipboard

Dart 1 only

A small dart library to access the latest menus of all student canteens in Dresden.

example/mensapluskit_example.dart

import 'package:mensapluskit/mensapluskit.dart';

main() async {

  var canteens = await MensaPlusKit.getCanteens();
  var todayMenu = await canteens.first.getMenu(new DateTime.now());
  todayMenu.items.forEach((item) {
    if (item is Meal) {
      print(item);
    } else {
      print(item);
    }
  });
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A small dart library to access the latest menus of all student canteens in Dresden.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

html, http, intl, path, uuid

More

Packages that depend on mensapluskit