baseflow_plugin_template 2.1.2 copy "baseflow_plugin_template: ^2.1.2" to clipboard
baseflow_plugin_template: ^2.1.2 copied to clipboard

A template for plugin examples

example/lib/main.dart

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

void main() {
  runApp(BaseflowPluginExample(
    pluginName: 'test plugin',
    githubURL: 'https://github.com/baseflow/baseflow_plugin_template',
    pubDevURL: 'https://pub.dev/publishers/baseflow.com/packages',
    pages: [CenteredText.createPage()],
  ));
}

class CenteredText extends StatelessWidget {
  static ExamplePage createPage() {
    return ExamplePage(Icons.text_fields, (context) => const CenteredText());
  }

  const CenteredText();

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Text('Very simple example'),
    );
  }
}