lb_compiler 1.0.1 copy "lb_compiler: ^1.0.1" to clipboard
lb_compiler: ^1.0.1 copied to clipboard

Optimizes read and write operations to Logbot IoTs

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/list_connections_api_page.dart';
import 'package:example/ui/apis/list_metrics_api_page.dart';
import 'package:example/ui/apis/read_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 - Compiler Example',
      themeMode: ThemeMode.light,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const LoginPage(),
      initialRoute: '/login',
      routes: {
        '/home': (context) => const HomePage(),
        '/login': (context) => const LoginPage(),
        '/connections/list': (context) => const ListConnectionsApiPage(),
        '/metrics/list': (context) => const ListMetricsApiPage(),
        '/compiler/read': (context) => const ReadApiPage(),
      },
    );
  }
}
0
likes
50
points
12
downloads

Publisher

verified publisherlogbot.cloud

Weekly Downloads

Optimizes read and write operations to Logbot IoTs

Homepage

Documentation

Documentation

License

BSD-3-Clause (license)

Dependencies

http, intl, lb_commons, lb_writer, meta

More

Packages that depend on lb_compiler