lb_writer 1.0.3 copy "lb_writer: ^1.0.3" to clipboard
lb_writer: ^1.0.3 copied to clipboard

Logbot writer client API client to be user to read and write into devices

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/device_stats_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 - Writer Example',
      themeMode: ThemeMode.light,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const LoginPage(),
      initialRoute: '/login',
      routes: {
        '/home': (context) => const HomePage(),
        '/login': (context) => const LoginPage(),
        '/writer/connection/read': (context) => const ReadApiPage(),
        '/writer/device/stats': (context) => const DeviceStatsApiPage(),
      },
    );
  }
}
2
likes
0
pub points
2%
popularity

Publisher

verified publisherlogbot.cloud

Logbot writer client API client to be user to read and write into devices

Homepage

Documentation

Documentation

License

unknown (license)

Dependencies

http, intl, lb_auth, lb_commons, lb_discovery, lb_state_manager, meta

More

Packages that depend on lb_writer