flutter_plugin_bbd_base 0.1.2 copy "flutter_plugin_bbd_base: ^0.1.2" to clipboard
flutter_plugin_bbd_base: ^0.1.2 copied to clipboard

Flutter base plugin for Blackberry Dynamics integration. See developer.blackberry.com for more information.

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String platformVersion = "";

  @override
  void initState() {
    super.initState();
    loadVersion();
  }

  loadVersion() async {
    final version = await FlutterPluginBbdApplication.getVersion;
    setState(() {
      platformVersion = version;
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('flutter-plugin-bbd-base example'),
        ),
        body: Center(
          child: Column(
            children: <Widget>[
              Text('Running'),
              Text('BlackBerry Dynamics Version: $platformVersion'),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Flutter base plugin for Blackberry Dynamics integration. See developer.blackberry.com for more information.

Homepage

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_plugin_bbd_base