nconsole 1.0.1 copy "nconsole: ^1.0.1" to clipboard
nconsole: ^1.0.1 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("10.10.50.16");
              }
              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
0
points
84
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

crypton, encrypt, fast_rsa, flutter, nghinv_device_info, web_socket_channel

More

Packages that depend on nconsole