baseflow_plugin_template 2.2.0 baseflow_plugin_template: ^2.2.0 copied to clipboard
A template for plugin examples
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({super.key});
@override
Widget build(BuildContext context) {
return const Center(
child: Text('Very simple example'),
);
}
}