sample_plugin_plus 0.0.2 copy "sample_plugin_plus: ^0.0.2" to clipboard
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")),
      ),
    );
  }
}
0
likes
130
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin that embeds the Android screens.

Documentation

API reference

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on sample_plugin_plus

Packages that implement sample_plugin_plus