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

Logbot Firewall HTTP Service for: * Setup and gather informations about the firewall configuration * Setup and gather informations about the HTTP server configuration * Enable/Disable the firewall

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_configuration_api_page.dart';
import 'package:example/ui/apis/get_logs_api_page.dart';
import 'package:example/ui/apis/info_version_api_page.dart';
import 'package:example/ui/apis/service_status_api_page.dart';
import 'package:example/ui/home_page.dart';
import 'package:example/ui/login_page.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:lb_commons/services/logbot_common_env.dart';

Future<void> main() async {
  await dotenv.load(fileName: ".env");
  if (kDebugMode) {
    LogbotCommonEnvironment.enableDebugLogs();
  }
  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 - Firewall Example',
      themeMode: ThemeMode.light,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const LoginPage(),
      initialRoute: '/login',
      routes: {
        '/home': (context) => const HomePage(),
        '/login': (context) => const LoginPage(),
        '/info/version': (context) => const InfoVersionApiPage(),
        '/configuration/get': (context) => const GetConfigurationApiPage(),
        '/service/status': (context) => const ServiceStatusApiPage(),
        '/logs/get': (context) => const GetLogsApiPage(),
      },
    );
  }
}
0
likes
40
pub points
39%
popularity

Publisher

verified publisherlogbot.cloud

Logbot Firewall HTTP Service for: * Setup and gather informations about the firewall configuration * Setup and gather informations about the HTTP server configuration * Enable/Disable the firewall

Homepage

Documentation

Documentation

License

BSD-3-Clause (LICENSE)

Dependencies

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

More

Packages that depend on lb_firewall