sublime_log 1.0.0
sublime_log: ^1.0.0 copied to clipboard
Dart package which manages the logs message, view or share to other.
sublime_log #
Get current device information from within the Flutter application.
Platform Support #
| Android | iOS | MacOS | Web | Linux | Windows |
|---|---|---|---|---|---|
| ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Usage #
Import package:sublime_log/sublime_log.dart, and use the SublimeLog.log to log every information
you want.
Example:
import 'package:sublime_log/sublime_log.dart';
final message = 'Log message';
SublimeLog.log(message: message, tag: 'Label');
To view all the logs or share it to other.
import 'package:sublime_log/sublime_log.dart';
showGeneralDialog(
context: context,
barrierDismissible: false,
barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
barrierColor: Colors.black.withOpacity(0.5),
transitionDuration: const Duration(milliseconds: 200),
pageBuilder: (buildContext, animation, secondaryAnimation) {
return LogsPreviewPage(
params: LogsPreviewParams(
hints: [ // funny hint
'First hint',
'Second hint'
],
);
},
);