lb_commons 1.1.0 copy "lb_commons: ^1.1.0" to clipboard
lb_commons: ^1.1.0 copied to clipboard

Various components shared between different Logbot SDK modules

example/lib/main.dart

// Copyright 2022 Logbot SRL. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:lb_commons/services/logbot_logger.dart';

Future<void> main() async {
  runApp(const MyApp());
}

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Logbot SDK - Commons Example',
      themeMode: ThemeMode.light,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomePage(),
      initialRoute: '/',
    );
  }
}

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

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  void initState() {
    super.initState();
    LogbotLogger().debug("DEBUG TITLE", "DEBUG MESSAGE");
  }

  @override
  Widget build(BuildContext context) {
    return Container();
  }
}
1
likes
140
pub points
38%
popularity

Publisher

verified publisherlogbot.cloud

Various components shared between different Logbot SDK modules

Homepage

Documentation

Documentation
API reference

License

BSD-3-Clause (LICENSE)

Dependencies

convert, crypto, flutter, http, intl, logger, meta

More

Packages that depend on lb_commons