logx 0.0.1 copy "logx: ^0.0.1" to clipboard
logx: ^0.0.1 copied to clipboard

outdated

Simple and concise logs for Dart/Flutter

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:logx/logx.dart';

void main() {
  Log.d('Error message from main()', error: ArgumentError());
  runApp(ExampleApp());
}

class ExampleApp extends StatelessWidget with LogMixin {
  @override
  Widget build(BuildContext context) {
    log.d('Building widget');
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('LogX')),
        body: Container(
          child: Center(
            child: RaisedButton(
              onPressed: () {
                log('Hello world');
              },
              child: Text('Log!'),
            ),
          ),
        ),
      ),
    );
  }
}
3
likes
0
pub points
30%
popularity

Publisher

verified publishervojtech.net

Simple and concise logs for Dart/Flutter

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on logx