odrs 0.0.4 copy "odrs: ^0.0.4" to clipboard
odrs: ^0.0.4 copied to clipboard

Open Desktop Ratings Service (ODRS) client for Dart.

example/example.dart

import 'utils.dart';

Future<void> main() async {
  final client = createOdrsClient(url: 'https://odrs.gnome.org/');

  print('Please wait. Fetching all ratings...');
  final ratings = await client.getRatings();
  for (final rating in ratings.entries) {
    print('${rating.key}: ${rating.value.average.toStringAsFixed(1)}');
  }

  client.close();
}
0
likes
150
points
54
downloads

Publisher

verified publishercanonical.com

Weekly Downloads

Open Desktop Ratings Service (ODRS) client for Dart.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

meta

More

Packages that depend on odrs