peachpluginsampletest 1.0.9 copy "peachpluginsampletest: ^1.0.9" to clipboard
peachpluginsampletest: ^1.0.9 copied to clipboard

A sample Flutter plugin for displaying dialog boxes.

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:peachpluginsampletest/peachpluginsampletest.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';
  final _peachpluginsampletestPlugin = Peachpluginsampletest();

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


  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
            child: InkWell(
              child: Container(
                child: Text('Check',style: TextStyle(color: Colors.white),),
                color: Colors.cyan,
              ),
              onTap: (){
                print("objectddd");
                Peachpluginsampletest.showAlert("title", "message");
              },
            )
        ),
      ),
    );
  }
}
1
likes
130
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

A sample Flutter plugin for displaying dialog boxes.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on peachpluginsampletest