lb_core 1.1.8 copy "lb_core: ^1.1.8" to clipboard
lb_core: ^1.1.8 copied to clipboard

Logbot Core client to be used for API requests to Logbot Core APIs for users management

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:example/ui/apis/get_logs_api_page.dart';
import 'package:example/ui/apis/info_api_page.dart';
import 'package:example/ui/apis/get_users_api_page.dart';
import 'package:example/ui/home_page.dart';
import 'package:example/ui/login_page.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';

Future<void> main() async {
  await dotenv.load(fileName: ".env");
  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 - Core Example',
      themeMode: ThemeMode.light,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const LoginPage(),
      initialRoute: '/login',
      routes: {
        '/home': (context) => const HomePage(),
        '/login': (context) => const LoginPage(),
        '/core/users/get': (context) => const GetUsersApiPage(),
        '/core/logs/get': (context) => const GetLogsApiPage(),
        '/core/info': (context) => const InfoApiPage(),
      },
    );
  }
}
1
likes
50
pub points
2%
popularity

Publisher

verified publisherlogbot.cloud

Logbot Core client to be used for API requests to Logbot Core APIs for users management

Homepage

Documentation

Documentation

License

BSD-3-Clause (license)

Dependencies

http, intl, lb_auth, lb_commons, meta

More

Packages that depend on lb_core