ray_dart 0.0.5 copy "ray_dart: ^0.0.5" to clipboard
ray_dart: ^0.0.5 copied to clipboard

A library for sending debugging data to the Ray application.

example/ray_dart_example.dart

import 'package:ray_dart/ray_dart.dart';

class Test {
  String title = 'hi';
}

void main() {
  ray()
    ..clearScreen()
    ..showApp();

  ray(Test());
  ray(DateTime);

  ray("some string")
    ..color('blue')
    ..showApp();

  ray([1, 2, 3]);
  ray(null);
  ray(true);
  ray().newScreen('name of screen');

  ray(1, 2, 3, 4, 5)
    ..color('green')
    ..screenColor('green');

  ray().table([1, 3, 4, 4]);

  ray().text('hi there');

  // verify this is supposed to be raw output and not actually render the html
  ray().text('<hi>hi&nbsp;there</h1><br><p>floof</p>');

  ray().json(['{"hi":"there"}', '{"hi":"there"}']);
  ray().toJson([
    {"hi": "there"},
    {"hi": "there"}
  ]);
  ray().file('/absolute/path/ray-dart/example/ray_dart_example.dart');

  ray('hi').notify(
      'hello'); // doesnt do anything (at least on mac even with notifications enabled)

  ray().image("/Users/aarney/Desktop/354x354.png");
  ray().image(
      "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3/OAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANCSURBVEiJtZZPbBtFFMZ/M7ubXdtdb1xSFyeilBapySVU8h8OoFaooFSqiihIVIpQBKci6KEg9Q6H9kovIHoCIVQJJCKE1ENFjnAgcaSGC6rEnxBwA04Tx43t2FnvDAfjkNibxgHxnWb2e/u992bee7tCa00YFsffekFY+nUzFtjW0LrvjRXrCDIAaPLlW0nHL0SsZtVoaF98mLrx3pdhOqLtYPHChahZcYYO7KvPFxvRl5XPp1sN3adWiD1ZAqD6XYK1b/dvE5IWryTt2udLFedwc1+9kLp+vbbpoDh+6TklxBeAi9TL0taeWpdmZzQDry0AcO+jQ12RyohqqoYoo8RDwJrU+qXkjWtfi8Xxt58BdQuwQs9qC/afLwCw8tnQbqYAPsgxE1S6F3EAIXux2oQFKm0ihMsOF71dHYx+f3NND68ghCu1YIoePPQN1pGRABkJ6Bus96CutRZMydTl+TvuiRW1m3n0eDl0vRPcEysqdXn+jsQPsrHMquGeXEaY4Yk4wxWcY5V/9scqOMOVUFthatyTy8QyqwZ+kDURKoMWxNKr2EeqVKcTNOajqKoBgOE28U4tdQl5p5bwCw7BWquaZSzAPlwjlithJtp3pTImSqQRrb2Z8PHGigD4RZuNX6JYj6wj7O4TFLbCO/Mn/m8R+h6rYSUb3ekokRY6f/YukArN979jcW+V/S8g0eT/N3VN3kTqWbQ428m9/8k0P/1aIhF36PccEl6EhOcAUCrXKZXXWS3XKd2vc/TRBG9O5ELC17MmWubD2nKhUKZa26Ba2+D3P+4/MNCFwg59oWVeYhkzgN/JDR8deKBoD7Y+ljEjGZ0sosXVTvbc6RHirr2reNy1OXd6pJsQ+gqjk8VWFYmHrwBzW/n+uMPFiRwHB2I7ih8ciHFxIkd/3Omk5tCDV1t+2nNu5sxxpDFNx+huNhVT3/zMDz8usXC3ddaHBj1GHj/As08fwTS7Kt1HBTmyN29vdwAw+/wbwLVOJ3uAD1wi/dUH7Qei66PfyuRj4Ik9is+hglfbkbfR3cnZm7chlUWLdwmprtCohX4HUtlOcQjLYCu+fzGJH2QRKvP3UNz8bWk1qMxjGTOMThZ3kvgLI5AzFfo379UAAAAASUVORK5CYII=");

  // ray().pause();

  ray()
    ..onlyIf(true)
    ..text('true');
  ray()
    ..onlyIf(() => false)
    ..text('no condition');
  ray()
    ..onlyIf(() => true)
    ..text('true condition');

  ray().url('http://duckduckgo.com');
  ray().url('duckduckgo.com');
}
0
likes
150
points
26
downloads

Publisher

verified publisheraaronarney.dev

Weekly Downloads

A library for sending debugging data to the Ray application.

Repository (GitHub)
View/report issues

Topics

#debugging #logging

Documentation

API reference

License

MIT (license)

Dependencies

crypto, http, meta, stack_trace, uuid

More

Packages that depend on ray_dart