sample_plugin_plus 0.0.2
sample_plugin_plus: ^0.0.2 copied to clipboard
A Flutter plugin that embeds the Android screens.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:sample_plugin/sample_plugin.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final _samplePlugin = SamplePlugin();
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Plugin example app')),
body: ElevatedButton(onPressed: () {
_samplePlugin.showHome();
}, child: Text("Click")),
),
);
}
}