Skip to content

FlutLab/flutlab-logcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stand With Ukraine

Flutter Logcat plugin

How to use:

Add this library to your pubspec.yaml:

flutlab_logcat:
  git: https://github.com/FlutLab/flutlab-logcat.git

You can initialize the plugin in 2 ways: synchronously and asynchronously Using the synchronous method the app will wait for at least one connection

To run synchronously

import 'package:flutlab_logcat/flutlab_logcat.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await FlutLabLogcat.init();
  runApp(MyApp());
}

To run asynchronously

import 'package:flutlab_logcat/flutlab_logcat.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  FlutLabLogcat.init(); // async call
  runApp(MyApp());
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published