console_flutter 1.0.0+1 copy "console_flutter: ^1.0.0+1" to clipboard
console_flutter: ^1.0.0+1 copied to clipboard

Plugin to show API logs for Flutter.

example/lib/main.dart

import 'package:console_flutter/components/console_wrapper.dart';
import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:console_flutter/console_flutter.dart';

void main() {
  Console.logEnabled(true);
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

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

class _MyAppState extends State<MyApp> {
  final _consoleFlutterPlugin = Console();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: ConsoleWrapper(
        child: Scaffold(
          appBar: AppBar(
            title: const Text('Plugin example app'),
          ),
          body: Center(
            child: Text('ConsoleFlutter'),
          ),
        ),
      ),
    );
  }
}
2
likes
120
points
10
downloads

Publisher

unverified uploader

Weekly Downloads

Plugin to show API logs for Flutter.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on console_flutter