nconsole 1.3.0 copy "nconsole: ^1.3.0" to clipboard
nconsole: ^1.3.0 copied to clipboard

A package to help you debug your Flutter app on the fly.

example/lib/main.dart

import 'dart:io';

import 'package:flutter/material.dart';

import 'package:nconsole/nconsole.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: () async {
              if (Platform.isAndroid) {
                NConsole.setUri("192.168.75.4");
              }
              NConsole.isEnable = true;

              NConsole.log('Hello, World!');
              NConsole.log("data--->", {
                "name": "alex",
                "old": 12,
              });
            },
            child: const Text('Send log to [Server Log] app'),
          ),
        ),
      ),
    );
  }
}
2
likes
130
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

A package to help you debug your Flutter app on the fly.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

crypton, encrypt, fast_rsa, flutter, nghinv_device_info, web_socket_channel

More

Packages that depend on nconsole