logman 0.0.4 copy "logman: ^0.0.4" to clipboard
logman: ^0.0.4 copied to clipboard

A simple yet powerful logging package for Flutter apps with an integrated UI and an optional debug page.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:logman/logman.dart';

import 'home_page.dart';

final ValueNotifier<bool> isDarkModeNotifier = ValueNotifier<bool>(false);

void main() {
  runApp(const MyApp());
}

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

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

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    Logman.instance.recordSimpleLog('App started!');
  }

  @override
  Widget build(BuildContext context) {
    return ValueListenableBuilder(
      valueListenable: isDarkModeNotifier,
      builder: (context, isDarkMode, child) {
        return MaterialApp(
          title: 'Logman Demo',
          theme: ThemeData(
            colorScheme: ColorScheme.fromSeed(
              seedColor: Colors.blue.shade900,
              brightness: isDarkMode ? Brightness.dark : Brightness.light,
            ),
            useMaterial3: true,
            brightness: isDarkMode ? Brightness.dark : Brightness.light,
          ),
          home: const MyHomePage(title: 'Logman Demo Home Page'),
          navigatorObservers: [
            LogmanNavigatorObserver(),
          ],
        );
      },
    );
  }
}
8
likes
0
points
852
downloads

Publisher

verified publishersorceltech.com

Weekly Downloads

A simple yet powerful logging package for Flutter apps with an integrated UI and an optional debug page.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, intl, logger

More

Packages that depend on logman