dchs_flutter_beacon 0.6.4 copy "dchs_flutter_beacon: ^0.6.4" to clipboard
dchs_flutter_beacon: ^0.6.4 copied to clipboard

Flutter plugin for scanning and transmit as beacon (iBeacon) on Android and iOS.

example/lib/main.dart

// ignore_for_file: prefer_const_declarations

import 'package:flutter/material.dart';
import 'package:get/get.dart';

import './controller/requirement_state_controller.dart';
import './view/home_page.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    Get.put(RequirementStateController());

    final themeData = Theme.of(context);
    final primary = Colors.blue;

    return GetMaterialApp(
      theme: ThemeData(
        brightness: Brightness.light,
        primarySwatch: primary,
        appBarTheme: themeData.appBarTheme.copyWith(
          elevation: 0.5,
          color: Colors.white,
          actionsIconTheme: themeData.primaryIconTheme.copyWith(
            color: primary,
          ),
          iconTheme: themeData.primaryIconTheme.copyWith(
            color: primary,
          ),
        ),
      ),
      darkTheme: ThemeData(
        brightness: Brightness.dark,
        primarySwatch: primary,
      ),
      home: const HomePage(),
    );
  }
}
5
likes
160
points
97
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for scanning and transmit as beacon (iBeacon) on Android and iOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on dchs_flutter_beacon